- Download N3DR.
- Start a Nexus3 server.
- Populate it with artifacts:
docker login localhost:8082 \
-p $(docker exec -it nexus3-n3dr-src cat /nexus-data/admin.password) \
-u admin && \
for d in $(seq 5); do
docker_registry_tag=localhost:8082/repository/docker-images/utrecht/n3dr:6.${d}.0
docker pull "utrecht/n3dr:6.${d}.0"
docker tag "utrecht/n3dr:6.${d}.0" localhost:8082/repository/docker-images/utrecht/n3dr:6.${d}.0
docker push localhost:8082/repository/docker-images/utrecht/n3dr:6.${d}.0
done
- Backup all artifacts.
- Start another Nexus3 server.
- Create a repository in the other Nexus3 server:
./n3dr configRepository \
-u admin \
-p $(docker exec -it nexus3-n3dr-dest cat /nexus-data/admin.password) \
-n localhost:9000 \
--https=false \
--configRepoName docker-images \
--configRepoType docker