Skip to content

Commit 762f4ff

Browse files
authored
Merge pull request #8 from NHSLeadership/develop
adjust entrypoint and scripting
2 parents cc7ebf3 + 48ee0f3 commit 762f4ff

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Dockerfile-alpine8.2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ RUN mkdir /etc/atatus && \
5151
pgsql && \
5252
addgroup -g ${GID} -S ${USER} && \
5353
adduser -u ${UID} -S -G ${USER} -h /home/nhsla -s /bin/bash nhsla && \
54-
apk add ssmtp --no-cache && \
54+
apk add bash ssmtp --no-cache && \
5555
ln -s /nhsla/rw/atatus.ini /usr/local/etc/php/conf.d/a-atatus.ini && \
5656
ln -s /nhsla/rw/phpsess.ini /usr/local/etc/php/conf.d/b-phpsess.ini && \
5757
ln -s /nhsla/rw/ssmtp.conf /etc/ssmtp.conf && \
5858
chown -R ${USER}:${USER} /etc/atatus /nhsla && \
59+
chmod +x /entrypoint.sh && \
5960
date > /image_base_build_date
6061

6162
USER ${UID}

Dockerfile-alpine8.3

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ RUN mkdir /etc/atatus && \
5656
ln -s /nhsla/rw/phpsess.ini /usr/local/etc/php/conf.d/b-phpsess.ini && \
5757
ln -s /nhsla/rw/ssmtp.conf /etc/ssmtp.conf && \
5858
chown -R ${USER}:${USER} /etc/atatus /nhsla && \
59+
chmod +x /entrypoint.sh && \
5960
date > /image_base_build_date
6061

6162
USER ${UID}

Dockerfile-alpine8.4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ RUN mkdir /etc/atatus && \
5151
pgsql && \
5252
addgroup -g ${GID} -S ${USER} && \
5353
adduser -u ${UID} -S -G ${USER} -h /home/nhsla -s /bin/bash nhsla && \
54-
apk add ssmtp --no-cache && \
54+
apk add bash ssmtp --no-cache && \
5555
ln -s /nhsla/rw/atatus.ini /usr/local/etc/php/conf.d/a-atatus.ini && \
5656
ln -s /nhsla/rw/phpsess.ini /usr/local/etc/php/conf.d/b-phpsess.ini && \
5757
ln -s /nhsla/rw/ssmtp.conf /etc/ssmtp.conf && \
5858
chown -R ${USER}:${USER} /etc/atatus /nhsla && \
59+
chmod +x /entrypoint.sh && \
5960
date > /image_base_build_date
6061

6162
USER ${UID}

rootfs/entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ set -e
33

44
# Startup logging
55
echo "=== Container Startup ==="
6-
echo "App name: ${ATATUS_APP_NAME:app}"
7-
echo "App version: ${APP_VERSION:none}"
6+
echo "App name: ${ATATUS_APP_NAME:-app}"
7+
echo "App version: ${APP_VERSION:-none}"
88
echo "Container mode: ${CONTAINER_MODE:-web}"
99
echo "Environment: ${APP_ENV:-production}"
1010
echo "Atatus: ${ATATUS_ENABLED:-false}"
@@ -77,7 +77,7 @@ case "${CONTAINER_MODE:-web}" in
7777
;;
7878
"worker")
7979
echo "Starting worker container..."
80-
exec php /app/artisan queue:work --sleep=3 --tries=3
80+
exec php /app/artisan queue:work --sleep=3 --tries=3 --timeout=1800 --queue="${QUEUE_NAMES:-default}"
8181
;;
8282
"web"|*)
8383
echo "Starting web server..."

0 commit comments

Comments
 (0)