[Etherpad] Install plugins in final image

Otherwise, for an unknown reason, newer version of packages were not taken into account
parent bd86122e
......@@ -6,12 +6,6 @@ ENV NODE_ENV=production
FROM base as downloader
ARG ETHERPAD_VERSION_BUILD=1.8.6
ARG ETHERPAD_PLUGINS="\
ep_adminpads2 ep_align ep_author_hover ep_back_button ep_chatdate \
ep_comments_page ep_delete_after_delay ep_delete_empty_pads ep_font_color \
ep_font_family ep_headings2 ep_message_all ep_pad_activity_nofication_in_title \
ep_pads_stats ep_prompt_for_name ep_set_title_on_pad \
ep_subscript_and_superscript"
RUN apt-get update && \
apt-get install -y \
......@@ -52,15 +46,16 @@ RUN npm install minify && \
cp ./src/templates/landing-page/index.html src/templates/index.html && \
cp -r ./src/templates/landing-page/static/* src/static/
# Install plugins
RUN for PLUGIN_NAME in ${ETHERPAD_PLUGINS}; do npm install "${PLUGIN_NAME}"; done && \
# Change default hard-coded pad title
sed -i 's|Untitled Pad|Nouveau pad|g' node_modules/ep_set_title_on_pad/templates/title.ejs && \
sed -i 's|Untitled Pad|Nouveau pad|g' node_modules/ep_set_title_on_pad/static/tests/frontend/specs/atest.js
# Construction de l'image finale
FROM base
ARG ETHERPAD_PLUGINS="\
ep_adminpads2 ep_align ep_author_hover ep_back_button ep_chatdate \
ep_comments_page ep_delete_after_delay ep_delete_empty_pads ep_font_color \
ep_font_family ep_headings2 ep_message_all ep_pad_activity_nofication_in_title \
ep_pads_stats ep_prompt_for_name ep_set_title_on_pad \
ep_subscript_and_superscript"
# Try to stick to the LDAP UID for etherpad (OU=services)
# WARNING: is also defined hereinabove
......@@ -80,6 +75,14 @@ RUN apt-get update && \
apt-get install -y curl nano postgresql-client abiword && \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt/etherpad-lite/
# Install plugins
RUN for PLUGIN_NAME in ${ETHERPAD_PLUGINS}; do npm install "${PLUGIN_NAME}"; done && \
# Change default hard-coded pad title
sed -i 's|Untitled Pad|Nouveau pad|g' node_modules/ep_set_title_on_pad/templates/title.ejs && \
sed -i 's|Untitled Pad|Nouveau pad|g' node_modules/ep_set_title_on_pad/static/tests/frontend/specs/atest.js
# Set etherpad as owner of etherpad (permission for its content was already set in downloader)
RUN chown etherpad:etherpad /opt/etherpad-lite
......@@ -95,7 +98,7 @@ RUN mkdir /mountedAPIkey && chown etherpad:etherpad /mountedAPIkey
USER etherpad
EXPOSE 8080
HEALTHCHECK --interval=20s --timeout=3s CMD curl --fail http://localhost:8080 || exit 1
WORKDIR /opt/etherpad-lite/
# Installed here by debian
ENV ABIWORD "/usr/bin/abiword"
ENTRYPOINT ["/opt/etherpad-lite/entrypoint.sh", "/opt/etherpad-lite/bin/run.sh" ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment