Skip to content

Commit

Permalink
Mount docker credentials inside deploy container for non-public regis…
Browse files Browse the repository at this point in the history
…tries
  • Loading branch information
aequitas committed Nov 14, 2024
1 parent 6325e39 commit 8ec5e41
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ jobs:
docker run -ti --rm --pull=always \\
--volume /var/run/docker.sock:/var/run/docker.sock \\
--volume $HOME/.docker:/root/.docker \\
--volume /opt/Internet.nl:/opt/Internet.nl \\
--network none \\
--env DOCKER_REGISTRY=${{ env.DOCKER_REGISTRY }} \\
Expand Down
1 change: 1 addition & 0 deletions docker/cron-docker/periodic/15min/auto_update
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ echo "Updating to: $UPSTREAM_RELEASE"
# as the initiator (cron-docker) will be killed during the deploy process
docker run --pull=always --network none \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $HOME/.docker:/root/.docker \
--volume /opt/Internet.nl:/opt/Internet.nl \
--env "DOCKER_REGISTRY=$DOCKER_REGISTRY" \
"$DOCKER_REGISTRY/util:$UPSTREAM_RELEASE" \
Expand Down
1 change: 1 addition & 0 deletions documentation/Docker-deployment-batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ After configuration, spin up the instance:

docker run -ti --rm --pull=always \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $HOME/.docker:/root/.docker \
--volume /opt/Internet.nl:/opt/Internet.nl \
--network none \
--env DOCKER_REGISTRY=ghcr.io/internetstandards \
Expand Down
4 changes: 4 additions & 0 deletions documentation/Docker-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ Spin up instance:

docker run -ti --rm --pull=always \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $HOME/.docker:/root/.docker \
--volume /opt/Internet.nl:/opt/Internet.nl \
--network none \
--env DOCKER_REGISTRY=ghcr.io/internetstandards \
Expand Down Expand Up @@ -249,6 +250,7 @@ To update the application stack to the latest release run the following command,

docker run -ti --rm --pull=always --network none \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $HOME/.docker:/root/.docker \
--volume /opt/Internet.nl:/opt/Internet.nl \
--env DOCKER_REGISTRY=ghcr.io/internetstandards \
ghcr.io/internetstandards/util:latest \
Expand All @@ -260,6 +262,7 @@ If you want to update to a specific tagged version release, e.g. `1.8.8`, use th

docker run -ti --rm --pull=always --network none \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $HOME/.docker:/root/.docker \
--volume /opt/Internet.nl:/opt/Internet.nl \
--env DOCKER_REGISTRY=ghcr.io/internetstandards \
ghcr.io/internetstandards/util:1.8.8 \
Expand Down Expand Up @@ -297,6 +300,7 @@ In essence downgrading is the same procedure as upgrading. For example, to roll

docker run -ti --rm --pull=always \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $HOME/.docker:/root/.docker \
--volume /opt/Internet.nl:/opt/Internet.nl \
--network none \
--env DOCKER_REGISTRY=ghcr.io/internetstandards \
Expand Down

0 comments on commit 8ec5e41

Please sign in to comment.