Commit 7f42e187 authored by Rémy Coutable's avatar Rémy Coutable

Update the QA image Dockerfile to include 'config/light_settings.rb'

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 5e21cc09
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# Ignore all folders except qa/, config/initializers and the root of lib/ since # Ignore all folders except qa/, config/initializers and the root of lib/ since
# the files we need to build the QA image are in these folders. # the files we need to build the QA image are in these folders.
# Following are the files we need: # Following are the files we need:
# - ./config/light_settings.rb
# - ./config/initializers/0_inject_enterprise_edition_module.rb # - ./config/initializers/0_inject_enterprise_edition_module.rb
# - ./ee/app/models/license.rb # - ./ee/app/models/license.rb
# - ./lib/gitlab.rb # - ./lib/gitlab.rb
......
...@@ -49,13 +49,15 @@ RUN export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \ ...@@ -49,13 +49,15 @@ RUN export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \
WORKDIR /home/gitlab/qa WORKDIR /home/gitlab/qa
COPY ./qa/Gemfile* /home/gitlab/qa/ COPY ./qa/Gemfile* /home/gitlab/qa/
COPY ./config/light_settings.rb /home/gitlab/config/light_settings.rb
COPY ./config/initializers/0_inject_enterprise_edition_module.rb /home/gitlab/config/initializers/ COPY ./config/initializers/0_inject_enterprise_edition_module.rb /home/gitlab/config/initializers/
# Copy VERSION to ensure the COPY succeeds to copy at least one file since ee/app/models/license.rb isn't present in CE # Copy VERSION to ensure the COPY succeeds to copy at least one file since ee/app/models/license.rb isn't present in FOSS
# The [b] part makes ./ee/app/models/license.r[b] a pattern that is allowed to return no files (which is the case in FOSS)
COPY VERSION ./ee/app/models/license.r[b] /home/gitlab/ee/app/models/ COPY VERSION ./ee/app/models/license.r[b] /home/gitlab/ee/app/models/
COPY ./config/light_settings.rb /home/gitlab/config/
COPY ./lib/gitlab.rb /home/gitlab/lib/ COPY ./lib/gitlab.rb /home/gitlab/lib/
COPY ./INSTALLATION_TYPE /home/gitlab/ COPY ./INSTALLATION_TYPE ./VERSION /home/gitlab/
COPY ./VERSION /home/gitlab/ RUN cd /home/gitlab/qa/ && bundle install --jobs=$(nproc) --retry=3 --quiet
RUN cd /home/gitlab/qa/ && bundle install
COPY ./qa /home/gitlab/qa COPY ./qa /home/gitlab/qa
ENTRYPOINT ["bin/test"] ENTRYPOINT ["bin/test"]
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