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

Commit 029aefa

Browse files
authored
Merge pull request #135 from jdeathe/centos-6-develop
Release changes for 1.10.3
2 parents 6d57526 + 28b4c51 commit 029aefa

File tree

8 files changed

+142
-57
lines changed

8 files changed

+142
-57
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.3 - 2018-01-16
10+
11+
- Updates image source to [release 1.10.3](https://github.com/jdeathe/centos-ssh-apache-php/releases/tag/1.10.3).
12+
913
### 1.10.2 - 2017-12-27
1014

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

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.2
7+
FROM jdeathe/centos-ssh-apache-php:1.10.3
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.2"
49+
ARG RELEASE_VERSION="1.10.3"
5050
LABEL \
5151
maintainer="James Deathe <james.deathe@gmail.com>" \
5252
install="docker run \

README.md

Lines changed: 21 additions & 16 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.2` or `1.10.2` for the [1.10.2](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.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.
1111

12-
- `centos-6`, `centos-6-1.10.2`, `1.10.2` [(centos-6/Dockerfile)](https://github.com/jdeathe/centos-ssh-apache-php-fcgi/blob/centos-6/Dockerfile)
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)
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.2 \
90+
jdeathe/centos-ssh-apache-php-fcgi:1.10.3 \
9191
/usr/sbin/scmi install \
9292
--chroot=/media/root \
93-
--tag=1.10.2 \
93+
--tag=1.10.3 \
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.2 \
108+
jdeathe/centos-ssh-apache-php-fcgi:1.10.3 \
109109
/usr/sbin/scmi uninstall \
110110
--chroot=/media/root \
111-
--tag=1.10.2 \
111+
--tag=1.10.3 \
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.2 \
126+
jdeathe/centos-ssh-apache-php-fcgi:1.10.3 \
127127
/usr/sbin/scmi install \
128128
--chroot=/media/root \
129-
--tag=1.10.2 \
129+
--tag=1.10.3 \
130130
--name=apache-php.pool-1.1.1 \
131131
--manager=systemd \
132132
--register \
@@ -136,6 +136,8 @@ $ docker run \
136136

137137
##### SCMI Fleet Support
138138

139+
**_Deprecation Notice:_** The fleet project is no longer maintained. The fleet `--manager` option has been deprecated in `scmi`.
140+
139141
If your docker host has systemd, fleetd (and optionally etcd) installed then `scmi` provides a method to schedule the container to run on the cluster. This provides some additional features for managing a group of instances on a [fleet](https://github.com/coreos/fleet) cluster and has the option to use an etcd backed service registry. To use the fleet method of installation use the `-m` or `--manager` option of `scmi` and to include the optional etcd register companion unit use the `--register` option.
140142

141143
##### SCMI Image Information
@@ -148,7 +150,7 @@ To see detailed information about the image run `scmi` with the `--info` option.
148150
$ eval "sudo -E $(
149151
docker inspect \
150152
-f "{{.ContainerConfig.Labels.install}}" \
151-
jdeathe/centos-ssh-apache-php-fcgi:1.10.2
153+
jdeathe/centos-ssh-apache-php-fcgi:1.10.3
152154
) --info"
153155
```
154156

@@ -158,7 +160,7 @@ To perform an installation using the docker name `apache-php.pool-1.2.1` simply
158160
$ eval "sudo -E $(
159161
docker inspect \
160162
-f "{{.ContainerConfig.Labels.install}}" \
161-
jdeathe/centos-ssh-apache-php-fcgi:1.10.2
163+
jdeathe/centos-ssh-apache-php-fcgi:1.10.3
162164
) --name=apache-php.pool-1.2.1"
163165
```
164166

@@ -168,7 +170,7 @@ To uninstall use the *same command* that was used to install but with the `unins
168170
$ eval "sudo -E $(
169171
docker inspect \
170172
-f "{{.ContainerConfig.Labels.uninstall}}" \
171-
jdeathe/centos-ssh-apache-php-fcgi:1.10.2
173+
jdeathe/centos-ssh-apache-php-fcgi:1.10.3
172174
) --name=apache-php.pool-1.2.1"
173175
```
174176

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

181183
```
182-
$ docker pull jdeathe/centos-ssh-apache-php-fcgi:1.10.2
184+
$ docker pull jdeathe/centos-ssh-apache-php-fcgi:1.10.3
183185
```
184186

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

187189
```
188190
$ sudo -E atomic install \
189191
-n apache-php.pool-1.3.1 \
190-
jdeathe/centos-ssh-apache-php-fcgi:1.10.2 \
192+
jdeathe/centos-ssh-apache-php-fcgi:1.10.3 \
191193
--info
192194
```
193195

@@ -196,14 +198,14 @@ To perform an installation using the docker name `apache-php.pool-1.3.1` simply
196198
```
197199
$ sudo -E atomic install \
198200
-n apache-php.pool-1.3.1 \
199-
jdeathe/centos-ssh-apache-php-fcgi:1.10.2
201+
jdeathe/centos-ssh-apache-php-fcgi:1.10.3
200202
```
201203

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

204206
```
205207
$ sudo -E atomic install \
206-
jdeathe/centos-ssh-apache-php-fcgi:1.10.2 \
208+
jdeathe/centos-ssh-apache-php-fcgi:1.10.3 \
207209
--name apache-php.pool-1.3.1
208210
```
209211

@@ -212,7 +214,7 @@ To uninstall use the *same command* that was used to install but with the `unins
212214
```
213215
$ sudo -E atomic uninstall \
214216
-n apache-php.pool-1.3.1 \
215-
jdeathe/centos-ssh-apache-php-fcgi:1.10.2
217+
jdeathe/centos-ssh-apache-php-fcgi:1.10.3
216218
```
217219

218220
#### Environment Variables
@@ -436,8 +438,11 @@ To set the timezone for the UK and account for British Summer Time you would use
436438

437439
Using `PHP_OPTIONS_SESSION_SAVE_HANDLER` and `PHP_OPTIONS_SESSION_SAVE_PATH` together it's possible to configure PHP to use an alternative `session.save_handler` and `session.save_path`. For example if you have a Memcached server running on the host `memcached-server` on the default port `11211` the following configuration will allow session data to be stored in Memcached, allowing session data to be shared between multiple PHP containers.
438440

441+
Using `PHP_OPTIONS_SESSION_NAME` a session name can be defined - otherwise the default name "PHPSESSID" is used.
442+
439443
```
440444
...
445+
--env "PHP_OPTIONS_SESSION_NAME=app-session" \
441446
--env "PHP_OPTIONS_SESSION_SAVE_HANDLER=memcached" \
442447
--env "PHP_OPTIONS_SESSION_SAVE_PATH=memcached-server:11211" \
443448
...

default.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ define DOCKER_CONTAINER_PARAMETERS
2626
--env "APACHE_SSL_PROTOCOL=$(APACHE_SSL_PROTOCOL)" \
2727
--env "APACHE_SYSTEM_USER=$(APACHE_SYSTEM_USER)" \
2828
--env "PHP_OPTIONS_DATE_TIMEZONE=$(PHP_OPTIONS_DATE_TIMEZONE)" \
29+
--env "PHP_OPTIONS_SESSION_NAME=$(PHP_OPTIONS_SESSION_NAME)" \
2930
--env "PHP_OPTIONS_SESSION_SAVE_HANDLER=$(PHP_OPTIONS_SESSION_SAVE_HANDLER)" \
3031
--env "PHP_OPTIONS_SESSION_SAVE_PATH=$(PHP_OPTIONS_SESSION_SAVE_PATH)"
3132
endef

environment.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,6 @@ APACHE_SSL_CIPHER_SUITE ?= ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY
7272
APACHE_SSL_PROTOCOL ?= All -SSLv2 -SSLv3
7373
APACHE_SYSTEM_USER ?= app
7474
PHP_OPTIONS_DATE_TIMEZONE ?= UTC
75+
PHP_OPTIONS_SESSION_NAME ?= PHPSESSID
7576
PHP_OPTIONS_SESSION_SAVE_HANDLER ?= files
7677
PHP_OPTIONS_SESSION_SAVE_PATH ?= /var/lib/php/session

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

Lines changed: 3 additions & 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.2"
55+
Environment="DOCKER_IMAGE_TAG=1.10.3"
5656
Environment="DOCKER_PORT_MAP_TCP_80=8080"
5757
Environment="DOCKER_PORT_MAP_TCP_443=9443"
5858
Environment="DOCKER_PORT_MAP_TCP_8443=NULL"
@@ -79,6 +79,7 @@ Environment="APACHE_SSL_CIPHER_SUITE=ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHA
7979
Environment="APACHE_SSL_PROTOCOL=All -SSLv2 -SSLv3"
8080
Environment="APACHE_SYSTEM_USER=app"
8181
Environment="PHP_OPTIONS_DATE_TIMEZONE=UTC"
82+
Environment="PHP_OPTIONS_SESSION_NAME=PHPSESSID"
8283
Environment="PHP_OPTIONS_SESSION_SAVE_HANDLER=files"
8384
Environment="PHP_OPTIONS_SESSION_SAVE_PATH=/var/lib/php/session"
8485

@@ -133,6 +134,7 @@ ExecStart=/bin/bash -c \
133134
--env \"APACHE_SSL_PROTOCOL=${APACHE_SSL_PROTOCOL}\" \
134135
--env \"APACHE_SYSTEM_USER=${APACHE_SYSTEM_USER}\" \
135136
--env \"PHP_OPTIONS_DATE_TIMEZONE=${PHP_OPTIONS_DATE_TIMEZONE}\" \
137+
--env \"PHP_OPTIONS_SESSION_NAME=${PHP_OPTIONS_SESSION_NAME}\" \
136138
--env \"PHP_OPTIONS_SESSION_SAVE_HANDLER=${PHP_OPTIONS_SESSION_SAVE_HANDLER}\" \
137139
--env \"PHP_OPTIONS_SESSION_SAVE_PATH=${PHP_OPTIONS_SESSION_SAVE_PATH}\" \
138140
$(if [[ ${DOCKER_PORT_MAP_TCP_80} != NULL ]]; then \

src/opt/scmi/environment.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,6 @@ APACHE_SSL_CIPHER_SUITE="${APACHE_SSL_CIPHER_SUITE:-"ECDHE-ECDSA-CHACHA20-POLY13
7676
APACHE_SSL_PROTOCOL="${APACHE_SSL_PROTOCOL:-All -SSLv2 -SSLv3}"
7777
APACHE_SYSTEM_USER="${APACHE_SYSTEM_USER:-app}"
7878
PHP_OPTIONS_DATE_TIMEZONE="${PHP_OPTIONS_DATE_TIMEZONE:-UTC}"
79+
PHP_OPTIONS_SESSION_NAME="${PHP_OPTIONS_SESSION_NAME:-PHPSESSID}"
7980
PHP_OPTIONS_SESSION_SAVE_HANDLER="${PHP_OPTIONS_SESSION_SAVE_HANDLER:-files}"
8081
PHP_OPTIONS_SESSION_SAVE_PATH="${PHP_OPTIONS_SESSION_SAVE_PATH:-/var/lib/php/session}"

0 commit comments

Comments
 (0)