Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
discourse
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Beorn Facchini
discourse
Commits
bdec532e
Commit
bdec532e
authored
8 years ago
by
Michał 'rysiek' Woźniak
Browse files
Options
Downloads
Patches
Plain Diff
support for DISCOURSE_ADDITIONAL_GEMS: we need to add the gem(s) to Gemfile and then run bundler
parent
dd11d72b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+8
-3
8 additions, 3 deletions
Dockerfile
with
8 additions
and
3 deletions
Dockerfile
+
8
−
3
View file @
bdec532e
...
...
@@ -44,19 +44,24 @@ RUN curl --silent --location https://deb.nodesource.com/setup_4.x | bash - \
RUN
git clone
--branch
v
${
DISCOURSE_VERSION
}
https://github.com/discourse/discourse.git
.
\
&&
git remote set-branches
--add
origin tests-passed
\
&&
bundle config build.nokogiri
--use-system-libraries
\
&&
bundle
install
--deployment
--without
test
--without
development
&&
bundle config build.nokogiri
--use-system-libraries
# install additional gems
#
# this expects a space-separated list of gem names
ARG
DISCOURSE_ADDITIONAL_GEMS=
RUN if
[
"
$DISCOURSE_ADDITIONAL_GEMS
"
!=
""
]
;
then
\
echo
>>
Gemfile
\
echo
'### DISCOURSE_ADDITIONAL_GEMS'
>>
Gemfile
\
for
GEM_NAME
in
$DISCOURSE_ADDITIONAL_GEMS
;
do
\
bundle
exec
gem
install
"
$GEM_NAME
"
;
\
# add the gem to the Gemfile
echo "gem \"$GEM_NAME\"" >> Gemfile; \
done; \
fi
# run bundler
RUN
bundle
install
--deployment
--without
test
--without
development
# install discourse plugins
# assumptions: no spaces in URLs (urlencoding is a thing)
#
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment