https://gitlab.com/gitlab-org/gitlab-ce/issues/42293#note_175179950
Install the engines first... might take a while to run, so go get a coffee...
time docker run \
--interactive --tty --rm \
--env CODECLIMATE_CODE="$PWD" \
--env CODECLIMATE_DEBUG=1 \
--env CONTAINER_TIMEOUT_SECONDS=3600 \
--volume "$PWD":/code \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /tmp/cc:/tmp/cc \
codeclimate/codeclimate engines:install
Analyze code...
time docker run \
--interactive --tty --rm \
--env CODECLIMATE_CODE="$PWD" \
--env CONTAINER_TIMEOUT_SECONDS=3600 \
--volume "$PWD":/code \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /tmp/cc:/tmp/cc \
codeclimate/codeclimate analyze -f html > result.html