Skip to content

Commit c3e008b

Browse files
HomerHomer
authored andcommitted
more stuff
1 parent b8fc958 commit c3e008b

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

Dockerfile.aarch64

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ RUN \
1616
echo "**** install build packages ****" && \
1717
apk add --no-cache \
1818
curl \
19+
memcached \
1920
php7-ctype \
2021
php7-dom \
2122
php7-gd \
2223
php7-mbstring \
24+
php7-memcached \
2325
php7-mysqlnd \
2426
php7-openssl \
2527
php7-pdo_mysql \

Dockerfile.armhf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ RUN \
1616
echo "**** install build packages ****" && \
1717
apk add --no-cache \
1818
curl \
19+
memcached \
1920
php7-ctype \
2021
php7-dom \
2122
php7-gd \
2223
php7-mbstring \
24+
php7-memcached \
2325
php7-mysqlnd \
2426
php7-openssl \
2527
php7-pdo_mysql \

Jenkinsfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ pipeline {
1717
BUILDS_DISCORD = credentials('build_webhook_url')
1818
GITHUB_TOKEN = credentials('498b4638-2d02-4ce5-832d-8a57d01d97ab')
1919
DIST_IMAGE = 'alpine'
20-
DIST_TAG = '3.7'
20+
DIST_TAG = '3.8'
2121
DIST_PACKAGES = 'curl \
22+
memcached \
2223
php7-openssl \
2324
php7-pdo_mysql \
2425
php7-mbstring \
26+
php7-memcached \
2527
php7-tidy \
2628
php7-phar \
2729
php7-dom \

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,21 @@ if [ ! -z "$APP_URL" -a -z "$ADVANCED_MODE" ];
4747
sed -i "s,#\sAPP_URL.*,APP_URL=${APP_URL},g" /var/www/html/.env
4848
fi
4949

50-
# email=1 set? let's do some more work
51-
if [ ! -z "$USE_EMAIL" ];
50+
# set up the application to use memcached
51+
sed -i "s/CACHE_DRIVER=file/CACHE_DRIVER=memcached/g"
52+
sed -i "s/SESSION_DRIVER=file/SESSION_DRIVER=memcached/g"
53+
54+
# email username set? let's do some more work
55+
if [ "$MAIL_USERNAME" -a -z "$ADVANCED_MODE" ];
5256
then
53-
echo "Setting up email vars"
54-
sed i "s\"
57+
echo "Setting up email vars. Check BookStack docs"
58+
sed -i "s/MAIL_PORT=1025/MAIL_PORT=${MAIL_PORT}/g"
59+
sed -i "s/MAIL_USERNAME=null/MAIL_USERNAME=${MAIL_USERNAME}/g"
60+
sed -i "s/MAIL_PASSWORD=null/MAIL_PASSWORD=${MAIL_PASSWORD}/g"
61+
sed -i "s/MAIL_ENCRYPTION=null/MAIL_ENCRYPTION=${MAIL_ENCRYPTION}/g"
62+
sed -i "s/MAIL_FROM=null/MAIL_FROM=${MAIL_FROM}/g"
63+
sed -i "s/MAIL_FROM_NAME=null/MAIL_FROM_NAME=${MAIL_FROM_NAME}/g"
64+
fi
5565

5666
# Create API key if needed
5767
if [ ! -f "/config/BOOKSTACK_APP_KEY.txt" ]

0 commit comments

Comments
 (0)