the start

This commit is contained in:
Homer 2018-10-11 06:43:29 +01:00
parent 8ff6a1bce8
commit b8fc958111
3 changed files with 12 additions and 0 deletions

View File

@ -13,10 +13,12 @@ RUN \
echo "**** install build packages ****" && \
apk add --no-cache \
curl \
memcached \
php7-ctype \
php7-dom \
php7-gd \
php7-mbstring \
php7-memcached \
php7-mysqlnd \
php7-openssl \
php7-pdo_mysql \

View File

@ -16,6 +16,8 @@ do
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
done
# .env file setup
# Check for ADVANCED_MODE to be set. If set, copy sample env file to /config and then copy to /var/www/html.env so advanced users can make their own customisations
# If not set, runs in basic mode where .example.env is copied to /var/www/html/.env and seds are applied to set documented variables
if [ "$ADVANCED_MODE" == 1 ];
@ -45,6 +47,12 @@ if [ ! -z "$APP_URL" -a -z "$ADVANCED_MODE" ];
sed -i "s,#\sAPP_URL.*,APP_URL=${APP_URL},g" /var/www/html/.env
fi
# email=1 set? let's do some more work
if [ ! -z "$USE_EMAIL" ];
then
echo "Setting up email vars"
sed i "s\"
# Create API key if needed
if [ ! -f "/config/BOOKSTACK_APP_KEY.txt" ]
then

View File

@ -0,0 +1,2 @@
#!/usr/bin/with-contenv bash
exec memcache memcached