We want to integrate Nexus 3 Opensource Edition into our toolchain. Nexus is an artifactory for npm, Docker Registry, maven, nuget, etc. We want to use docker containers for everything.
Problem: Nexus doesn’t offer a CLI based utility to set configuration parameters. That is sad – but it’s a fact. So, we need to do it the “Nexus” way. Nexus can be scripted via Java/Groovy Scripts. A very kind person offers a ready to use ansible based solution for all configuration settings: https://github.com/savoirfairelinux/ansible-nexus3-oss
Test: Find the file “nexus_install.yml”. You can see that the installation is not Docker based. It will install Nexus via tar file on the native host machine. Your task is to rewrite this file to use a Docker container for the installation. Please do not write your own Docker file. We want to use the “official” image from https://hub.docker.com/r/sonatype/nexus3 . For this moment we don’t need fancy Nexus installation modes. Just modify the Nexus administrator password by using the existing ansible tasks.
Someone ("savoirfairelinux") created a repository of ansible code to
install Nexus.
But you want that in Docker. Fine.
But how you do that isn't an ansible problem.
Ansible is just an automation tool.
You will have to come up with the things that you want automated.
Again, please reach out to "savoirfairelinux" or "sonatype" for help.