forked from openSUSE/open-build-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable concurrent when precompile the assets
Concurrency are raising failure during the precompile. There is an issue on sprocket related to this issue rails/sprockets#581.
- Loading branch information
David Kang
committed
Mar 20, 2020
1 parent
a6cf72d
commit 361a3a3
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This is just a thin layer on top of the frontend-backend container that makes | ||
# sure different users can run it without the contained rails app generating | ||
# files in the git checkout with some strange user... | ||
|
||
FROM registry.opensuse.org/obs/server/unstable/container/leap151/containers/openbuildservice/frontend-backend | ||
|
||
# Configure our user | ||
ARG CONTAINER_USERID | ||
RUN usermod -u 1000 frontend | ||
|
||
# We copy the Gemfiles into this intermediate build stage so it's checksum | ||
# changes and all the subsequent stages (a.k.a. the bundle install call below) | ||
# have to be rebuild. Otherwise, after the first build of this image, | ||
# docker would use it's cache for this and the following stages. | ||
ADD Gemfile /obs/src/api/Gemfile | ||
ADD Gemfile.lock /obs/src/api/Gemfile.lock | ||
RUN chown -R frontend /obs/src/api | ||
|
||
# Now do the rest as the user with the same ID as the user who | ||
# builds this container | ||
USER frontend | ||
WORKDIR /obs/src/api | ||
|
||
# Refresh our bundle | ||
RUN export NOKOGIRI_USE_SYSTEM_LIBRARIES=1; bundle install --jobs=3 --retry=3 || bundle install --jobs=3 --retry=3 | ||
|
||
CMD ["/bin/bash", "-l"] | ||
|
||
|