Skip to content

Commit 137b253

Browse files
committed
Do not re-define APP_ROOT, since it is already defined in s2i-code
And use usage and maintainer labels consistently
1 parent f081703 commit 137b253

8 files changed

+25
-26
lines changed

5.6/Dockerfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ LABEL summary="$SUMMARY" \
2727
name="centos/php-56-centos7" \
2828
com.redhat.component="rh-php56-docker" \
2929
version="5.6" \
30-
release="1" \
30+
usage="s2i build https://github.com/sclorg/s2i-php-container.git --context-dir=/5.6/test/test-app centos/php-56-centos7 sample-server" \
3131
maintainer="SoftwareCollections.org <[email protected]>"
3232

3333
# Install Apache httpd and PHP
@@ -41,12 +41,11 @@ RUN yum install -y centos-release-scl && \
4141
yum clean all -y
4242

4343
ENV PHP_CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/php/ \
44-
APP_ROOT=/opt/app-root \
45-
APP_DATA=/opt/app-root/src \
44+
APP_DATA=${APP_ROOT}/src \
4645
PHP_DEFAULT_INCLUDE_PATH=/opt/rh/rh-php56/root/usr/share/pear \
4746
PHP_SYSCONF_PATH=/etc/opt/rh/rh-php56 \
4847
PHP_HTTPD_CONF_FILE=rh-php56-php.conf \
49-
HTTPD_CONFIGURATION_PATH=/opt/app-root/etc/conf.d \
48+
HTTPD_CONFIGURATION_PATH=${APP_ROOT}/etc/conf.d \
5049
HTTPD_MAIN_CONF_PATH=/etc/httpd/conf \
5150
HTTPD_MAIN_CONF_D_PATH=/etc/httpd/conf.d \
5251
HTTPD_VAR_RUN=/var/run/httpd \

5.6/Dockerfile.rhel7

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ LABEL summary="$SUMMARY" \
2727
name="rhscl/php-56-rhel7" \
2828
com.redhat.component="rh-php56-docker" \
2929
version="5.6" \
30-
release="3"
30+
usage="s2i build https://github.com/sclorg/s2i-php-container.git --context-dir=/5.6/test/test-app rhscl/php-56-rhel7 sample-server" \
31+
maintainer="SoftwareCollections.org <[email protected]>"
3132

3233
# Install Apache httpd and PHP
3334
RUN yum install -y yum-utils && \
@@ -44,12 +45,11 @@ RUN yum install -y yum-utils && \
4445
yum clean all -y
4546

4647
ENV PHP_CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/php/ \
47-
APP_ROOT=/opt/app-root \
48-
APP_DATA=/opt/app-root/src \
48+
APP_DATA=${APP_ROOT}/src \
4949
PHP_DEFAULT_INCLUDE_PATH=/opt/rh/rh-php56/root/usr/share/pear \
5050
PHP_SYSCONF_PATH=/etc/opt/rh/rh-php56 \
5151
PHP_HTTPD_CONF_FILE=rh-php56-php.conf \
52-
HTTPD_CONFIGURATION_PATH=/opt/app-root/etc/conf.d \
52+
HTTPD_CONFIGURATION_PATH=${APP_ROOT}/etc/conf.d \
5353
HTTPD_MAIN_CONF_PATH=/etc/httpd/conf \
5454
HTTPD_MAIN_CONF_D_PATH=/etc/httpd/conf.d \
5555
HTTPD_VAR_RUN=/var/run/httpd \

7.0/Dockerfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ LABEL summary="$SUMMARY" \
2727
name="centos/php-70-centos7" \
2828
com.redhat.component="rh-php70-docker" \
2929
version="7.0" \
30-
release="1" \
30+
usage="s2i build https://github.com/sclorg/s2i-php-container.git --context-dir=/7.0/test/test-app centos/php-70-centos7 sample-server" \
3131
maintainer="SoftwareCollections.org <[email protected]>"
3232

3333
# Install Apache httpd and PHP
@@ -42,12 +42,11 @@ RUN yum install -y centos-release-scl && \
4242
yum clean all -y
4343

4444
ENV PHP_CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/php/ \
45-
APP_ROOT=/opt/app-root \
46-
APP_DATA=/opt/app-root/src \
45+
APP_DATA=${APP_ROOT}/src \
4746
PHP_DEFAULT_INCLUDE_PATH=/opt/rh/rh-php70/root/usr/share/pear \
4847
PHP_SYSCONF_PATH=/etc/opt/rh/rh-php70 \
4948
PHP_HTTPD_CONF_FILE=rh-php70-php.conf \
50-
HTTPD_CONFIGURATION_PATH=/opt/app-root/etc/conf.d \
49+
HTTPD_CONFIGURATION_PATH=${APP_ROOT}/etc/conf.d \
5150
HTTPD_MAIN_CONF_PATH=/etc/httpd/conf \
5251
HTTPD_MAIN_CONF_D_PATH=/etc/httpd/conf.d \
5352
HTTPD_VAR_RUN=/var/run/httpd \

7.0/Dockerfile.rhel7

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ LABEL summary="$SUMMARY" \
2727
name="rhscl/php-70-rhel7" \
2828
com.redhat.component="rh-php70-docker" \
2929
version="7.0" \
30-
release="5.0"
30+
usage="s2i build https://github.com/sclorg/s2i-php-container.git --context-dir=/7.0/test/test-app rhscl/php-70-rhel7 sample-server" \
31+
maintainer="SoftwareCollections.org <[email protected]>"
3132

3233
# Install Apache httpd and PHP
3334
RUN yum install -y yum-utils && \
@@ -44,12 +45,11 @@ RUN yum install -y yum-utils && \
4445
yum clean all -y
4546

4647
ENV PHP_CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/php/ \
47-
APP_ROOT=/opt/app-root \
48-
APP_DATA=/opt/app-root/src \
48+
APP_DATA=${APP_ROOT}/src \
4949
PHP_DEFAULT_INCLUDE_PATH=/opt/rh/rh-php70/root/usr/share/pear \
5050
PHP_SYSCONF_PATH=/etc/opt/rh/rh-php70 \
5151
PHP_HTTPD_CONF_FILE=rh-php70-php.conf \
52-
HTTPD_CONFIGURATION_PATH=/opt/app-root/etc/conf.d \
52+
HTTPD_CONFIGURATION_PATH=${APP_ROOT}/etc/conf.d \
5353
HTTPD_MAIN_CONF_PATH=/etc/httpd/conf \
5454
HTTPD_MAIN_CONF_D_PATH=/etc/httpd/conf.d \
5555
HTTPD_VAR_RUN=/var/run/httpd \

7.1/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ LABEL summary="$SUMMARY" \
2727
name="centos/php-71-centos7" \
2828
com.redhat.component="rh-php71-docker" \
2929
version="1" \
30+
usage="s2i build https://github.com/sclorg/s2i-php-container.git --context-dir=/7.1/test/test-app centos/php-71-centos7 sample-server" \
3031
maintainer="SoftwareCollections.org <[email protected]>"
3132

3233
# Install Apache httpd and PHP
@@ -41,12 +42,11 @@ RUN yum install -y centos-release-scl && \
4142
yum clean all -y
4243

4344
ENV PHP_CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/php/ \
44-
APP_ROOT=/opt/app-root \
45-
APP_DATA=/opt/app-root/src \
45+
APP_DATA=${APP_ROOT}/src \
4646
PHP_DEFAULT_INCLUDE_PATH=/opt/rh/rh-php71/root/usr/share/pear \
4747
PHP_SYSCONF_PATH=/etc/opt/rh/rh-php71 \
4848
PHP_HTTPD_CONF_FILE=rh-php71-php.conf \
49-
HTTPD_CONFIGURATION_PATH=/opt/app-root/etc/conf.d \
49+
HTTPD_CONFIGURATION_PATH=${APP_ROOT}/etc/conf.d \
5050
HTTPD_MAIN_CONF_PATH=/etc/httpd/conf \
5151
HTTPD_MAIN_CONF_D_PATH=/etc/httpd/conf.d \
5252
HTTPD_VAR_RUN=/var/run/httpd \

7.1/Dockerfile.fedora

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ LABEL summary="$SUMMARY" \
3333
com.redhat.component="$NAME" \
3434
version="$VERSION" \
3535
release="$RELEASE" \
36+
usage="s2i build https://github.com/sclorg/s2i-php-container.git --context-dir=/7.1/test/test-app $FGC/$NAME sample-server" \
3637
maintainer="SoftwareCollections.org <[email protected]>"
3738

3839
# Install Apache httpd and PHP
@@ -45,12 +46,11 @@ RUN INSTALL_PKGS="php php-mysqlnd php-bcmath \
4546
yum clean all -y
4647

4748
ENV PHP_CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/php/ \
48-
APP_ROOT=/opt/app-root \
49-
APP_DATA=/opt/app-root/src \
49+
APP_DATA=${APP_ROOT}/src \
5050
PHP_DEFAULT_INCLUDE_PATH=/usr/share/pear \
5151
PHP_SYSCONF_PATH=/etc/ \
5252
PHP_HTTPD_CONF_FILE=php.conf \
53-
HTTPD_CONFIGURATION_PATH=/opt/app-root/etc/conf.d \
53+
HTTPD_CONFIGURATION_PATH=${APP_ROOT}/etc/conf.d \
5454
HTTPD_MAIN_CONF_PATH=/etc/httpd/conf \
5555
HTTPD_MAIN_CONF_D_PATH=/etc/httpd/conf.d \
5656
HTTPD_VAR_RUN=/var/run/httpd \

7.1/Dockerfile.rhel7

+4-3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ LABEL summary="$SUMMARY" \
2727
name="rhscl/php-71-rhel7" \
2828
com.redhat.component="rh-php71-docker" \
2929
version="1"
30+
usage="s2i build https://github.com/sclorg/s2i-php-container.git --context-dir=/7.1/test/test-app rhscl/php-71-rhel7 sample-server" \
31+
maintainer="SoftwareCollections.org <[email protected]>"
3032

3133
# Install Apache httpd and PHP
3234
RUN yum install -y yum-utils && \
@@ -43,12 +45,11 @@ RUN yum install -y yum-utils && \
4345
yum clean all -y
4446

4547
ENV PHP_CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/php/ \
46-
APP_ROOT=/opt/app-root \
47-
APP_DATA=/opt/app-root/src \
48+
APP_DATA=${APP_ROOT}/src \
4849
PHP_DEFAULT_INCLUDE_PATH=/opt/rh/rh-php71/root/usr/share/pear \
4950
PHP_SYSCONF_PATH=/etc/opt/rh/rh-php71 \
5051
PHP_HTTPD_CONF_FILE=rh-php71-php.conf \
51-
HTTPD_CONFIGURATION_PATH=/opt/app-root/etc/conf.d \
52+
HTTPD_CONFIGURATION_PATH=${APP_ROOT}/etc/conf.d \
5253
HTTPD_MAIN_CONF_PATH=/etc/httpd/conf \
5354
HTTPD_MAIN_CONF_D_PATH=/etc/httpd/conf.d \
5455
HTTPD_VAR_RUN=/var/run/httpd \

common

0 commit comments

Comments
 (0)