Skip to content

Commit 068e658

Browse files
authored
Add SHOW_WELCOME_MESSAGE variable to customize welcome message behavior (#319)
* Re-enabled deployments from main * Add SHOW_WELCOME_MESSAGE environment variable
1 parent 991467b commit 068e658

File tree

8 files changed

+18
-14
lines changed

8 files changed

+18
-14
lines changed

.github/workflows/action_publish-images-dev.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ on:
99
- .github/workflows/action_publish-images-**
1010
- .github/workflows/service_docker-**
1111
- scripts/**
12-
# schedule:
13-
# - cron: '25 8 * * 1'
14-
# push:
15-
# branches:
16-
# - main
17-
# paths:
18-
# - src/**
19-
# - .github/workflows/action_publish-images-**
20-
# - .github/workflows/service_docker-**
21-
# - scripts/**
12+
push:
13+
branches:
14+
- main
15+
paths:
16+
- src/**
17+
- .github/workflows/action_publish-images-**
18+
- .github/workflows/service_docker-**
19+
- scripts/**
2220

2321
jobs:
2422
build-dev-images:

docs/content/docs/7.reference/1.environment-variable-specification.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ We like to customize our images on a per app basis using environment variables.
6262
`S6_BEHAVIOUR_IF_STAGE2_FAILS`<br />*Default: "2" (stop the container)*|Determines what the container should do if one of the service scripts fails (<a target="_blank" href="https://github.com/just-containers/s6-overlay#customizing-s6-overlay-behaviour">Official docs</a>)|fpm-nginx,<br />fpm-apache
6363
`S6_CMD_WAIT_FOR_SERVICES_MAXTIME`<br />*Default: "0"*|The maximum time (in milliseconds) the services could take to bring up before proceeding to CMD executing (<a target="_blank" href="https://github.com/just-containers/s6-overlay#customizing-s6-overlay-behaviour">Official docs</a>)|fpm-nginx,<br />fpm-apache
6464
`S6_VERBOSITY`<br />*Default: "1"*|Set the verbosity of "S6 Overlay" (the init system these images are based on). The default is "1" (print warnings and errors). The scale goes from 1 to 5, but the output will quickly become very noisy. If you're having issues, start here. You can also customize many other variables. (<a target="_blank" href="https://github.com/just-containers/s6-overlay#customizing-s6-behaviour">Official docs</a>)|fpm-nginx,<br />fpm-apache
65+
`SHOW_WELCOME_MESSAGE`<br />*Default: "true"*|Show a helpful welcome message showing container information when the container starts.|all
6566
`SSL_CERTIFICATE_FILE`<br />*Default: "/etc/ssl/private/self-signed-web.crt"*|Path to public certificate file for HTTPS. You must provide this file otherwise a self-signed key pair will be generated for you.|fpm-nginx,<br />fpm-apache
6667
`SSL_MODE`<br />*Default: "off"*|Configure how you would like to handle SSL. This can be "off" (HTTP only), "mixed" (HTTP + HTTPS), or "full" (HTTPS only). If you use HTTP, you may need to also change `PHP_SESSION_COOKIE_SECURE`.|fpm-nginx,<br />fpm-apache,<br />unit
6768
`SSL_PRIVATE_KEY_FILE`<br />*Default: "/etc/ssl/private/self-signed-web.key"*|Path to private key file for HTTPS. You must provide this file otherwise a self-signed key pair will be generated for you.|fpm-nginx,<br />fpm-apache

src/common/etc/entrypoint.d/0-container-info.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
if [ "$LOG_OUTPUT_LEVEL" != "off" ] && [ "$DISABLE_DEFAULT_CONFIG" = false ]; then
2+
if [ "$SHOW_WELCOME_MESSAGE" = "true" ] && [ "$LOG_OUTPUT_LEVEL" != "off" ] && [ "$DISABLE_DEFAULT_CONFIG" = false ]; then
33
echo '
44
--------------------------------------------------------------------
55
____ ____ _ _ _ _

src/variations/cli/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ ENV APP_BASE_DIR=/var/www/html \
4444
PHP_OPEN_BASEDIR="" \
4545
PHP_POST_MAX_SIZE="100M" \
4646
PHP_SESSION_COOKIE_SECURE=false \
47-
PHP_UPLOAD_MAX_FILE_SIZE="100M"
47+
PHP_UPLOAD_MAX_FILE_SIZE="100M" \
48+
SHOW_WELCOME_MESSAGE=true
4849

4950
# copy our scripts
5051
COPY --chmod=755 src/common/ /

src/variations/fpm-apache/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ ENV APACHE_START_SERVERS="2" \
7878
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
7979
S6_KEEP_ENV=1 \
8080
S6_VERBOSITY=1 \
81+
SHOW_WELCOME_MESSAGE=true \
8182
SSL_MODE=off \
8283
SSL_CERTIFICATE_FILE=/etc/ssl/private/self-signed-web.crt \
8384
SSL_PRIVATE_KEY_FILE=/etc/ssl/private/self-signed-web.key

src/variations/fpm-nginx/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ ENV APP_BASE_DIR=/var/www/html \
100100
S6_BEHAVIOUR_IF_STAGE2_FAILS=2 \
101101
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
102102
S6_KEEP_ENV=1 \
103-
S6_VERBOSITY=1 \
103+
S6_VERBOSITY=1 \
104+
SHOW_WELCOME_MESSAGE=true \
104105
SSL_MODE=off \
105106
SSL_CERTIFICATE_FILE=/etc/ssl/private/self-signed-web.crt \
106107
SSL_PRIVATE_KEY_FILE=/etc/ssl/private/self-signed-web.key

src/variations/fpm/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ ENV APP_BASE_DIR=/var/www/html \
5050
PHP_OPEN_BASEDIR="" \
5151
PHP_POST_MAX_SIZE="100M" \
5252
PHP_SESSION_COOKIE_SECURE=Off \
53-
PHP_UPLOAD_MAX_FILE_SIZE="100M"
53+
PHP_UPLOAD_MAX_FILE_SIZE="100M" \
54+
SHOW_WELCOME_MESSAGE=true
5455

5556
# copy our scripts
5657
COPY --chmod=755 src/common/ /

src/variations/unit/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ ENV APP_BASE_DIR=/var/www/html \
100100
PHP_POST_MAX_SIZE="100M" \
101101
PHP_SESSION_COOKIE_SECURE=false \
102102
PHP_UPLOAD_MAX_FILE_SIZE="100M" \
103+
SHOW_WELCOME_MESSAGE=true \
103104
SSL_CERT_BUNDLE_FILE=/etc/ssl/certs/private/bundle.pem \
104105
SSL_MODE=off \
105106
UNIT_CERTIFICATE_NAME=self-signed-web \

0 commit comments

Comments
 (0)