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

Commit c457455

Browse files
authored
Merge pull request #137 from jdeathe/issue/136
CLOSES #136: Updates upstream source to 1.10.4.
2 parents 28b4c51 + 9b2824b commit c457455

File tree

4 files changed

+31
-14
lines changed

4 files changed

+31
-14
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 - Unreleased
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: 1 addition & 1 deletion
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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

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)