Merge erdnaxe docker into Aurore
parent
f2945bfb1f
commit
fe16b6c810
@ -1,2 +1,2 @@
|
||||
# data
|
||||
data_*
|
||||
.env
|
||||
|
@ -0,0 +1,6 @@
|
||||
DOMAIN=codimd.auro.re
|
||||
LDAP_URL=ldap://10.128.0.11
|
||||
LDAP_BINDDN="cn=codimd,ou=service-users,dc=auro,dc=re"
|
||||
LDAP_BINDCREDENTIALS="Change me"
|
||||
LDAP_SEARCHBASE="cn=Utilisateurs,dc=auro,dc=re"
|
||||
LDAP_PROVIDERNAME="Aurore"
|
@ -1,60 +0,0 @@
|
||||
# Etherpad Lite Dockerfile
|
||||
#
|
||||
# https://github.com/ether/etherpad-docker
|
||||
#
|
||||
# Author: muxator
|
||||
#
|
||||
# Version 0.1, patched by Aurore
|
||||
|
||||
FROM node:latest
|
||||
LABEL maintainer="Etherpad team, https://github.com/ether/etherpad-lite"
|
||||
|
||||
# git hash of the version to be built.
|
||||
# If not given, build the latest development version.
|
||||
ARG ETHERPAD_VERSION=develop
|
||||
|
||||
# plugins to install while building the container. By default no plugins are
|
||||
# installed.
|
||||
# If given a value, it has to be a space-separated, quoted list of plugin names.
|
||||
#
|
||||
# EXAMPLE:
|
||||
# ETHERPAD_PLUGINS="ep_codepad ep_author_neat"
|
||||
ARG ETHERPAD_PLUGINS=
|
||||
|
||||
# Set the following to production to avoid installing devDeps
|
||||
# this can be done with build args (and is mandatory to build ARM version)
|
||||
ARG NODE_ENV=development
|
||||
|
||||
# grab the ETHERPAD_VERSION tarball from github (no need to clone the whole
|
||||
# repository)
|
||||
RUN echo "Getting version: ${ETHERPAD_VERSION}" && \
|
||||
curl \
|
||||
--location \
|
||||
--fail \
|
||||
--silent \
|
||||
--show-error \
|
||||
--output /opt/etherpad-lite.tar.gz \
|
||||
https://github.com/ether/etherpad-lite/archive/"${ETHERPAD_VERSION}".tar.gz && \
|
||||
mkdir /opt/etherpad-lite && \
|
||||
tar xf /opt/etherpad-lite.tar.gz \
|
||||
--directory /opt/etherpad-lite \
|
||||
--strip-components=1 && \
|
||||
rm /opt/etherpad-lite.tar.gz
|
||||
|
||||
WORKDIR /opt/etherpad-lite
|
||||
|
||||
# install node dependencies for Etherpad
|
||||
RUN bin/installDeps.sh
|
||||
|
||||
# Install the plugins, if ETHERPAD_PLUGINS is not empty.
|
||||
#
|
||||
# Bash trick: in the for loop ${ETHERPAD_PLUGINS} is NOT quoted, in order to be
|
||||
# able to split at spaces.
|
||||
RUN for PLUGIN_NAME in ${ETHERPAD_PLUGINS}; do npm install "${PLUGIN_NAME}"; done
|
||||
|
||||
# Copy the custom configuration file
|
||||
COPY settings.json /opt/etherpad-lite/
|
||||
|
||||
EXPOSE 9001
|
||||
CMD ["node", "node_modules/ep_etherpad-lite/node/server.js"]
|
||||
|
@ -1,11 +1,15 @@
|
||||
version: "3.7"
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
etherpad:
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
ETHERPAD_VERSION: 1.7.5
|
||||
NODE_ENV: production
|
||||
image: etherpad/etherpad
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- POSTGRES_USER=etherpad
|
||||
- "POSTGRES_PASSWORD=${POSTGRES_PASSWD}"
|
||||
- POSTGRES_DB=etherpad
|
||||
ports:
|
||||
- 8084:9001
|
||||
volumes:
|
||||
- ./settings.json:/opt/etherpad-lite/settings.json:ro
|
||||
restart: always
|
||||
|
@ -0,0 +1 @@
|
||||
POSTGRES_PASSWD=asupersecurepassword
|
@ -1,24 +0,0 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
ARG version
|
||||
ARG gpg_key
|
||||
|
||||
# Download Riot Web, verify with GPG, then install
|
||||
RUN apk add --no-cache --virtual .build-deps curl gnupg &&\
|
||||
curl -sSL https://github.com/vector-im/riot-web/releases/download/${version}/riot-${version}.tar.gz -o riot-web.tar.gz &&\
|
||||
curl -sSL https://github.com/vector-im/riot-web/releases/download/${version}/riot-${version}.tar.gz.asc -o riot-web.tar.gz.asc &&\
|
||||
for server in \
|
||||
hkp://keyserver.ubuntu.com:80 \
|
||||
hkp://p80.pool.sks-keyservers.net:80 \
|
||||
ha.pool.sks-keyservers.net \
|
||||
; do \
|
||||
echo "Fetching GPG key $gpg_key from $server"; \
|
||||
gpg --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$gpg_key" && break; \
|
||||
done &&\
|
||||
gpg --batch --verify riot-web.tar.gz.asc riot-web.tar.gz &&\
|
||||
tar -xzf riot-web.tar.gz &&\
|
||||
mv riot-${version} /etc/riot-web &&\
|
||||
cp /etc/riot-web/config.sample.json /etc/riot-web/config.json &&\
|
||||
rm -rf /usr/share/nginx/html && ln -s /etc/riot-web /usr/share/nginx/html &&\
|
||||
rm riot-web.tar.gz* &&\
|
||||
apk del .build-deps
|
Binary file not shown.
After Width: | Height: | Size: 454 KiB |
Loading…
Reference in New Issue