Skip to content
Snippets Groups Projects
Commit a1f12e55 authored by JH_CNG_SYNC_TOKEN's avatar JH_CNG_SYNC_TOKEN
Browse files

Merge remote-tracking branch 'origin/master' into main-jh

parents 929e263a d2d9c8ca
Branches
Tags
No related merge requests found
Pipeline #1078 waiting for manual action with stages
in 1 hour, 9 minutes, and 49 seconds
......@@ -22,6 +22,7 @@ Check the table below for more information about the various CI variables used i
| EE_PIPELINE | Setting any value indicates this will be an EE only pipeline. |
| CUSTOM_PIPELINE | Setting any value indicates this will be a custom pipeline (Do not run CE or EE specific jobs.) |
| DEPENDENCY_PROXY | Sets the dockerhub registry location. See [details](build.md#dependency-proxy). |
|GITLAB_BUNDLE_GEMFILE | Setting Gemfile path required by `gitlab-rails` bundle. If bundle uses the default Gemfile, just keep it unset. |
## Test variables
......
......@@ -112,6 +112,12 @@ RUN cd /srv/gitlab && \
# Install gems
COPY --chown=git vendor/bundle/ /srv/gitlab/vendor/bundle
<% if compile_assets and gitlab_bundle_gemfile %>
RUN cd /srv/gitlab && \
sudo -u git -H bundle config set --local gemfile <%= gitlab_bundle_gemfile %>
<% end %>
RUN cd /srv/gitlab && \
sudo -u git -H bundle install --clean --deployment --without development test mysql aws kerberos --jobs 4 --retry 5
......
......@@ -11,6 +11,10 @@ def ee?
ENV['RAILS_EE'].eql?('true')
end
def gitlab_bundle_gemfile
ENV['GITLAB_BUNDLE_GEMFILE']
end
puts "Rendering Dockerfile"
template = ERB.new(File.read('Dockerfile.erb'))
......
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