Skip to content
Snippets Groups Projects
Commit e469bd5d authored by Pierre Ozoux's avatar Pierre Ozoux Committed by GitHub
Browse files

Merge pull request #3 from occrp/master

DISCOURSE_ADDITIONAL_PLUGINS build arg
parents bfc52e5b 247f1820
No related merge requests found
......@@ -47,5 +47,18 @@ RUN git clone --branch v${DISCOURSE_VERSION} https://github.com/discourse/discou
&& bundle config build.nokogiri --use-system-libraries \
&& 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; \
fi
EXPOSE 3000
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
# docker-discourse
discourse image for discourse service
## Discourse plugins
This image supports installing Discourse plugins at build time, via the `DISCOURSE_ADDITIONAL_PLUGINS` [build arg](https://docs.docker.com/engine/reference/builder/#/arg). Set it to a whitespace (space, tab, newline) separated list if valid `git` URLs of plugins to be installed at build time.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment