Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
discourse
Manage
Activity
Members
Labels
Plan
Issues
9
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
libre.sh
docker
discourse
Commits
8431acc1
Commit
8431acc1
authored
8 years ago
by
Michał 'rysiek' Woźniak
Browse files
Options
Downloads
Patches
Plain Diff
added support for DISCOURSE_ADDITIONAL_PLUGINS build arg
parent
bfc52e5b
No related branches found
No related tags found
1 merge request
!3
DISCOURSE_ADDITIONAL_PLUGINS build arg
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+17
-1
17 additions, 1 deletion
Dockerfile
with
17 additions
and
1 deletion
Dockerfile
+
17
−
1
View file @
8431acc1
...
@@ -11,7 +11,7 @@ ENV DISCOURSE_VERSION=1.7.0.beta3 \
...
@@ -11,7 +11,7 @@ ENV DISCOURSE_VERSION=1.7.0.beta3 \
DISCOURSE_SERVE_STATIC_ASSETS=true \
DISCOURSE_SERVE_STATIC_ASSETS=true \
GIFSICLE_VERSION=1.87 \
GIFSICLE_VERSION=1.87 \
PNGQUANT_VERSION=2.4.1
PNGQUANT_VERSION=2.4.1
RUN
curl
--silent
--location
https://deb.nodesource.com/setup_4.x | bash -
\
RUN
curl
--silent
--location
https://deb.nodesource.com/setup_4.x | bash -
\
&&
apt-get update
&&
apt-get
install
-y
--no-install-recommends
\
&&
apt-get update
&&
apt-get
install
-y
--no-install-recommends
\
autoconf
\
autoconf
\
...
@@ -46,6 +46,22 @@ RUN git clone --branch v${DISCOURSE_VERSION} https://github.com/discourse/discou
...
@@ -46,6 +46,22 @@ RUN git clone --branch v${DISCOURSE_VERSION} https://github.com/discourse/discou
&&
git remote set-branches
--add
origin tests-passed
\
&&
git remote set-branches
--add
origin tests-passed
\
&&
bundle config build.nokogiri
--use-system-libraries
\
&&
bundle config build.nokogiri
--use-system-libraries
\
&&
bundle
install
--deployment
--without
test
--without
development
&&
bundle
install
--deployment
--without
test
--without
development
# install discourse plugins
# assumptions: no spaces in URLs (urlencoding is a thing)
#
# this expects a git-cloneable link
ARG
DISCOURSE_ADDITIONAL_PLUGINS=
RUN if
[
"
$DISCOURSE_ADDITIONAL_PLUGINS
"
!=
""
]
;
then
\
cd
plugins/
\
for
PACKAGE_LINK
in
$DISCOURSE_ADDITIONAL_PLUGINS
;
do
\
git clone
"
$PACKAGE_LINK
"
;
\
done
;
\
bundle
exec
rake plugin:update
plugin
=
discourse-plugin-checklist
;
\
bundle
exec
rake assets:clean
;
\
bundle
exec
rake assets:precompile
;
\
fi
EXPOSE
3000
EXPOSE
3000
CMD
["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
CMD
["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
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