Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 43d2d7c

Browse files
authored
Merge pull request #124 from jdeathe/centos-6-develop
Release changes for 1.10.0
2 parents 85d7641 + 6ee7ed1 commit 43d2d7c

File tree

11 files changed

+1441
-1135
lines changed

11 files changed

+1441
-1135
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44

55
Summary of release changes for Version 1.
66

7-
CentOS-6 6.8 x86_64, Apache 2.2, PHP-CGI 5.3 (FastCGI), PHP memcached 1.0, PHP APC 3.1.
7+
CentOS-6 6.9 x86_64, Apache 2.2, PHP-CGI 5.3 (FastCGI), PHP memcached 1.0, PHP APC 3.1.
8+
9+
### 1.10.0 - 2017-07-16
10+
11+
- Updates image source to [release 1.10.0](https://github.com/jdeathe/centos-ssh-apache-php/releases/tag/1.10.0).
12+
- Fixes issue with missing APACHE_SSL_* environment variables for make,scmi and systemd.
13+
- Adds test case output with improved readability.
14+
- Adds simplified port incrementation handling to systemd unit and make consistent with SCMI.
815

916
### 1.9.0 - 2017-02-07
1017

Dockerfile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
# CentOS-6, Apache 2.2, PHP 5.3, PHP Memcached 1.0, PHP APC 3.1.
55
#
66
# =============================================================================
7-
FROM jdeathe/centos-ssh-apache-php:1.9.0
8-
9-
MAINTAINER James Deathe <james.deathe@gmail.com>
7+
FROM jdeathe/centos-ssh-apache-php:1.10.0
108

119
# -----------------------------------------------------------------------------
1210
# FastCGI support
1311
# -----------------------------------------------------------------------------
1412
RUN rpm --rebuilddb \
1513
&& yum -y erase \
16-
php-5.3.3-48.el6_8 \
17-
&& yum --setopt=tsflags=nodocs -y install \
14+
php-5.3.3-49.el6 \
15+
&& yum -y install \
16+
--setopt=tsflags=nodocs \
17+
--disableplugin=fastestmirror \
1818
fcgi-2.4.0-12.el6 \
1919
mod_fcgid-2.3.9-1.el6 \
2020
&& yum versionlock add \
@@ -26,9 +26,9 @@ RUN rpm --rebuilddb \
2626
# -----------------------------------------------------------------------------
2727
# Copy files into place
2828
# -----------------------------------------------------------------------------
29-
ADD opt/scmi \
29+
ADD src/opt/scmi \
3030
/opt/scmi/
31-
ADD etc/systemd/system \
31+
ADD src/etc/systemd/system \
3232
/etc/systemd/system/
3333

3434
# -----------------------------------------------------------------------------
@@ -46,8 +46,9 @@ ENV APACHE_MPM="worker"
4646
# -----------------------------------------------------------------------------
4747
# Set image metadata
4848
# -----------------------------------------------------------------------------
49-
ARG RELEASE_VERSION="1.9.0"
49+
ARG RELEASE_VERSION="1.10.0"
5050
LABEL \
51+
maintainer="James Deathe <james.deathe@gmail.com>" \
5152
install="docker run \
5253
--rm \
5354
--privileged \
@@ -76,6 +77,6 @@ jdeathe/centos-ssh-apache-php-fcgi:${RELEASE_VERSION} \
7677
org.deathe.license="MIT" \
7778
org.deathe.vendor="jdeathe" \
7879
org.deathe.url="https://github.com/jdeathe/centos-ssh-apache-php-fcgi" \
79-
org.deathe.description="CentOS-6 6.8 x86_64 - Apache 2.2, PHP-CGI 5.3 (FastCGI), PHP memcached 1.0, PHP APC 3.1."
80+
org.deathe.description="CentOS-6 6.9 x86_64 - Apache 2.2, PHP-CGI 5.3 (FastCGI), PHP memcached 1.0, PHP APC 3.1."
8081

8182
CMD ["/usr/sbin/httpd-startup", "/usr/bin/supervisord", "--configuration=/etc/supervisord.conf"]

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Targets:
2626
DOCKER_IMAGE_TAG variable.
2727
logs Display log output from the running container.
2828
logs-delayed Display log output from the running container after
29-
backing off shortly. This can be necessary when
30-
chaining make targets together.
29+
backing off for STARTUP_TIME seconds. This can be
30+
necessary when chaining make targets together.
3131
pause Pause the running container.
3232
pull Pull the release image from the registry. Requires
3333
the DOCKER_IMAGE_TAG variable.
@@ -61,6 +61,9 @@ Variables:
6161
artifacts are placed.
6262
- NO_CACHE When true, no cache will be used while running the
6363
build target.
64+
- STARTUP_TIME Defines the number of seconds expected to complete
65+
the startup process, including the bootstrap where
66+
applicable.
6467

6568
endef
6669

@@ -357,7 +360,7 @@ logs: _prerequisites
357360
@ $(docker) logs $(DOCKER_NAME)
358361

359362
logs-delayed: _prerequisites
360-
@ sleep 2
363+
@ sleep $(STARTUP_TIME)
361364
@ $(MAKE) logs
362365

363366
load: _prerequisites _require-docker-release-tag _require-package-path

README-short.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CentOS-6 6.8 x86_64 - Apache / PHP-CGI (FastCGI) / PHP memcached / PHP APC.
1+
CentOS-6 6.9 x86_64 - Apache / PHP-CGI (FastCGI) / PHP memcached / PHP APC.

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
centos-ssh-apache-php-fcgi
22
==========================
33

4-
Docker Image including CentOS-6 6.8 x86_64, Apache 2.2, PHP-CGI 5.3 (FastCGI), PHP memcached 1.0, PHP APC 3.1.
4+
Docker Image including CentOS-6 6.9 x86_64, Apache 2.2, PHP-CGI 5.3 (FastCGI), PHP memcached 1.0, PHP APC 3.1.
55

66
Apache PHP web server, loading only a minimal set of Apache modules by default. Supports custom configuration via environment variables.
77

88
## Overview & links
99

10-
The latest CentOS-6 based release can be pulled from the centos-6 Docker tag. For a specific release tag the convention is `centos-6-1.9.0` or `1.9.0` for the [1.9.0](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/tree/1.7.0) release tag.
10+
The latest CentOS-6 based release can be pulled from the centos-6 Docker tag. For a specific release tag the convention is `centos-6-1.10.0` or `1.10.0` for the [1.10.0](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/tree/1.7.0) release tag.
1111

12-
- `centos-6`, `centos-6-1.9.0`, `1.9.0` [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/blob/centos-6/Dockerfile)
12+
- `centos-6`, `centos-6-1.10.0`, `1.10.0` [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/blob/centos-6/Dockerfile)
1313

1414
This build of [Apache](https://httpd.apache.org/), (httpd CentOS package), uses the [mod_fcgid](https://httpd.apache.org/mod_fcgid/) module to run [PHP](http://php.net/) as a [FastCGI](http://www.fastcgi.com/) process.
1515

@@ -87,10 +87,10 @@ $ docker run \
8787
--volume /:/media/root \
8888
--env BASH_ENV="" \
8989
--env ENV="" \
90-
jdeathe/centos-ssh-apache-php-fcgi:1.9.0 \
90+
jdeathe/centos-ssh-apache-php-fcgi:1.10.0 \
9191
/usr/sbin/scmi install \
9292
--chroot=/media/root \
93-
--tag=1.9.0 \
93+
--tag=1.10.0 \
9494
--name=apache-php.pool-1.1.1
9595
```
9696

@@ -105,10 +105,10 @@ $ docker run \
105105
--volume /:/media/root \
106106
--env BASH_ENV="" \
107107
--env ENV="" \
108-
jdeathe/centos-ssh-apache-php-fcgi:1.9.0 \
108+
jdeathe/centos-ssh-apache-php-fcgi:1.10.0 \
109109
/usr/sbin/scmi uninstall \
110110
--chroot=/media/root \
111-
--tag=1.9.0 \
111+
--tag=1.10.0 \
112112
--name=apache-php.pool-1.1.1
113113
```
114114

@@ -123,10 +123,10 @@ $ docker run \
123123
--volume /:/media/root \
124124
--env BASH_ENV="" \
125125
--env ENV="" \
126-
jdeathe/centos-ssh-apache-php-fcgi:1.9.0 \
126+
jdeathe/centos-ssh-apache-php-fcgi:1.10.0 \
127127
/usr/sbin/scmi install \
128128
--chroot=/media/root \
129-
--tag=1.9.0 \
129+
--tag=1.10.0 \
130130
--name=apache-php.pool-1.1.1 \
131131
--manager=systemd \
132132
--register \
@@ -148,7 +148,7 @@ To see detailed information about the image run `scmi` with the `--info` option.
148148
$ eval "sudo -E $(
149149
docker inspect \
150150
-f "{{.ContainerConfig.Labels.install}}" \
151-
jdeathe/centos-ssh-apache-php-fcgi:1.9.0
151+
jdeathe/centos-ssh-apache-php-fcgi:1.10.0
152152
) --info"
153153
```
154154

@@ -158,7 +158,7 @@ To perform an installation using the docker name `apache-php.pool-1.2.1` simply
158158
$ eval "sudo -E $(
159159
docker inspect \
160160
-f "{{.ContainerConfig.Labels.install}}" \
161-
jdeathe/centos-ssh-apache-php-fcgi:1.9.0
161+
jdeathe/centos-ssh-apache-php-fcgi:1.10.0
162162
) --name=apache-php.pool-1.2.1"
163163
```
164164

@@ -168,7 +168,7 @@ To uninstall use the *same command* that was used to install but with the `unins
168168
$ eval "sudo -E $(
169169
docker inspect \
170170
-f "{{.ContainerConfig.Labels.uninstall}}" \
171-
jdeathe/centos-ssh-apache-php-fcgi:1.9.0
171+
jdeathe/centos-ssh-apache-php-fcgi:1.10.0
172172
) --name=apache-php.pool-1.2.1"
173173
```
174174

@@ -179,15 +179,15 @@ With the addition of install/uninstall image labels it is possible to use [Proje
179179
_NOTE:_ A prerequisite of the following examples is that the image has been pulled (or loaded from the release package).
180180

181181
```
182-
$ docker pull jdeathe/centos-ssh-apache-php-fcgi:1.9.0
182+
$ docker pull jdeathe/centos-ssh-apache-php-fcgi:1.10.0
183183
```
184184

185185
To see detailed information about the image run `scmi` with the `--info` option. To see all available `scmi` options run with the `--help` option.
186186

187187
```
188188
$ sudo -E atomic install \
189189
-n apache-php.pool-1.3.1 \
190-
jdeathe/centos-ssh-apache-php-fcgi:1.9.0 \
190+
jdeathe/centos-ssh-apache-php-fcgi:1.10.0 \
191191
--info
192192
```
193193

@@ -196,14 +196,14 @@ To perform an installation using the docker name `apache-php.pool-1.3.1` simply
196196
```
197197
$ sudo -E atomic install \
198198
-n apache-php.pool-1.3.1 \
199-
jdeathe/centos-ssh-apache-php-fcgi:1.9.0
199+
jdeathe/centos-ssh-apache-php-fcgi:1.10.0
200200
```
201201

202202
Alternatively, you could use the `scmi` options `--name` or `-n` for naming the container.
203203

204204
```
205205
$ sudo -E atomic install \
206-
jdeathe/centos-ssh-apache-php-fcgi:1.9.0 \
206+
jdeathe/centos-ssh-apache-php-fcgi:1.10.0 \
207207
--name apache-php.pool-1.3.1
208208
```
209209

@@ -212,7 +212,7 @@ To uninstall use the *same command* that was used to install but with the `unins
212212
```
213213
$ sudo -E atomic uninstall \
214214
-n apache-php.pool-1.3.1 \
215-
jdeathe/centos-ssh-apache-php-fcgi:1.9.0
215+
jdeathe/centos-ssh-apache-php-fcgi:1.10.0
216216
```
217217

218218
#### Environment Variables

default.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ define DOCKER_CONTAINER_PARAMETERS
1919
--env "APACHE_RUN_USER=$(APACHE_RUN_USER)" \
2020
--env "APACHE_SERVER_ALIAS=$(APACHE_SERVER_ALIAS)" \
2121
--env "APACHE_SERVER_NAME=$(APACHE_SERVER_NAME)" \
22+
--env "APACHE_SSL_CERTIFICATE=$(APACHE_SSL_CERTIFICATE)" \
23+
--env "APACHE_SSL_CIPHER_SUITE=$(APACHE_SSL_CIPHER_SUITE)" \
24+
--env "APACHE_SSL_PROTOCOL=$(APACHE_SSL_PROTOCOL)" \
2225
--env "APACHE_SYSTEM_USER=$(APACHE_SYSTEM_USER)" \
2326
--env "PHP_OPTIONS_DATE_TIMEZONE=$(PHP_OPTIONS_DATE_TIMEZONE)"
2427
endef

environment.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ NO_CACHE ?= false
2929
# Directory path for release packages
3030
DIST_PATH ?= ./dist
3131

32+
# Number of seconds expected to complete container startup including bootstrap.
33+
STARTUP_TIME ?= 2
34+
3235
# ------------------------------------------------------------------------------
3336
# Application container configuration
3437
# ------------------------------------------------------------------------------
@@ -62,5 +65,8 @@ APACHE_RUN_GROUP ?= app-www
6265
APACHE_RUN_USER ?= app-www
6366
APACHE_SERVER_ALIAS ?=
6467
APACHE_SERVER_NAME ?=
68+
APACHE_SSL_CERTIFICATE ?=
69+
APACHE_SSL_CIPHER_SUITE ?= ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
70+
APACHE_SSL_PROTOCOL ?= All -SSLv2 -SSLv3
6571
APACHE_SYSTEM_USER ?= app
6672
PHP_OPTIONS_DATE_TIMEZONE ?= UTC

etc/systemd/system/centos-ssh-apache-php-fcgi@.service renamed to src/etc/systemd/system/centos-ssh-apache-php-fcgi@.service

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Environment="DOCKER_USER=jdeathe"
5252
Environment="DOCKER_CONTAINER_OPTS="
5353
Environment="DOCKER_IMAGE_PACKAGE_PATH=/var/opt/scmi/packages"
5454
Environment="DOCKER_IMAGE_NAME=centos-ssh-apache-php-fcgi"
55-
Environment="DOCKER_IMAGE_TAG=1.9.0"
55+
Environment="DOCKER_IMAGE_TAG=1.10.0"
5656
Environment="DOCKER_PORT_MAP_TCP_80=8080"
5757
Environment="DOCKER_PORT_MAP_TCP_443=9443"
5858
Environment="DOCKER_PORT_MAP_TCP_8443=NULL"
@@ -72,6 +72,9 @@ Environment="APACHE_RUN_GROUP=app-www"
7272
Environment="APACHE_RUN_USER=app-www"
7373
Environment="APACHE_SERVER_ALIAS="
7474
Environment="APACHE_SERVER_NAME="
75+
Environment="APACHE_SSL_CERTIFICATE="
76+
Environment="APACHE_SSL_CIPHER_SUITE=ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS"
77+
Environment="APACHE_SSL_PROTOCOL=All -SSLv2 -SSLv3"
7578
Environment="APACHE_SYSTEM_USER=app"
7679
Environment="PHP_OPTIONS_DATE_TIMEZONE=UTC"
7780

@@ -103,42 +106,6 @@ ExecStartPre=-/bin/bash -c \
103106
ExecStart=/bin/bash -c \
104107
"exec /usr/bin/docker run \
105108
--name %p.%i \
106-
$(\
107-
if [[ ${DOCKER_PORT_MAP_TCP_80} != NULL ]]; then \
108-
if [[ -n $(/usr/bin/gawk 'match($0, /^([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:)?([0-9]+)$/, matches) { print matches[2]; }' <<< \"${DOCKER_PORT_MAP_TCP_80}\") ]]; then \
109-
printf -- '--publish %%s%%s:80' \
110-
\"$(/usr/bin/gawk 'match($0, /^([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:)?([0-9]+)$/, matches) { print matches[1]; }' <<< \"${DOCKER_PORT_MAP_TCP_80}\")\" \
111-
\"$(( $(/usr/bin/gawk 'match($0, /^([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:)?([0-9]+)$/, matches) { print matches[2]; }' <<< \"${DOCKER_PORT_MAP_TCP_80}\") + $(/usr/bin/awk -F. '$0=$1' <<< %i) - 1 ))\"; \
112-
else \
113-
printf -- '--publish %%s:80' \
114-
\"${DOCKER_PORT_MAP_TCP_80}\"; \
115-
fi; \
116-
fi; \
117-
) \
118-
$(\
119-
if [[ ${DOCKER_PORT_MAP_TCP_443} != NULL ]] && [[ ${APACHE_MOD_SSL_ENABLED} == true ]]; then \
120-
if [[ -n $(/usr/bin/gawk 'match($0, /^([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:)?([0-9]+)$/, matches) { print matches[2]; }' <<< \"${DOCKER_PORT_MAP_TCP_443}\") ]]; then \
121-
printf -- '--publish %%s%%s:443' \
122-
\"$(/usr/bin/gawk 'match($0, /^([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:)?([0-9]+)$/, matches) { print matches[1]; }' <<< \"${DOCKER_PORT_MAP_TCP_443}\")\" \
123-
\"$(( $(/usr/bin/gawk 'match($0, /^([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:)?([0-9]+)$/, matches) { print matches[2]; }' <<< \"${DOCKER_PORT_MAP_TCP_443}\") + $(/usr/bin/awk -F. '$0=$1' <<< %i) - 1 ))\"; \
124-
else \
125-
printf -- '--publish %%s:443' \
126-
\"${DOCKER_PORT_MAP_TCP_443}\"; \
127-
fi; \
128-
fi; \
129-
) \
130-
$(\
131-
if [[ ${DOCKER_PORT_MAP_TCP_8443} != NULL ]]; then \
132-
if [[ -n $(/usr/bin/gawk 'match($0, /^([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:)?([0-9]+)$/, matches) { print matches[2]; }' <<< \"${DOCKER_PORT_MAP_TCP_8443}\") ]]; then \
133-
printf -- '--publish %%s%%s:8443' \
134-
\"$(/usr/bin/gawk 'match($0, /^([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:)?([0-9]+)$/, matches) { print matches[1]; }' <<< \"${DOCKER_PORT_MAP_TCP_8443}\")\" \
135-
\"$(( $(/usr/bin/gawk 'match($0, /^([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:)?([0-9]+)$/, matches) { print matches[2]; }' <<< \"${DOCKER_PORT_MAP_TCP_8443}\") + $(/usr/bin/awk -F. '$0=$1' <<< %i) - 1 ))\"; \
136-
else \
137-
printf -- '--publish %%s:8443' \
138-
\"${DOCKER_PORT_MAP_TCP_8443}\"; \
139-
fi; \
140-
fi; \
141-
) \
142109
--env \"APACHE_CONTENT_ROOT=${APACHE_CONTENT_ROOT}\" \
143110
--env \"APACHE_CUSTOM_LOG_FORMAT=${APACHE_CUSTOM_LOG_FORMAT}\" \
144111
--env \"APACHE_CUSTOM_LOG_LOCATION=${APACHE_CUSTOM_LOG_LOCATION}\" \
@@ -155,8 +122,41 @@ ExecStart=/bin/bash -c \
155122
--env \"APACHE_RUN_USER=${APACHE_RUN_USER}\" \
156123
--env \"APACHE_SERVER_ALIAS=${APACHE_SERVER_ALIAS}\" \
157124
--env \"APACHE_SERVER_NAME=${APACHE_SERVER_NAME}\" \
125+
--env \"APACHE_SSL_CERTIFICATE=${APACHE_SSL_CERTIFICATE}\" \
126+
--env \"APACHE_SSL_CIPHER_SUITE=${APACHE_SSL_CIPHER_SUITE}\" \
127+
--env \"APACHE_SSL_PROTOCOL=${APACHE_SSL_PROTOCOL}\" \
158128
--env \"APACHE_SYSTEM_USER=${APACHE_SYSTEM_USER}\" \
159129
--env \"PHP_OPTIONS_DATE_TIMEZONE=${PHP_OPTIONS_DATE_TIMEZONE}\" \
130+
$(if [[ ${DOCKER_PORT_MAP_TCP_80} != NULL ]]; then \
131+
if /usr/bin/grep -qE '^([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}:)?[0-9]*$' <<< \"${DOCKER_PORT_MAP_TCP_80}\"; then \
132+
printf -- '--publish %%s%%s:80' \
133+
$(/usr/bin/grep -o '^[0-9\.]*:' <<< \"${DOCKER_PORT_MAP_TCP_80}\") \
134+
$(( $(/usr/bin/grep -o '[0-9]*$' <<< \"${DOCKER_PORT_MAP_TCP_80}\") + $(/usr/bin/sed 's~\.[0-9]*$~~' <<< %i) - 1 )); \
135+
else \
136+
printf -- '--publish %%s:80' \
137+
\"${DOCKER_PORT_MAP_TCP_80}\"; \
138+
fi; \
139+
fi) \
140+
$(if [[ ${DOCKER_PORT_MAP_TCP_443} != NULL ]]; then \
141+
if /usr/bin/grep -qE '^([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}:)?[0-9]*$' <<< \"${DOCKER_PORT_MAP_TCP_443}\"; then \
142+
printf -- '--publish %%s%%s:443' \
143+
$(/usr/bin/grep -o '^[0-9\.]*:' <<< \"${DOCKER_PORT_MAP_TCP_443}\") \
144+
$(( $(/usr/bin/grep -o '[0-9]*$' <<< \"${DOCKER_PORT_MAP_TCP_443}\") + $(/usr/bin/sed 's~\.[0-9]*$~~' <<< %i) - 1 )); \
145+
else \
146+
printf -- '--publish %%s:443' \
147+
\"${DOCKER_PORT_MAP_TCP_443}\"; \
148+
fi; \
149+
fi) \
150+
$(if [[ ${DOCKER_PORT_MAP_TCP_8443} != NULL ]]; then \
151+
if /usr/bin/grep -qE '^([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}:)?[0-9]*$' <<< \"${DOCKER_PORT_MAP_TCP_8443}\"; then \
152+
printf -- '--publish %%s%%s:8443' \
153+
$(/usr/bin/grep -o '^[0-9\.]*:' <<< \"${DOCKER_PORT_MAP_TCP_8443}\") \
154+
$(( $(/usr/bin/grep -o '[0-9]*$' <<< \"${DOCKER_PORT_MAP_TCP_8443}\") + $(/usr/bin/sed 's~\.[0-9]*$~~' <<< %i) - 1 )); \
155+
else \
156+
printf -- '--publish %%s:8443' \
157+
\"${DOCKER_PORT_MAP_TCP_8443}\"; \
158+
fi; \
159+
fi) \
160160
${DOCKER_CONTAINER_OPTS} \
161161
${DOCKER_USER}/${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG}; \
162162
"

opt/scmi/environment.sh renamed to src/opt/scmi/environment.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ NO_CACHE="${NO_CACHE:-false}"
2828
# Directory path for release packages
2929
DIST_PATH="${DIST_PATH:-./dist}"
3030

31+
# Number of seconds expected to complete container startup including bootstrap.
32+
STARTUP_TIME="${STARTUP_TIME:-2}"
33+
3134
# ETCD register service settings
3235
REGISTER_ETCD_PARAMETERS="${REGISTER_ETCD_PARAMETERS:-}"
3336
REGISTER_TTL="${REGISTER_TTL:-60}"
@@ -66,5 +69,8 @@ APACHE_RUN_GROUP="${APACHE_RUN_GROUP:-app-www}"
6669
APACHE_RUN_USER="${APACHE_RUN_USER:-app-www}"
6770
APACHE_SERVER_ALIAS="${APACHE_SERVER_ALIAS:-}"
6871
APACHE_SERVER_NAME="${APACHE_SERVER_NAME:-}"
72+
APACHE_SSL_CERTIFICATE="${APACHE_SSL_CERTIFICATE:-}"
73+
APACHE_SSL_CIPHER_SUITE="${APACHE_SSL_CIPHER_SUITE:-"ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS"}"
74+
APACHE_SSL_PROTOCOL="${APACHE_SSL_PROTOCOL:-All -SSLv2 -SSLv3}"
6975
APACHE_SYSTEM_USER="${APACHE_SYSTEM_USER:-app}"
7076
PHP_OPTIONS_DATE_TIMEZONE="${PHP_OPTIONS_DATE_TIMEZONE:-UTC}"

0 commit comments

Comments
 (0)