Run Code Quality offline

Summary

Codeclimate can't run offline at all. The job template has a hardcoded image repository, but even hacking around that, it attempts to pull other images to do the scanning that are not configurable at all (probably baked into the code upstream?).

References:

Steps to reproduce

Install GitLab in a closed network with no internet access and try to get the security scans to work.

Example Project

Cannot since it is on a closed network

What is the current bug behavior?

The Code Quality job cannot run when in an offline instance of GitLab.

What is the expected correct behavior?

The Code Quality Job can utilize a local docker image to run with an offline instance of GitLab.

Relevant logs and/or screenshots

Logs cannot be copied off closed network

Output of checks

Logs cannot be copied off closed network

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:env:info)

Latest Omnibus was used, output cannot be shared due to being on a closed network.

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

Latest Omnibus was used, output cannot be shared due to being on a closed network.

(we will only investigate if the tests are passing)

Possible fixes

This is possibly fixed with !20604 (diffs). This change will be to update docs to reflect how to implement this with that change.

Edited by James Heimbuck