1
- FROM jdeathe/centos-ssh-apache-php:1.12 .0
1
+ FROM jdeathe/centos-ssh-apache-php:1.13 .0
2
2
3
- ARG RELEASE_VERSION="1.12 .0"
3
+ ARG RELEASE_VERSION="1.13 .0"
4
4
5
5
# ------------------------------------------------------------------------------
6
- # - Base install of required packages
6
+ # Base install of required packages
7
7
# ------------------------------------------------------------------------------
8
- RUN rpm --rebuilddb \
9
- && yum -y erase \
8
+ RUN yum -y erase \
10
9
php-5.3.3-49.el6 \
11
10
&& yum -y install \
12
11
--setopt=tsflags=nodocs \
@@ -26,35 +25,33 @@ ADD src /
26
25
27
26
# ------------------------------------------------------------------------------
28
27
# Provisioning
29
- # - Relocate default fcgid configuration to ensure correct loading order
28
+ # - Disable Apache default fcgid configuration; replaced with 00-fcgid.conf
30
29
# - Replace placeholders with values in systemd service unit template
31
30
# - Set permissions
32
31
# ------------------------------------------------------------------------------
33
- RUN cat \
32
+ RUN truncate -s 0 \
34
33
/etc/httpd/conf.d/fcgid.conf \
35
- > /etc/httpd/conf.d/00-fcgid.conf \
36
- && truncate -s 0 \
34
+ && chmod 444 \
37
35
/etc/httpd/conf.d/fcgid.conf \
38
36
&& sed -i \
39
37
-e "s~{{RELEASE_VERSION}}~${RELEASE_VERSION}~g" \
40
- /etc/systemd/system/centos-ssh-apache-php-fcgi@.service \
41
- && chmod 700 \
42
- /usr/{bin/healthcheck,sbin/httpd-{bootstrap,wrapper}}
38
+ /etc/systemd/system/centos-ssh-apache-php-fcgi@.service
43
39
44
40
# ------------------------------------------------------------------------------
45
41
# Package installation
46
42
# ------------------------------------------------------------------------------
47
43
RUN sed -i \
48
44
-e 's~^description =.*$~description = "This CentOS / Apache / PHP-CGI (FastCGI) service is running in a container."~' \
49
45
${PACKAGE_PATH}/etc/views/index.ini \
50
- && sed -r -i \
51
- -e 's~^(source /etc/httpd-bootstrap \. conf)~# \1 ~' \
52
- ${PACKAGE_PATH}/bin/php-wrapper
46
+ && rm -f \
47
+ ${PACKAGE_PATH}/bin/php-wrapper \
48
+ ${PACKAGE_PATH}/etc/httpd/conf.d/50-fcgid.conf
53
49
54
50
# ------------------------------------------------------------------------------
55
51
# Set default environment variables used to configure the service container
56
52
# ------------------------------------------------------------------------------
57
- ENV APACHE_MPM="worker"
53
+ ENV \
54
+ APACHE_MPM="worker"
58
55
59
56
# ------------------------------------------------------------------------------
60
57
# Set image metadata
@@ -85,6 +82,6 @@ jdeathe/centos-ssh-apache-php-fcgi:${RELEASE_VERSION} \
85
82
org.deathe.license="MIT" \
86
83
org.deathe.vendor="jdeathe" \
87
84
org.deathe.url="https://github.com/jdeathe/centos-ssh-apache-php-fcgi" \
88
- 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."
85
+ org.deathe.description="Apache 2.2, PHP-CGI 5.3 (FastCGI), PHP memcached 1.0, PHP redis 2.2, PHP APC 3.1 - CentOS-6 6.10 x86_64 ."
89
86
90
87
CMD ["/usr/bin/supervisord" , "--configuration=/etc/supervisord.conf" ]
0 commit comments