Dockerfile (demo): re-enable plugin

This commit is contained in:
Glenn Y. Rolland 2019-10-18 11:33:44 +02:00
parent 92fd88fce5
commit 57272aa6db
2 changed files with 20 additions and 12 deletions

View file

@ -28,9 +28,7 @@ RUN bin/installDeps.sh && rm settings.json && \
chmod +x /entrypoint.sh && \
sed -i 's/^node/exec\ node/' bin/run.sh && \
ln -s var/settings.json settings.json && \
npm install ep_author_neat ep_headings2 ep_set_title_on_pad ep_adminpads ep_mypads ep_padwiki
# npm install ep_author_neat ep_headings2 ep_set_title_on_pad ep_adminpads ep_mypads ep_padwiki ep_comments_page
npm install ep_author_neat ep_headings2 ep_set_title_on_pad ep_adminpads ep_mypads ep_padwiki ep_comments_page
VOLUME /opt/etherpad-lite/var
EXPOSE 9001

View file

@ -1,17 +1,27 @@
NAME=$(shell basename "$$(pwd)")
USERNAME:=glenux
IMAGE:=$(shell basename "$$(pwd)")
TAG:=$(shell TZ=UTC date +"%Y%m%d")
all: build run
# --build-arg "BUNDLE_BITBUCKET__ORG=$(BUNDLE_BITBUCKET__ORG)" \
all:
build:
docker build -t "$(NAME)" .
docker build -t $(USERNAME)/$(IMAGE):$(TAG) .
run:
docker run --rm -p 9001:9001 \
-e DATABASE_URL="mysql://user:foo@databasehost/database?options" \
-t "$(NAME)" \
#
# remplir ici
test: build
# remplir ici
# on produit des binaires, on les stocke qqpart
#
deliver:
# remplir ici
# on utilise les binaires pour faire fonctionner le service
# en ligne
#
# deploy:
# # ...