Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
gitlab: Wait for docker server to start
Should fix failures such as

$ docker info
Client:
 Debug Mode: false
Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
Is the docker daemon running?

Signed-off-by: Camilla Conte <cconte@redhat.com>
[rth: Split out of a larger patch]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
spotlesstofu authored and rth7680 committed May 19, 2023
1 parent aa222a8 commit ede37a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci.d/container-template.yml
Expand Up @@ -8,7 +8,7 @@
- export TAG="$CI_REGISTRY_IMAGE/qemu/$NAME:latest"
- export COMMON_TAG="$CI_REGISTRY/qemu-project/qemu/qemu/$NAME:latest"
- apk add python3
- docker info
- until docker info; do sleep 1; done
- docker login $CI_REGISTRY -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD"
script:
- echo "TAG:$TAG"
Expand Down
1 change: 1 addition & 0 deletions .gitlab-ci.d/opensbi.yml
Expand Up @@ -53,6 +53,7 @@ docker-opensbi:
DOCKER_TLS_CERTDIR: ""
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- until docker info; do sleep 1; done
script:
- docker pull $IMAGE_TAG || true
- docker build --cache-from $IMAGE_TAG --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
Expand Down

0 comments on commit ede37a1

Please sign in to comment.