CodeQuality CI Template unusable due to DockerHub limits
We are using the CodeQuality template:
include:
- template: Code-Quality.gitlab-ci.yml
Problem is that it still executes with a DockerHub image and therefore hits DockerHub.com limits:
CODECLIMATE_VERSION=${CODECLIMATE_VERSION:-0.85.9}
CODECLIMATE_IMAGE="codeclimate/codeclimate:$CODECLIMATE_VERSION"
[...]
# We need to run engines:install before analyze to avoid hitting timeout errors.
# See: https://github.com/codeclimate/codeclimate/issues/866#issuecomment-418758879
# We also dump the output to a /dev/null to not mess up the result when REPORT_STDOUT is enabled.
docker run \
--env CODECLIMATE_CODE="$SOURCE_CODE" \
--env CODECLIMATE_DEBUG="$CODECLIMATE_DEBUG" \
--env CONTAINER_TIMEOUT_SECONDS="$CONTAINER_TIMEOUT_SECONDS" \
--volume "$SOURCE_CODE":/code \
--volume /tmp/cc:/tmp/cc \
--volume /var/run/docker.sock:/var/run/docker.sock \
"$CODECLIMATE_IMAGE" engines:install > /dev/null
All other images seem to be pulled from registry.gitlab.com.
BTW the Dependency Proxy for Containers is currently not working for us. We are able to login to $CI_DEPENDENCY_PROXY_SERVER
but encounter 404 on pulling the image or simply get a JSON with unauthorized
. CI_DEPENDENCY_PROXY_*
is exposed to the jobs.
BTW if not mentioned before: we are a gold customer and foo and of course rely on that feature and some teams want to use it.
Edited by Markus Geiger