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

Commit f20a863

Browse files
authored
Merge pull request #93 from jdeathe/centos-6-develop
Release changes for 1.6.0
2 parents c028dbd + b73aee0 commit f20a863

File tree

7 files changed

+15
-68
lines changed

7 files changed

+15
-68
lines changed

Dockerfile

Lines changed: 6 additions & 15 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:centos-6-1.5.0
7+
FROM jdeathe/centos-ssh-apache-php:centos-6-1.6.1
88

99
MAINTAINER James Deathe <james.deathe@gmail.com>
1010

@@ -13,25 +13,16 @@ MAINTAINER James Deathe <james.deathe@gmail.com>
1313
# -----------------------------------------------------------------------------
1414
RUN rpm --rebuilddb \
1515
&& yum -y erase \
16-
php-5.3.3-48.el6_8 \
16+
php-5.3.3-48.el6_8 \
1717
&& yum --setopt=tsflags=nodocs -y install \
18-
fcgi-2.4.0-12.el6 \
19-
mod_fcgid-2.3.9-1.el6 \
18+
fcgi-2.4.0-12.el6 \
19+
mod_fcgid-2.3.9-1.el6 \
2020
&& yum versionlock add \
21-
fcgi \
22-
mod_fcgid \
21+
fcgi \
22+
mod_fcgid \
2323
&& rm -rf /var/cache/yum/* \
2424
&& yum clean all
2525

26-
# -----------------------------------------------------------------------------
27-
# Copy files into place
28-
# -----------------------------------------------------------------------------
29-
ADD etc/services-config/httpd/conf.d/fcgid.conf \
30-
/etc/services-config/httpd/conf.d/
31-
RUN ln -sf \
32-
/etc/services-config/httpd/conf.d/fcgid.conf \
33-
/etc/httpd/conf.d/fcgid.conf
34-
3526
# -----------------------------------------------------------------------------
3627
# Set default environment variables used to configure the service container
3728
# -----------------------------------------------------------------------------

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If enabling and configuring SSH access, it is by public key authentication and,
1919

2020
### SSH Alternatives
2121

22-
SSH is not required in order to access a terminal for the running container. The simplest method is to use the docker exec command to run bash (or sh) as follows:
22+
SSH is not required in order to access a terminal for the running container. The simplest method is to use the docker exec command to run bash (or sh) as follows:
2323

2424
```
2525
$ docker exec -it <docker-name-or-id> bash
@@ -328,6 +328,7 @@ $ docker run -d \
328328
--env "APACHE_SERVER_NAME=app-1.local" \
329329
--env "APACHE_MOD_SSL_ENABLED=true" \
330330
--env "PHP_OPTIONS_DATE_TIMEZONE=UTC" \
331+
--env "SERVICE_UID=app-1.1.1" \
331332
-v volume-data.apache-php.app-1.1.1:/var/www \
332333
jdeathe/centos-ssh-apache-php-fcgi:latest
333334
```
@@ -377,11 +378,11 @@ To set the timezone for the UK and account for British Summer Time you would use
377378

378379
##### SERVICE_UID
379380

380-
The ```SERVICE_UID``` environmental variable is used to set a response header named ```X-Service-Uid``` that lets you identify the container that is serving the content. This is useful when you have many containers running on a single host using different ports or if you are running a cluster and need to identify which host the content is served from. The default value is set to the Service Unit's App Group Name, Local ID and Instance ID.
381+
The ```SERVICE_UID``` environmental variable is used to set a response header named ```X-Service-Uid``` that lets you identify the container that is serving the content. This is useful when you have many containers running on a single host using different ports or if you are running a cluster and need to identify which host the content is served from. If the value contains the placeholder `{{HOSTNAME}}` it will be replaced with the system `hostname` value; by default this is the container id but the hostname can be modified using the `--hostname` docker create|run parameter.
381382

382383
```
383384
...
384-
--env "SERVICE_UID=app-1.1.1" \
385+
--env "SERVICE_UID={{HOSTNAME}}" \
385386
...
386387
```
387388

apache-php.app-1.1.1@8080.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RestartSec=30
2929
TimeoutStartSec=1200
3030
Environment="DOCKER_IMAGE_PACKAGE_PATH=/var/services-packages"
3131
Environment="DOCKER_IMAGE_NAME=jdeathe/centos-ssh-apache-php-fcgi"
32-
Environment="DOCKER_IMAGE_TAG=centos-6-1.5.0"
32+
Environment="DOCKER_IMAGE_TAG=centos-6-1.6.0"
3333
Environment="SERVICE_UNIT_NAME=apache-php"
3434
Environment="SERVICE_UNIT_APP_GROUP=app-1"
3535
Environment="SERVICE_UNIT_SHARED_GROUP=pool-1"

apache-php.app-1@.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ TimeoutStartSec=1200
5151
Environment="DOCKER_USER=jdeathe"
5252
Environment="DOCKER_IMAGE_PACKAGE_PATH=/var/services-packages"
5353
Environment="DOCKER_IMAGE_NAME=centos-ssh-apache-php-fcgi"
54-
Environment="DOCKER_IMAGE_TAG=centos-6-1.5.0"
54+
Environment="DOCKER_IMAGE_TAG=centos-6-1.6.0"
5555
Environment="DOCKER_PORT_MAP_TCP_80=8080"
5656
Environment="DOCKER_PORT_MAP_TCP_443=9443"
5757
Environment="DOCKER_PORT_MAP_TCP_8443=8580"
@@ -75,7 +75,7 @@ Environment="APACHE_SERVER_ALIAS=app-1"
7575
Environment="APACHE_SERVER_HOME=/var/www"
7676
Environment="APACHE_SERVER_NAME=app-1.local"
7777
Environment="APACHE_SYSTEM_USER=app"
78-
Environment="HTTPD=/usr/sbin/httpd"
78+
Environment="HTTPD=/usr/sbin/httpd.worker"
7979
Environment="PHP_OPTIONS_DATE_TIMEZONE=UTC"
8080
Environment="SERVICE_UID=app-1.%i"
8181

environment.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Constants
33
# -----------------------------------------------------------------------------
44
DOCKER_USER := jdeathe
5-
DOCKER_IMAGE_NAME := centos-ssh-apache-php
5+
DOCKER_IMAGE_NAME := centos-ssh-apache-php-fcgi
66

77
# Tag validation patterns
88
DOCKER_IMAGE_TAG_PATTERN := ^(latest|(centos-[6-7])|(centos-(6-1|7-2).[0-9]+.[0-9]+))$
@@ -60,6 +60,6 @@ APACHE_RUN_USER ?= app-www
6060
APACHE_SERVER_ALIAS ?= app-1
6161
APACHE_SERVER_NAME ?= app-1.local
6262
APACHE_SYSTEM_USER ?= app
63-
HTTPD ?= /usr/sbin/httpd
63+
HTTPD ?= /usr/sbin/httpd.worker
6464
PHP_OPTIONS_DATE_TIMEZONE ?= UTC
6565
SERVICE_UID ?= app-1.1.1

etc/services-config/httpd/conf.d/fcgid.conf

Lines changed: 0 additions & 31 deletions
This file was deleted.

etc/services-config/httpd/conf.d/fcgid.conf.default

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)