Commit 1b3dc3b1 authored by David Mendez's avatar David Mendez
Browse files

Debug CI

parent 75c20673
...@@ -42,7 +42,7 @@ stages: ...@@ -42,7 +42,7 @@ stages:
# ---------------------------------------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------------------------
build_docker_image_server: build_docker_image_server:
image: image:
name: gitlab.ebi.ac.uk/chembl/dependency_proxy/containers/docker/compose:1.24.1 name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/docker/compose:1.24.1
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
stage: build stage: build
variables: variables:
...@@ -53,11 +53,14 @@ build_docker_image_server: ...@@ -53,11 +53,14 @@ build_docker_image_server:
- docker:dind - docker:dind
tags: tags:
- dind - dind
before_script: apk add curl jq
script: script:
- set -x - set -x
# Check rate limit
- TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq --raw-output .token) && curl --head --header "Authorization: Bearer $TOKEN" "https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest" 2>&1
- docker version # verify docker cli is there. Also prints server info - docker version # verify docker cli is there. Also prints server info
- echo ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX} - echo ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}
- echo ${CI_DEPENDENCY_PROXY_PASSWORD} | docker login -u ${CI_DEPENDENCY_PROXY_USER} --password-stdin ${CI_DEPENDENCY_PROXY_SERVER} # - echo ${CI_DEPENDENCY_PROXY_PASSWORD} | docker login -u ${CI_DEPENDENCY_PROXY_USER} --password-stdin ${CI_DEPENDENCY_PROXY_SERVER}
- echo $DOCKERHUB_REGISTRY_PASSWORD | docker login -u $DOCKERHUB_REGISTRY_USER --password-stdin $DOCKERHUB_REGISTRY - echo $DOCKERHUB_REGISTRY_PASSWORD | docker login -u $DOCKERHUB_REGISTRY_USER --password-stdin $DOCKERHUB_REGISTRY
- echo building $SERVER_IMAGE_TAG - echo building $SERVER_IMAGE_TAG
- docker-compose build delayed-jobs-server-prod - docker-compose build delayed-jobs-server-prod
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment