File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ copy_docker_credentials() {
7878
7979 if [ -f /run/secrets/docker/config.json ]; then
8080 cp /run/secrets/docker/config.json /docker-creds/config.json
81+ echo " ✅ Docker credentials copied successfully"
8182 else
8283 echo " ⚠️ No Docker credentials found to copy"
8384 fi
Original file line number Diff line number Diff line change @@ -40,8 +40,9 @@ ENV TESTCONTAINERS_HOST_OVERRIDE=localhost
4040ENV MODEL_RUNNER_HOST=http://model-runner.docker.internal
4141ENV LAB_RUNNER_PUBLIC_KEY_PATH=/etc/lab-runner/public-key/runner.pem
4242
43- # Making this a symlink because the file is being provided via a volume and there isn't a
44- # way to mount a single file out of a volume (don't want to overwrite the whole .docker dir)
45- RUN ln -s /docker-creds/config.json /home/coder/.docker/config.json
43+ USER root
44+ COPY ./entrypoint.d /entrypoint.d
45+
46+ USER 1000
4647
4748CMD ["/home/coder/project" ]
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ if [ -f /docker-creds/config.json ]; then
6+ echo " Copying Docker credentials..."
7+ mkdir -p /home/coder/.docker
8+ cp /docker-creds/config.json /home/coder/.docker/config.json
9+ echo " Docker credentials copied successfully."
10+ chown -R coder:coder /home/coder/.docker
11+ else
12+ echo " No Docker credentials found to copy."
13+ fi
You can’t perform that action at this time.
0 commit comments