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

Commit 095fbc3

Browse files
authored
Merge pull request #214 from jdeathe/centos-7-develop
Release changes for 2.2.0
2 parents faafb18 + 4ec207c commit 095fbc3

34 files changed

+761
-658
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ PHP_OPTIONS_DATE_TIMEZONE=UTC
2323
PHP_OPTIONS_SESSION_NAME=PHPSESSID
2424
PHP_OPTIONS_SESSION_SAVE_HANDLER=files
2525
PHP_OPTIONS_SESSION_SAVE_PATH=var/session
26+
SYSTEM_TIMEZONE=UTC

CHANGELOG.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,37 @@
11
# Change Log
22

3-
## centos-7
3+
## 2 - centos-7
44

5-
Summary of release changes for Version 2.
5+
Summary of release changes.
66

7-
CentOS-7 7.5.1804 x86_64, Apache 2.4, PHP-CGI 5.4 (FastCGI), PHP memcached 2.2, Zend Opcache 7.0.
7+
### 2.2.0 - 2019-07-20
8+
9+
- Updates source image to [2.6.0](https://github.com/jdeathe/centos-ssh/releases/tag/2.6.0).
10+
- Updates php-hello-world to [0.12.0](https://github.com/jdeathe/php-hello-world/releases/tag/0.12.0).
11+
- Updates description in centos-ssh-apache-php-fcgi.register@.service.
12+
- Updates Apache configuration to use DSO Module identifiers for consistency.
13+
- Updates CHANGELOG.md to simplify maintenance.
14+
- Updates README.md to simplify contents and improve readability.
15+
- Updates README-short.txt to apply to all image variants.
16+
- Updates Dockerfile `org.deathe.description` metadata LABEL for consistency + include PHP redis module.
17+
- Updates wrapper to set httpd ErrorLog to `/dev/stderr` instead of `/dev/stdout`.
18+
- Updates supervisord configuration to send error log output to stderr.
19+
- Updates bootstrap timer to use UTC date timestamps.
20+
- Updates bootstrap supervisord configuration file/priority to `20-httpd-bootstrap.conf`/`20`.
21+
- Updates httpd wrapper supervisord configuration file/priority to `70-httpd-wrapper.conf`/`70`.
22+
- Fixes bootstrap; ensure user creation occurs before setting ownership with user.
23+
- Fixes docker host connection status check in Makefile.
24+
- Adds `PACKAGE_PATH` placeholder/variable replacement in bootstrap of configuration files.
25+
- Adds `inspect`, `reload` and `top` Makefile targets.
26+
- Adds improved `clean` Makefile target; includes exited containers and dangling images.
27+
- Adds `SYSTEM_TIMEZONE` handling to Makefile, scmi, systemd unit and docker-compose templates.
28+
- Adds system time zone validation to healthcheck.
29+
- Adds lock/state file to bootstrap/wrapper scripts.
30+
- Adds `php-wrapper` and `fcgid.conf` as part of the service; removing dependency on the php-hello-world app.
31+
- Removes unused `DOCKER_PORT_MAP_TCP_22` variable from environment includes.
32+
- Removes support for long image tags (i.e. centos-7-2.x.x).
33+
- Removes `APACHE_AUTOSTART_HTTPD_BOOTSTRAP`, replaced with `ENABLE_HTTPD_BOOTSTRAP`.
34+
- Removes `APACHE_AUTOSTART_HTTPD_WRAPPER`, replaced with `ENABLE_HTTPD_WRAPPER`.
835

936
### 2.1.0 - 2019-04-14
1037

Dockerfile

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
FROM jdeathe/centos-ssh:2.5.1
1+
FROM jdeathe/centos-ssh:2.6.0
22

33
# Use the form ([{fqdn}-]{package-name}|[{fqdn}-]{provider-name})
44
ARG PACKAGE_NAME="app"
55
ARG PACKAGE_PATH="/opt/${PACKAGE_NAME}"
6-
ARG PACKAGE_RELEASE_VERSION="0.11.0"
7-
ARG RELEASE_VERSION="2.1.0"
6+
ARG PACKAGE_RELEASE_VERSION="0.12.0"
7+
ARG RELEASE_VERSION="2.2.0"
88

99
# ------------------------------------------------------------------------------
10-
# - Base install of required packages
10+
# Base install of required packages
1111
# ------------------------------------------------------------------------------
12-
RUN rpm --rebuilddb \
13-
&& yum -y install \
12+
RUN yum -y install \
1413
--setopt=tsflags=nodocs \
1514
--disableplugin=fastestmirror \
1615
elinks-0.12-0.37.pre6.el7.0.1 \
@@ -43,8 +42,9 @@ ADD src /
4342
# Provisioning
4443
# - Add default system users
4544
# - Limit threads for the application user
46-
# - Disable Apache directory indexes and welcome page
4745
# - Disable Apache language based content negotiation
46+
# - Disable Apache directory indexes and welcome page
47+
# - Disable Apache default fcgid configuration; replaced with 00-fcgid.conf
4848
# - Custom Apache configuration
4949
# - Disable all Apache modules and enable the minimum
5050
# - Disable SSL
@@ -99,6 +99,10 @@ RUN useradd -r -M -d /var/www/app -s /sbin/nologin app \
9999
/etc/httpd/conf.d/welcome.conf \
100100
&& chmod 444 \
101101
/etc/httpd/conf.d/welcome.conf \
102+
&& truncate -s 0 \
103+
/etc/httpd/conf.d/fcgid.conf \
104+
&& chmod 444 \
105+
/etc/httpd/conf.d/fcgid.conf \
102106
&& { printf -- \
103107
'\n%s\n%s\n%s\n%s\n%s\n%s\n%s\\\n%s%s\\\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n' \
104108
'#' \
@@ -186,6 +190,8 @@ RUN useradd -r -M -d /var/www/app -s /sbin/nologin app \
186190
&& sed -i \
187191
-e "s~{{RELEASE_VERSION}}~${RELEASE_VERSION}~g" \
188192
/etc/systemd/system/centos-ssh-apache-php-fcgi@.service \
193+
&& chmod 644 \
194+
/etc/supervisord.d/{20-httpd-bootstrap,70-httpd-wrapper}.conf \
189195
&& chmod 700 \
190196
/usr/{bin/healthcheck,sbin/httpd-{bootstrap,wrapper}}
191197

@@ -205,6 +211,9 @@ RUN mkdir -p -m 750 ${PACKAGE_PATH} \
205211
&& mv \
206212
${PACKAGE_PATH}/public \
207213
${PACKAGE_PATH}/public_html \
214+
&& rm -f \
215+
${PACKAGE_PATH}/bin/php-wrapper \
216+
${PACKAGE_PATH}/etc/httpd/conf.d/50-fcgid.conf \
208217
&& $(\
209218
if [[ -f /usr/share/php-pecl-apc/apc.php ]]; then \
210219
cp \
@@ -223,8 +232,7 @@ EXPOSE 80 443 8443
223232
# ------------------------------------------------------------------------------
224233
# Set default environment variables used to configure the service container
225234
# ------------------------------------------------------------------------------
226-
ENV APACHE_AUTOSTART_HTTPD_BOOTSTRAP="true" \
227-
APACHE_AUTOSTART_HTTPD_WRAPPER="true" \
235+
ENV \
228236
APACHE_CONTENT_ROOT="/var/www/${PACKAGE_NAME}" \
229237
APACHE_CUSTOM_LOG_FORMAT="combined" \
230238
APACHE_CUSTOM_LOG_LOCATION="var/log/apache_access_log" \
@@ -245,14 +253,15 @@ ENV APACHE_AUTOSTART_HTTPD_BOOTSTRAP="true" \
245253
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" \
246254
APACHE_SSL_PROTOCOL="All -SSLv2 -SSLv3" \
247255
APACHE_SYSTEM_USER="app" \
256+
ENABLE_HTTPD_BOOTSTRAP="true" \
257+
ENABLE_HTTPD_WRAPPER="true" \
258+
ENABLE_SSHD_BOOTSTRAP="false" \
259+
ENABLE_SSHD_WRAPPER="false" \
248260
PACKAGE_PATH="${PACKAGE_PATH}" \
249261
PHP_OPTIONS_DATE_TIMEZONE="UTC" \
250262
PHP_OPTIONS_SESSION_NAME="PHPSESSID" \
251263
PHP_OPTIONS_SESSION_SAVE_HANDLER="files" \
252-
PHP_OPTIONS_SESSION_SAVE_PATH="var/session" \
253-
SSH_AUTOSTART_SSHD="false" \
254-
SSH_AUTOSTART_SSHD_BOOTSTRAP="false" \
255-
SSH_AUTOSTART_SUPERVISOR_STDOUT="false"
264+
PHP_OPTIONS_SESSION_SAVE_PATH="var/session"
256265

257266
# ------------------------------------------------------------------------------
258267
# Set image metadata
@@ -283,7 +292,7 @@ jdeathe/centos-ssh-apache-php-fcgi:${RELEASE_VERSION} \
283292
org.deathe.license="MIT" \
284293
org.deathe.vendor="jdeathe" \
285294
org.deathe.url="https://github.com/jdeathe/centos-ssh-apache-php-fcgi" \
286-
org.deathe.description="CentOS-7 7.5.1804 x86_64 - Apache 2.4, PHP-CGI 5.4 (FastCGI), PHP memcached 2.2, Zend Opcache 7.0."
295+
org.deathe.description="Apache 2.4, PHP-CGI 5.4 (FastCGI), PHP memcached 2.2, PHP redis 2.2, Zend Opcache 7.0 - CentOS-7 7.6.1810 x86_64."
287296

288297
HEALTHCHECK \
289298
--interval=1s \

0 commit comments

Comments
 (0)