-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simple dockerfiles for Minishift testing
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
12
DO280_files/examples/dockerfiles/my-wordpress-php7/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |