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

Commit 63be843

Browse files
authored
Merge pull request #138 from jdeathe/centos-6-develop
Release changes for 1.10.4
2 parents 029aefa + 2b37efa commit 63be843

File tree

5 files changed

+49
-32
lines changed

5 files changed

+49
-32
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Summary of release changes for Version 1.
66

77
CentOS-6 6.9 x86_64, Apache 2.2, PHP-CGI 5.3 (FastCGI), PHP memcached 1.0, PHP APC 3.1.
88

9+
### 1.10.4 - 2018-01-29
10+
11+
- Updates image source to [release 1.10.4](https://github.com/jdeathe/centos-ssh-apache-php/releases/tag/1.10.4).
12+
913
### 1.10.3 - 2018-01-16
1014

1115
- Updates image source to [release 1.10.3](https://github.com/jdeathe/centos-ssh-apache-php/releases/tag/1.10.3).

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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.10.3
7+
FROM jdeathe/centos-ssh-apache-php:1.10.4
88

99
# -----------------------------------------------------------------------------
1010
# FastCGI support
@@ -46,7 +46,7 @@ ENV APACHE_MPM="worker"
4646
# -----------------------------------------------------------------------------
4747
# Set image metadata
4848
# -----------------------------------------------------------------------------
49-
ARG RELEASE_VERSION="1.10.3"
49+
ARG RELEASE_VERSION="1.10.4"
5050
LABEL \
5151
maintainer="James Deathe <james.deathe@gmail.com>" \
5252
install="docker run \

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Apache PHP web server, loading only a minimal set of Apache modules by default.
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.10.3` or `1.10.3` for the [1.10.3](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.4` or `1.10.4` for the [1.10.4](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/tree/1.7.0) release tag.
1111

12-
- `centos-6`, `centos-6-1.10.3`, `1.10.3` [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/blob/centos-6/Dockerfile)
12+
- `centos-6`, `centos-6-1.10.4`, `1.10.4` [(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.10.3 \
90+
jdeathe/centos-ssh-apache-php-fcgi:1.10.4 \
9191
/usr/sbin/scmi install \
9292
--chroot=/media/root \
93-
--tag=1.10.3 \
93+
--tag=1.10.4 \
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.10.3 \
108+
jdeathe/centos-ssh-apache-php-fcgi:1.10.4 \
109109
/usr/sbin/scmi uninstall \
110110
--chroot=/media/root \
111-
--tag=1.10.3 \
111+
--tag=1.10.4 \
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.10.3 \
126+
jdeathe/centos-ssh-apache-php-fcgi:1.10.4 \
127127
/usr/sbin/scmi install \
128128
--chroot=/media/root \
129-
--tag=1.10.3 \
129+
--tag=1.10.4 \
130130
--name=apache-php.pool-1.1.1 \
131131
--manager=systemd \
132132
--register \
@@ -150,7 +150,7 @@ To see detailed information about the image run `scmi` with the `--info` option.
150150
$ eval "sudo -E $(
151151
docker inspect \
152152
-f "{{.ContainerConfig.Labels.install}}" \
153-
jdeathe/centos-ssh-apache-php-fcgi:1.10.3
153+
jdeathe/centos-ssh-apache-php-fcgi:1.10.4
154154
) --info"
155155
```
156156

@@ -160,7 +160,7 @@ To perform an installation using the docker name `apache-php.pool-1.2.1` simply
160160
$ eval "sudo -E $(
161161
docker inspect \
162162
-f "{{.ContainerConfig.Labels.install}}" \
163-
jdeathe/centos-ssh-apache-php-fcgi:1.10.3
163+
jdeathe/centos-ssh-apache-php-fcgi:1.10.4
164164
) --name=apache-php.pool-1.2.1"
165165
```
166166

@@ -170,7 +170,7 @@ To uninstall use the *same command* that was used to install but with the `unins
170170
$ eval "sudo -E $(
171171
docker inspect \
172172
-f "{{.ContainerConfig.Labels.uninstall}}" \
173-
jdeathe/centos-ssh-apache-php-fcgi:1.10.3
173+
jdeathe/centos-ssh-apache-php-fcgi:1.10.4
174174
) --name=apache-php.pool-1.2.1"
175175
```
176176

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

183183
```
184-
$ docker pull jdeathe/centos-ssh-apache-php-fcgi:1.10.3
184+
$ docker pull jdeathe/centos-ssh-apache-php-fcgi:1.10.4
185185
```
186186

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

189189
```
190190
$ sudo -E atomic install \
191191
-n apache-php.pool-1.3.1 \
192-
jdeathe/centos-ssh-apache-php-fcgi:1.10.3 \
192+
jdeathe/centos-ssh-apache-php-fcgi:1.10.4 \
193193
--info
194194
```
195195

@@ -198,14 +198,14 @@ To perform an installation using the docker name `apache-php.pool-1.3.1` simply
198198
```
199199
$ sudo -E atomic install \
200200
-n apache-php.pool-1.3.1 \
201-
jdeathe/centos-ssh-apache-php-fcgi:1.10.3
201+
jdeathe/centos-ssh-apache-php-fcgi:1.10.4
202202
```
203203

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

206206
```
207207
$ sudo -E atomic install \
208-
jdeathe/centos-ssh-apache-php-fcgi:1.10.3 \
208+
jdeathe/centos-ssh-apache-php-fcgi:1.10.4 \
209209
--name apache-php.pool-1.3.1
210210
```
211211

@@ -214,7 +214,7 @@ To uninstall use the *same command* that was used to install but with the `unins
214214
```
215215
$ sudo -E atomic uninstall \
216216
-n apache-php.pool-1.3.1 \
217-
jdeathe/centos-ssh-apache-php-fcgi:1.10.3
217+
jdeathe/centos-ssh-apache-php-fcgi:1.10.4
218218
```
219219

220220
#### Environment Variables
@@ -267,8 +267,8 @@ The Apache ErrorLog can be defined using `APACHE_ERROR_LOG_LOCATION` to set a fi
267267

268268
```
269269
...
270-
--env "APACHE_CUSTOM_LOG_LOCATION=/var/log/httpd/error_log" \
271-
--env "APACHE_CUSTOM_LOG_FORMAT=error" \
270+
--env "APACHE_ERROR_LOG_LOCATION=/var/log/httpd/error_log" \
271+
--env "APACHE_ERROR_LOG_FORMAT=error" \
272272
...
273273
```
274274

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

Lines changed: 1 addition & 1 deletion
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.10.3"
55+
Environment="DOCKER_IMAGE_TAG=1.10.4"
5656
Environment="DOCKER_PORT_MAP_TCP_80=8080"
5757
Environment="DOCKER_PORT_MAP_TCP_443=9443"
5858
Environment="DOCKER_PORT_MAP_TCP_8443=NULL"

test/shpec/operation_shpec.sh

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,7 @@ function test_custom_configuration ()
686686
local curl_session_name=""
687687
local header_x_service_operating_mode=""
688688
local header_x_service_uid=""
689+
local is_up=""
689690
local php_date_timezone=""
690691
local protocol=""
691692

@@ -2047,16 +2048,23 @@ function test_custom_configuration ()
20472048

20482049
# Healthcheck should fail unless running PHP-FPM without Apache.
20492050
it "Can disable httpd-bootstrap."
2051+
is_up="1"
2052+
20502053
docker ps \
2051-
--format "name=apache-php.pool-1.1.1" \
2052-
&> /dev/null \
2053-
&& docker top \
2054+
--quiet \
2055+
--filter "name=apache-php.pool-1.1.1" \
2056+
--filter "health=unhealthy" \
2057+
&> /dev/null
2058+
is_up="${?}"
2059+
2060+
docker top \
20542061
apache-php.pool-1.1.1 \
2062+
&> /dev/null \
20552063
| grep -qE '/usr/sbin/httpd(\.worker|\.event)? '
20562064

20572065
assert equal \
2058-
"${?}" \
2059-
"1"
2066+
"${is_up}:${?}" \
2067+
"0:1"
20602068
end
20612069

20622070
__terminate_container \
@@ -2073,17 +2081,22 @@ function test_custom_configuration ()
20732081
sleep ${STARTUP_TIME}
20742082

20752083
it "Can disable httpd-wrapper."
2084+
is_up="1"
2085+
20762086
docker ps \
2077-
--format "name=apache-php.pool-1.1.1" \
2078-
--format "health=healthy" \
2079-
&> /dev/null \
2080-
&& docker top \
2087+
--filter "name=apache-php.pool-1.1.1" \
2088+
--filter "health=healthy" \
2089+
&> /dev/null
2090+
is_up="${?}"
2091+
2092+
docker top \
20812093
apache-php.pool-1.1.1 \
2094+
&> /dev/null \
20822095
| grep -qE '/usr/sbin/httpd(\.worker|\.event)? '
20832096

20842097
assert equal \
2085-
"${?}" \
2086-
"1"
2098+
"${is_up}:${?}" \
2099+
"0:1"
20872100
end
20882101

20892102
__terminate_container \

0 commit comments

Comments
 (0)