Skip to content

Commit

Permalink
Simple dockerfiles for Minishift testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lisenet committed Jan 5, 2020
1 parent 76b9ab7 commit 9d810a2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions DO280_files/examples/dockerfiles/my-httpd/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM centos:7

RUN yum -y --setopt=tsflags=nodocs install httpd php && \
yum clean all && \
rm -rf /run/httpd/* /tmp/httpd* && \
echo "Apache in a Docker container" > /var/www/html/index.html

EXPOSE 80

CMD ["/usr/sbin/apachectl", "-D", "FOREGROUND" ]
12 changes: 12 additions & 0 deletions DO280_files/examples/dockerfiles/my-wordpress-php7/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM centos:7

RUN yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm && \
yum -y install yum-utils && yum-config-manager --enable remi-php72 && \
yum -y --setopt=tsflags=nodocs install httpd php php-mysql php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl wget unzip && \
yum clean all && \
rm -rf /run/httpd/* /tmp/httpd* && \
cd /var/www/ && wget https://wordpress.org/latest.zip && unzip latest.zip && rm -rf html && mv wordpress html && chown -R apache html

EXPOSE 80

CMD ["/usr/sbin/apachectl", "-D", "FOREGROUND" ]

0 comments on commit 9d810a2

Please sign in to comment.