Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [#571] Upload docker images #573

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: DIP
- cron: '35 21 25 * *'
jobs:
dip:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
name: Check whether images are up-to-date
steps:
- uses: actions/[email protected]
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---
name: Docker
'on': push
'on':
# required by gomod-go-version-updater to trigger this action once pr has
# been reviewed
pull_request_review:
types: [submitted]
push:
jobs:
mcvs-docker-action:
runs-on: ubuntu-20.04
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Dockerhub
- '*'
jobs:
release:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Set up QEMU
uses: docker/[email protected]
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
strategy:
matrix:
include:
- os: macos-latest
- os: macos-14
shasum: shasum -a 512
- os: ubuntu-latest
- os: ubuntu-20.04
shasum: sha512sum
- os: windows-latest
- os: windows-2019
shasum: sha512sum
steps:
- uses: actions/[email protected]
Expand All @@ -33,8 +33,10 @@ jobs:
if: ${{ startsWith(matrix.os, 'ubuntu') }}
- uses: codecov/[email protected]
with:
fail_ci_if_error: true
files: ./coverage.txt
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
if: ${{ startsWith(matrix.os, 'ubuntu') }}
- name: SonarCloud Scan
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golang.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: golang
name: Golang
'on':
# required by gomod-go-version-updater to trigger this action once pr has
# been reviewed
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Integration
- dependabot/**
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
strategy:
matrix:
include:
- os: macos-latest
- os: macos-14
shasum: shasum -a 512
- os: ubuntu-latest
- os: ubuntu-20.04
shasum: sha512sum
- os: windows-latest
- os: windows-2019
shasum: sha512sum
steps:
- uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapcraft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
uses: ./.github/workflows/release.yml
snapcraft:
needs: [release]
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Yamllint
'on': push
jobs:
yamllint:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
container:
image: pipelinecomponents/yamllint:0.21.0
env:
Expand Down
29 changes: 3 additions & 26 deletions docs/quickstarts/DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
11 changes: 11 additions & 0 deletions docs/quickstarts/snippets/n3dr/docker/CONFIG_REPOSITORY.md
Original file line number Diff line number Diff line change
@@ -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
```
11 changes: 11 additions & 0 deletions docs/quickstarts/snippets/n3dr/docker/CONFIG_REPOSITORY_DEST.md
Original file line number Diff line number Diff line change
@@ -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
```
13 changes: 13 additions & 0 deletions docs/quickstarts/snippets/n3dr/docker/POPULATE_ARTIFACTS.md
Original file line number Diff line number Diff line change
@@ -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
```