diff --git a/.dockerignore b/.dockerignore index d55686191696c7f6d526024f55f656bd609d7188..2d1af2c25fc8febdfce16ec5ad81931de89684a6 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,6 +3,7 @@ # 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. # Following are the files we need: +# - ./config/light_settings.rb # - ./config/initializers/0_inject_enterprise_edition_module.rb # - ./ee/app/models/license.rb # - ./lib/gitlab.rb diff --git a/qa/Dockerfile b/qa/Dockerfile index 84dbfae1008aa5ced243e6985d487a08162d4b91..97c2cd482f55022963d28cd8cb2d2a3d0bd21607 100644 --- a/qa/Dockerfile +++ b/qa/Dockerfile @@ -49,13 +49,15 @@ RUN export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \ WORKDIR /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 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 ./config/light_settings.rb /home/gitlab/config/ COPY ./lib/gitlab.rb /home/gitlab/lib/ -COPY ./INSTALLATION_TYPE /home/gitlab/ -COPY ./VERSION /home/gitlab/ -RUN cd /home/gitlab/qa/ && bundle install +COPY ./INSTALLATION_TYPE ./VERSION /home/gitlab/ +RUN cd /home/gitlab/qa/ && bundle install --jobs=$(nproc) --retry=3 --quiet COPY ./qa /home/gitlab/qa ENTRYPOINT ["bin/test"]