Skip to content

Commit b8fc958

Browse files
HomerHomer
authored andcommitted
the start
1 parent 8ff6a1b commit b8fc958

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ RUN \
1313
echo "**** install build packages ****" && \
1414
apk add --no-cache \
1515
curl \
16+
memcached \
1617
php7-ctype \
1718
php7-dom \
1819
php7-gd \
1920
php7-mbstring \
21+
php7-memcached \
2022
php7-mysqlnd \
2123
php7-openssl \
2224
php7-pdo_mysql \

root/etc/cont-init.d/50-config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ do
1616
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
1717
done
1818

19+
# .env file setup
20+
1921
# 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
2022
# 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
2123
if [ "$ADVANCED_MODE" == 1 ];
@@ -45,6 +47,12 @@ if [ ! -z "$APP_URL" -a -z "$ADVANCED_MODE" ];
4547
sed -i "s,#\sAPP_URL.*,APP_URL=${APP_URL},g" /var/www/html/.env
4648
fi
4749

50+
# email=1 set? let's do some more work
51+
if [ ! -z "$USE_EMAIL" ];
52+
then
53+
echo "Setting up email vars"
54+
sed i "s\"
55+
4856
# Create API key if needed
4957
if [ ! -f "/config/BOOKSTACK_APP_KEY.txt" ]
5058
then

root/etc/services.d/memcached/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/with-contenv bash
2+
exec memcache memcached

0 commit comments

Comments
 (0)