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

Commit

Permalink
Merge pull request #725 from jdeathe/centos-6-develop
Browse files Browse the repository at this point in the history
Release changes for 1.13.0
  • Loading branch information
jdeathe authored Jul 14, 2019
2 parents 45d6116 + 19b82ba commit 021881e
Show file tree
Hide file tree
Showing 32 changed files with 688 additions and 687 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ PHP_OPTIONS_DATE_TIMEZONE=UTC
PHP_OPTIONS_SESSION_NAME=PHPSESSID
PHP_OPTIONS_SESSION_SAVE_HANDLER=files
PHP_OPTIONS_SESSION_SAVE_PATH=var/session
SYSTEM_TIMEZONE=UTC
39 changes: 34 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,39 @@
# Change Log

## centos-6

Summary of release changes for Version 1.

CentOS-6 6.10 x86_64, Apache 2.2, PHP 5.3, PHP memcached 1.0, PHP APC 3.1.
## 1 - centos-6

Summary of release changes.

### 1.13.0 - 2019-07-15

- Updates source image to [1.11.0](https://github.com/jdeathe/centos-ssh/releases/tag/1.11.0).
- Updates php-hello-world to [0.12.0](https://github.com/jdeathe/php-hello-world/releases/tag/0.12.0).
- Updates Dockerfile `org.deathe.description` metadata LABEL to include PHP redis module.
- Updates description in centos-ssh-apache-php.register@.service.
- Updates wrapper to set httpd ErrorLog to `/dev/stderr` instead of `/dev/stdout`.
- Updates Apache configuration to use DSO Module identifiers for consistency.
- Updates CHANGELOG.md to simplify maintenance.
- Updates README.md to simplify contents and improve readability.
- Updates README-short.txt to apply to all image variants.
- Updates Dockerfile `org.deathe.description` metadata LABEL for consistency.
- Updates supervisord configuration to send error log output to stderr.
- Updates bootstrap timer to use UTC date timestamps.
- Updates bootstrap supervisord configuration file/priority to `20-httpd-bootstrap.conf`/`20`.
- Updates httpd wrapper supervisord configuration file/priority to `70-httpd-wrapper.conf`/`70`.
- Fixes php_uname to gethostname replacment regex quoting.
- Fixes README SSL/TLS data volume names/paths in examples.
- Fixes bootstrap; ensure user creation occurs before setting ownership with user.
- Fixes docker host connection status check in Makefile.
- Adds `PACKAGE_PATH` placeholder/variable replacement in bootstrap of configuration files.
- Adds `inspect`, `reload` and `top` Makefile targets.
- Adds improved `clean` Makefile target; includes exited containers and dangling images.
- Adds `SYSTEM_TIMEZONE` handling to Makefile, scmi, systemd unit and docker-compose templates.
- Adds system time zone validation to healthcheck.
- Adds lock/state file to bootstrap/wrapper scripts.
- Removes unused `DOCKER_PORT_MAP_TCP_22` variable from environment includes.
- Removes support for long image tags (i.e. centos-6-1.x.x).
- Removes `APACHE_AUTOSTART_HTTPD_BOOTSTRAP`, replaced with `ENABLE_HTTPD_BOOTSTRAP`.
- Removes `APACHE_AUTOSTART_HTTPD_WRAPPER`, replaced with `ENABLE_HTTPD_WRAPPER`.

### 1.12.0 - 2019-04-11

Expand Down
29 changes: 15 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
FROM jdeathe/centos-ssh:1.10.1
FROM jdeathe/centos-ssh:1.11.0

# Use the form ([{fqdn}-]{package-name}|[{fqdn}-]{provider-name})
ARG PACKAGE_NAME="app"
ARG PACKAGE_PATH="/opt/${PACKAGE_NAME}"
ARG PACKAGE_RELEASE_VERSION="0.11.0"
ARG RELEASE_VERSION="1.12.0"
ARG PACKAGE_RELEASE_VERSION="0.12.0"
ARG RELEASE_VERSION="1.13.0"

# ------------------------------------------------------------------------------
# - Base install of required packages
# Base install of required packages
# ------------------------------------------------------------------------------
RUN rpm --rebuilddb \
&& yum -y install \
RUN yum -y install \
--setopt=tsflags=nodocs \
--disableplugin=fastestmirror \
elinks-0.12-0.21.pre5.el6_3 \
Expand Down Expand Up @@ -167,11 +166,13 @@ RUN useradd -r -M -d /var/www/app -s /sbin/nologin app \
&& sed -i \
-e "s~'ADMIN_PASSWORD','password'~'ADMIN_PASSWORD','apc!123'~g" \
-e "s~'DATE_FORMAT', 'Y/m/d H:i:s'~'DATE_FORMAT', 'Y-m-d H:i:s'~g" \
-e "s~php_uname(\'n\');~gethostname();~g" \
-e "s~php_uname('n');~gethostname();~g" \
/usr/share/php-pecl-apc/apc.php \
&& sed -i \
-e "s~{{RELEASE_VERSION}}~${RELEASE_VERSION}~g" \
/etc/systemd/system/centos-ssh-apache-php@.service \
&& chmod 644 \
/etc/supervisord.d/{20-httpd-bootstrap,70-httpd-wrapper}.conf \
&& chmod 700 \
/usr/{bin/healthcheck,sbin/httpd-{bootstrap,wrapper}}

Expand Down Expand Up @@ -209,8 +210,11 @@ EXPOSE 80 443 8443
# ------------------------------------------------------------------------------
# Set default environment variables used to configure the service container
# ------------------------------------------------------------------------------
ENV APACHE_AUTOSTART_HTTPD_BOOTSTRAP="true" \
APACHE_AUTOSTART_HTTPD_WRAPPER="true" \
ENV \
ENABLE_HTTPD_BOOTSTRAP="true" \
ENABLE_HTTPD_WRAPPER="true" \
ENABLE_SSHD_BOOTSTRAP="false" \
ENABLE_SSHD_WRAPPER="false" \
APACHE_CONTENT_ROOT="/var/www/${PACKAGE_NAME}" \
APACHE_CUSTOM_LOG_FORMAT="combined" \
APACHE_CUSTOM_LOG_LOCATION="var/log/apache_access_log" \
Expand All @@ -235,10 +239,7 @@ ENV APACHE_AUTOSTART_HTTPD_BOOTSTRAP="true" \
PHP_OPTIONS_DATE_TIMEZONE="UTC" \
PHP_OPTIONS_SESSION_NAME="PHPSESSID" \
PHP_OPTIONS_SESSION_SAVE_HANDLER="files" \
PHP_OPTIONS_SESSION_SAVE_PATH="var/session" \
SSH_AUTOSTART_SSHD="false" \
SSH_AUTOSTART_SSHD_BOOTSTRAP="false" \
SSH_AUTOSTART_SUPERVISOR_STDOUT="false"
PHP_OPTIONS_SESSION_SAVE_PATH="var/session"

# ------------------------------------------------------------------------------
# Set image metadata
Expand Down Expand Up @@ -269,7 +270,7 @@ jdeathe/centos-ssh-apache-php:${RELEASE_VERSION} \
org.deathe.license="MIT" \
org.deathe.vendor="jdeathe" \
org.deathe.url="https://github.com/jdeathe/centos-ssh-apache-php" \
org.deathe.description="CentOS-6 6.10 x86_64 - Apache 2.2, PHP 5.3, PHP memcached 1.0, PHP APC 3.1."
org.deathe.description="Apache 2.2, PHP 5.3, PHP memcached 1.0, PHP redis 2.2, PHP APC 3.1 - CentOS-6 6.10 x86_64."

HEALTHCHECK \
--interval=1s \
Expand Down
Loading

0 comments on commit 021881e

Please sign in to comment.