From bc00ffd4430c02d9aeebdf0d75d9df79b371ce97 Mon Sep 17 00:00:00 2001 From: 030 Date: Sat, 27 Apr 2024 15:24:13 +0200 Subject: [PATCH] fix: [#571] Upload docker images --- docs/quickstarts/DOCKER.md | 29 ++----------------- .../snippets/n3dr/docker/CONFIG_REPOSITORY.md | 11 +++++++ .../n3dr/docker/CONFIG_REPOSITORY_DEST.md | 11 +++++++ .../n3dr/docker/POPULATE_ARTIFACTS.md | 13 +++++++++ 4 files changed, 38 insertions(+), 26 deletions(-) create mode 100644 docs/quickstarts/snippets/n3dr/docker/CONFIG_REPOSITORY.md create mode 100644 docs/quickstarts/snippets/n3dr/docker/CONFIG_REPOSITORY_DEST.md create mode 100644 docs/quickstarts/snippets/n3dr/docker/POPULATE_ARTIFACTS.md diff --git a/docs/quickstarts/DOCKER.md b/docs/quickstarts/DOCKER.md index b19b0ce9..28d88306 100644 --- a/docs/quickstarts/DOCKER.md +++ b/docs/quickstarts/DOCKER.md @@ -2,34 +2,11 @@ - [Download N3DR](./snippets/n3dr/DOWNLOAD.md). - [Start a Nexus3 server](./snippets/nexus3/SERVER.md). -- Populate it with artifacts: - -```bash -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 -``` - +- [Create a repository in the Nexus3 server that has just been started](./snippets/n3dr/docker/CONFIG_REPOSITORY.md). +- [Populate it with artifacts](./snippets/n3dr/docker/POPULATE_ARTIFACTS.md). - [Backup all artifacts](./snippets/n3dr/BACKUP.md). - [Start another Nexus3 server](./snippets/nexus3/ANOTHERSERVER.md). -- Create a repository in the other Nexus3 server: - -```bash -./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 -``` - +- [Create a repository in the other Nexus3 server](./snippets/n3dr/docker/CONFIG_REPOSITORY_DEST.md). - [Upload the artifacts to the other Nexus3 server](./snippets/n3dr/UPLOAD.md). - [Validate](./snippets/n3dr/VALIDATE.md). - [Cleanup](./snippets/nexus3/CLEANUP.md). diff --git a/docs/quickstarts/snippets/n3dr/docker/CONFIG_REPOSITORY.md b/docs/quickstarts/snippets/n3dr/docker/CONFIG_REPOSITORY.md new file mode 100644 index 00000000..66da7a58 --- /dev/null +++ b/docs/quickstarts/snippets/n3dr/docker/CONFIG_REPOSITORY.md @@ -0,0 +1,11 @@ +# config repository docker + +```bash +./n3dr configRepository \ + -u admin \ + -p $(docker exec -it nexus3-n3dr-src cat /nexus-data/admin.password) \ + -n localhost:8081 \ + --https=false \ + --configRepoName docker-images \ + --configRepoType docker +``` diff --git a/docs/quickstarts/snippets/n3dr/docker/CONFIG_REPOSITORY_DEST.md b/docs/quickstarts/snippets/n3dr/docker/CONFIG_REPOSITORY_DEST.md new file mode 100644 index 00000000..572ace38 --- /dev/null +++ b/docs/quickstarts/snippets/n3dr/docker/CONFIG_REPOSITORY_DEST.md @@ -0,0 +1,11 @@ +# config repository docker dest + +```bash +./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 +``` diff --git a/docs/quickstarts/snippets/n3dr/docker/POPULATE_ARTIFACTS.md b/docs/quickstarts/snippets/n3dr/docker/POPULATE_ARTIFACTS.md new file mode 100644 index 00000000..7d333758 --- /dev/null +++ b/docs/quickstarts/snippets/n3dr/docker/POPULATE_ARTIFACTS.md @@ -0,0 +1,13 @@ +# populate artifacts + +```bash +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 +```