티스토리 뷰
[Dockerfile] rhscl-dockerfiles/centos7.rh-php56/Dockerfile.rhel7
오라공천 2017. 1. 23. 23:31FROM openshift/base-rhel7
# This image provides an Apache+PHP environment for running PHP
# applications.
EXPOSE 8080
ENV PHP_VERSION=5.6 \
PATH=$PATH:/opt/rh/rh-php56/root/usr/bin
LABEL io.k8s.description="Platform for building and running PHP 5.6 applications" \
io.k8s.display-name="Apache 2.4 with PHP 5.6" \
io.openshift.expose-services="8080:http" \
io.openshift.tags="builder,php,php56,rh-php56"
# Labels consumed by Red Hat build service
LABEL Name="rhscl/php-56-rhel7" \
BZComponent="rh-php56-docker" \
Version="5.6" \
Release="3" \
Architecture="x86_64"
# Install Apache httpd and PHP
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms && \
yum-config-manager --enable rhel-7-server-optional-rpms && \
yum install -y --setopt=tsflags=nodocs httpd24 \
rh-php56 rh-php56-php rh-php56-php-mysqlnd rh-php56-php-pgsql rh-php56-php-bcmath \
rh-php56-php-gd rh-php56-php-intl rh-php56-php-ldap rh-php56-php-mbstring rh-php56-php-pdo \
rh-php56-php-pecl-memcache rh-php56-php-process rh-php56-php-soap rh-php56-php-opcache rh-php56-php-xml \
rh-php56-php-pecl-xdebug && \
yum clean all -y
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
COPY ./s2i/bin/ $STI_SCRIPTS_PATH
# Each language image can have 'contrib' a directory with extra files needed to
# run and build the applications.
COPY ./contrib/ /opt/app-root
# In order to drop the root user, we have to make some directories world
# writeable as OpenShift default security model is to run the container under
# random UID.
RUN sed -i -f /opt/app-root/etc/httpdconf.sed /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf && \
sed -i '/php_value session.save_path/d' /opt/rh/httpd24/root/etc/httpd/conf.d/rh-php56-php.conf && \
head -n151 /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf | tail -n1 | grep "AllowOverride All" || exit && \
mkdir /tmp/sessions && \
chmod -R a+rwx /etc/opt/rh/rh-php56 && \
chmod -R a+rwx /opt/rh/httpd24/root/var/run/httpd && \
chmod -R a+rwx /tmp/sessions && \
chown -R 1001:0 /opt/app-root /tmp/sessions
USER 1001
# Set the default CMD to print the usage of the language image
CMD $STI_SCRIPTS_PATH/usage
'RedHat OpenShift > 트러블슈팅' 카테고리의 다른 글
[구성]DC node-selector (0) | 2017.02.06 |
---|---|
[권한] 프로젝트 생성자가 STI 빌드시 integrated docker registry push 오류 날 때 (1) | 2017.01.31 |
[stibuild] How to create STI Builder Image (0) | 2017.01.23 |
[nodeselector] project default node selector (0) | 2017.01.23 |
[에러] remote error: bad certificate (0) | 2017.01.13 |
- Total
- Today
- Yesterday
- 퍼플라떼
- 신촌
- xf14mm
- Classic Chrome
- velvia
- 캠핑
- 23mm
- 필름시뮬레이션
- XF23mm
- 논뷰
- m42 55mm
- xt3 #MMCA #국립현대미술관
- SAVOR
- 브런치
- XT3
- 매거진스탠딩
- 전붙이기
- 연대앞
- 보문호수
- m42
- m42 135mm
- 황용식
- 손주등장
- 수지
- 예전사진
- 야경
- XF14
- mf
- 55mm
- XF23
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |