diff options
author | startxfr <clarue@startx.fr> | 2014-11-20 03:17:46 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2014-11-20 03:17:46 +0100 |
commit | a699d0d06feeb1859efea16dd6b3df17901a1bc5 (patch) | |
tree | 3a2646acb64a4a9d2440549b2a895648b9289466 /Services/apache | |
parent | 8829f895c890685cc25fe3022299b4275808dc06 (diff) | |
download | phpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.tar.gz phpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.tar.bz2 phpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.tar.xz phpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.zip |
modif des services et ajout de memcache, apache et nodejs
Diffstat (limited to 'Services/apache')
-rw-r--r-- | Services/apache/Dockerfile | 16 | ||||
-rw-r--r-- | Services/apache/README.md | 34 | ||||
-rw-r--r-- | Services/apache/apache_run.sh | 3 | ||||
-rw-r--r-- | Services/apache/welcome.html | 11 |
4 files changed, 64 insertions, 0 deletions
diff --git a/Services/apache/Dockerfile b/Services/apache/Dockerfile new file mode 100644 index 0000000..c3385d4 --- /dev/null +++ b/Services/apache/Dockerfile @@ -0,0 +1,16 @@ +FROM startx/fedora +MAINTAINER Chistophe LARUE <dev@startx.fr> + +COPY apache_run.sh /bin/ +RUN yum -y install httpd \ + && yum clean all \ + && mkdir -p /var/www/html \ + && mkdir -p /var/log/httpd \ + && chmod ug+rx /bin/apache_* +COPY welcome.html /var/www/html/index.html + +EXPOSE 80 +EXPOSE 443 + +CMD ["/bin/apache_run.sh"] +ONBUILD CMD ["/bin/apache_run.sh"]
\ No newline at end of file diff --git a/Services/apache/README.md b/Services/apache/README.md new file mode 100644 index 0000000..f0b0326 --- /dev/null +++ b/Services/apache/README.md @@ -0,0 +1,34 @@ +# STARTX Services docker-images : Apache-PHP + +## Running from docker registry + + # docker run -d -p 8080:80 --name="test-www" -e VIRTUAL_HOST=www.project.startx.fr startx/sv-php + +## Running from local Dockerfile + +### Building docker image +Copy the sources to your docker host + + # mkdir startx-docker-images; + # git clone https://github.com/startxfr/docker-images.git startx-docker-images/ + # cd startx-docker-images/Services/php/ + +and build the container + + # docker build --rm -t <username>/www . + +### Running local image + + # docker run -d -p 8080:80 --name="test-www" -e VIRTUAL_HOST=www.project.startx.fr <username>/www + +## Accessing server + + # firefox http://localhost:8080 + +## Related Resources + +* [Sources files](https://github.com/startxfr/docker-images/tree/master/Services/php) +* [Github STARTX profile](https://github.com/startxfr/docker-images) +* [Docker registry for this container](https://registry.hub.docker.com/u/startx/sv-php/) +* [tutum php](https://registry.hub.docker.com/u/tutum/apache-php) + diff --git a/Services/apache/apache_run.sh b/Services/apache/apache_run.sh new file mode 100644 index 0000000..0f876ec --- /dev/null +++ b/Services/apache/apache_run.sh @@ -0,0 +1,3 @@ +#!/bin/bash +rm -rf /run/httpd/* +exec /usr/sbin/apachectl -D FOREGROUND
\ No newline at end of file diff --git a/Services/apache/welcome.html b/Services/apache/welcome.html new file mode 100644 index 0000000..7009644 --- /dev/null +++ b/Services/apache/welcome.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>STARTX : Fedora + Apache Webserver</title> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + </head> + <body> + <div>See <a href="https://registry.hub.docker.com/u/startx/" target="_blank">STARTX Docker registry</a></div> + </body> +</html> |