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

Commit a39026e

Browse files
authored
Merge pull request #123 from jdeathe/issue/122
CLOSES #122: Updates source image to 1.10.0.
2 parents 72658b6 + c61b74b commit a39026e

File tree

11 files changed

+1389
-1081
lines changed

11 files changed

+1389
-1081
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
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 - Unreleased
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.
814

915
### 1.9.0 - 2017-02-07
1016

Dockerfile

Lines changed: 9 additions & 8 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
# -----------------------------------------------------------------------------
@@ -48,6 +48,7 @@ ENV APACHE_MPM="worker"
4848
# -----------------------------------------------------------------------------
4949
ARG RELEASE_VERSION="1.9.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

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)