1- # =============================================================================
2- # jdeathe/centos-ssh-apache-php-fcgi
3- #
4- # CentOS-6, Apache 2.2, PHP 5.3, PHP Memcached 1.0, PHP APC 3.1.
5- #
6- # =============================================================================
7- FROM jdeathe/centos-ssh-apache-php:1.11.1
1+ FROM jdeathe/centos-ssh-apache-php:1.12.0
82
9- # -----------------------------------------------------------------------------
10- # FastCGI support
11- # -----------------------------------------------------------------------------
3+ ARG RELEASE_VERSION="1.11.1"
4+
5+ # ------------------------------------------------------------------------------
6+ # - Base install of required packages
7+ # ------------------------------------------------------------------------------
128RUN rpm --rebuilddb \
139 && yum -y erase \
1410 php-5.3.3-49.el6 \
@@ -23,38 +19,43 @@ RUN rpm --rebuilddb \
2319 && rm -rf /var/cache/yum/* \
2420 && yum clean all
2521
26- # -----------------------------------------------------------------------------
22+ # ------------------------------------------------------------------------------
2723# Copy files into place
28- # -----------------------------------------------------------------------------
29- ADD src/opt/scmi \
30- /opt/scmi/
31- ADD src/etc/systemd/system \
32- /etc/systemd/system/
24+ # ------------------------------------------------------------------------------
25+ ADD src /
3326
34- # -----------------------------------------------------------------------------
27+ # ------------------------------------------------------------------------------
28+ # Provisioning
29+ # - Replace placeholders with values in systemd service unit template
30+ # - Set permissions
31+ # ------------------------------------------------------------------------------
32+ RUN sed -i \
33+ -e "s~{{RELEASE_VERSION}}~${RELEASE_VERSION}~g" \
34+ /etc/systemd/system/centos-ssh-apache-php-fcgi@.service \
35+ && chmod 700 \
36+ /usr/{bin/healthcheck,sbin/httpd-{bootstrap,wrapper}}
37+
38+ # ------------------------------------------------------------------------------
3539# Package installation
36- # -----------------------------------------------------------------------------
40+ # ------------------------------------------------------------------------------
3741RUN sed -i \
3842 -e 's~^description =.*$~description = "This CentOS / Apache / PHP-CGI (FastCGI) service is running in a container."~' \
3943 ${PACKAGE_PATH}/etc/views/index.ini
4044
41- # -----------------------------------------------------------------------------
45+ # ------------------------------------------------------------------------------
4246# Set default environment variables used to configure the service container
43- # -----------------------------------------------------------------------------
47+ # ------------------------------------------------------------------------------
4448ENV APACHE_MPM="worker"
4549
46- # -----------------------------------------------------------------------------
50+ # ------------------------------------------------------------------------------
4751# Set image metadata
48- # -----------------------------------------------------------------------------
49- ARG RELEASE_VERSION="1.11.1"
52+ # ------------------------------------------------------------------------------
5053LABEL \
5154 maintainer="James Deathe <james.deathe@gmail.com>" \
5255 install="docker run \
5356--rm \
5457--privileged \
5558--volume /:/media/root \
56- --env BASH_ENV="" \
57- --env ENV="" \
5859jdeathe/centos-ssh-apache-php-fcgi:${RELEASE_VERSION} \
5960/usr/sbin/scmi install \
6061--chroot=/media/root \
@@ -64,8 +65,6 @@ jdeathe/centos-ssh-apache-php-fcgi:${RELEASE_VERSION} \
6465--rm \
6566--privileged \
6667--volume /:/media/root \
67- --env BASH_ENV="" \
68- --env ENV="" \
6968jdeathe/centos-ssh-apache-php-fcgi:${RELEASE_VERSION} \
7069/usr/sbin/scmi uninstall \
7170--chroot=/media/root \
@@ -79,4 +78,4 @@ jdeathe/centos-ssh-apache-php-fcgi:${RELEASE_VERSION} \
7978 org.deathe.url="https://github.com/jdeathe/centos-ssh-apache-php-fcgi" \
8079 org.deathe.description="CentOS-6 6.10 x86_64 - Apache 2.2, PHP-CGI 5.3 (FastCGI), PHP memcached 1.0, PHP APC 3.1."
8180
82- CMD ["/usr/sbin/httpd-startup" , "/usr/ bin/supervisord" , "--configuration=/etc/supervisord.conf" ]
81+ CMD ["/usr/bin/supervisord" , "--configuration=/etc/supervisord.conf" ]
0 commit comments