add parsoid image

This commit is contained in:
Wonderfall committed 2017-07-30 04:49:47 +02:00
1 parent 2b18c3f9b1
commit e7c1cd5063
7 files changed
+96

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
echo
echo ">>> wonderfall/parsoid container <<<"
echo
cd /parsoid
cp config.example.yaml config.yaml
sed -i "s|http://localhost/w/|$ADDRESS|g" config.yaml
sed -i "s|domain: 'localhost'|domain: '$DOMAIN'|g" config.yaml
echo "> Updating permissions..."
chown -R ${UID}:${GID} /parsoid /etc/s6.d
echo "> Executing process..."
if [ '$@' == '' ]; then
exec su-exec ${UID}:${GID} /bin/s6-svscan /etc/s6.d
else
exec su-exec ${UID}:${GID} "$@"
fi