Skip to content
Permalink
84ac962391
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Jim Van Fleet First tests passing
Latest commit 410de79 Jul 29, 2016 History
0 contributors

Users who have contributed to this file

55 lines (46 sloc) 1.08 KB
FROM bigfleet/centos7base
# Define args and set a default value
ARG maintainer=tier
ARG imagename=lamp
ARG tagname=20160727-dev
ARG version=1.0
MAINTAINER $maintainer
LABEL Vendor="Internet2"
LABEL ImageType="COmanage"
LABEL ImageName=$imagename
LABEL TagName=$tagname
LABEL ImageOS=centos7
LABEL Version=$version
LABEL Build docker build --rm --tag $registry/$maintainer/$imagename:$tagname .
# Install deps.
RUN yum -y install \
httpd \
mysql-devel \
mysql-libs \
mod_ssl \
php \
php-openssl \
php-cli \
php-ldap \
php-mbstring \
php-mcrypt \
php-mysql \
php-pear-MDB2-Driver-mysqli \
php-pecl-memcached \
php-xml \
&& yum clean all
#
# UTC Timezone & Networking
#
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime && \
echo "NETWORKING=yes" > /etc/sysconfig/network
#
# Global PHP configuration changes
#
RUN sed -i \
-e 's~^;date.timezone =$~date.timezone = Europe/Rome~g' \
-e 's~^;user_ini.filename =$~user_ini.filename =~g' \
/etc/php.ini
RUN echo '<?php phpinfo(); ?>' > /var/www/html/index.php
# Port
EXPOSE 80 443