Skip to content
Snippets Groups Projects
Unverified Commit bbb2d39e authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[Etherpad] Bump script for deletion and remove deleted pads creation from Etherpad

parent db678182
No related branches found
No related tags found
1 merge request!57Delete pad after delay
......@@ -72,22 +72,18 @@ ARG UID=5004
RUN useradd --uid ${UID} --create-home etherpad
# Used to avoid very long chown (due to https://github.com/docker/for-linux/issues/388)
USER etherpad
# Import des fichiers téléchargés dans l'image downloader
COPY --from=downloader /opt/etherpad-lite /opt/etherpad-lite/
# Install debian packages, as root
USER root
RUN apt-get update && \
apt-get install -y curl nano postgresql-client abiword && \
rm -rf /var/lib/apt/lists/*
# Created folder for deleted pads
RUN mkdir /opt/etherpad-lite/deleted_pads && \
chown -R etherpad:etherpad /opt/etherpad-lite/deleted_pads
# Set etherpad as owner of etherpad (permission for its content was already set in downloader)
RUN chown etherpad:etherpad /opt/etherpad-lite
......
......@@ -58,10 +58,10 @@ services:
restart: unless-stopped
delete-pad-after-delay:
image: registry.picasoft.net/pica-etherpad-delete-after-delay:picasoft-docker.1.0
image: registry.picasoft.net/pica-etherpad-delete-after-delay:picasoft-docker.1.0.1
container_name: etherpad_delete-pad-after-delay
build:
context: https://gitlab.utc.fr/picasoft/projets/delete-pad-after-delay.git#picasoft-docker.1.0
context: https://gitlab.utc.fr/picasoft/projets/delete-pad-after-delay.git#picasoft-docker.1.0.1
volumes:
- api-key:/mountedAPIkey:ro
- deleted-pads:/opt/etherpad-lite/deleted_pads
......
......@@ -59,10 +59,10 @@ services:
restart: unless-stopped
delete-pad-after-delay:
image: registry.picasoft.net/pica-etherpad-delete-after-delay:picasoft-docker.1.0
image: registry.picasoft.net/pica-etherpad-delete-after-delay:picasoft-docker.1.0.1
container_name: etherpad_delete-pad-after-delay
build:
context: https://gitlab.utc.fr/picasoft/projets/delete-pad-after-delay.git#picasoft-docker.1.0
context: https://gitlab.utc.fr/picasoft/projets/delete-pad-after-delay.git#picasoft-docker.1.0.1
volumes:
- api-key:/mountedAPIkey:ro
- deleted-pads:/opt/etherpad-lite/deleted_pads
......
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