summaryrefslogtreecommitdiffstats
path: root/Applications/rockmongo/Dockerfile
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2014-11-20 03:17:46 +0100
committerstartxfr <clarue@startx.fr>2014-11-20 03:17:46 +0100
commita699d0d06feeb1859efea16dd6b3df17901a1bc5 (patch)
tree3a2646acb64a4a9d2440549b2a895648b9289466 /Applications/rockmongo/Dockerfile
parent8829f895c890685cc25fe3022299b4275808dc06 (diff)
downloadphpmyadmin-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 'Applications/rockmongo/Dockerfile')
-rw-r--r--Applications/rockmongo/Dockerfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Applications/rockmongo/Dockerfile b/Applications/rockmongo/Dockerfile
index b3ae35a..a934d41 100644
--- a/Applications/rockmongo/Dockerfile
+++ b/Applications/rockmongo/Dockerfile
@@ -2,3 +2,28 @@
FROM openshift/centos-rockmongo:latest
MAINTAINER startx dev@startx.fr
+
+
+
+# update, install required, clean
+RUN yum -y update && yum install -y httpd php php-devel wget php-pear unzip gcc-c++ make && yum clean all
+
+# update pecl channels
+RUN pecl update-channels
+
+# install mongo drivers without Cyrus SASL (MongoDB Enterprise Authentication)
+RUN printf "no\n" | pecl install mongo && cd /etc && echo "extension=mongo.so" >> /etc/php.d/mongo.ini
+
+# install RockMongo
+RUN cd /root && wget -O rockmongo-1.1.5.zip http://rockmongo.com/downloads/go?id=12 && unzip rockmongo-1.1.5.zip -d /var/www/ && rm -R /var/www/html && mv /var/www/rockmongo/ /var/www/html
+
+# increase php upload size
+RUN sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 10M/g' /etc/php.ini && sed -i 's/post_max_size = 2M/post_max_size = 10M/g' /etc/php.ini
+
+# expose php information
+RUN echo '<?php phpInfo(); ?>' > /var/www/html/info.php
+
+# Expose ports
+EXPOSE 80
+
+CMD ["/usr/sbin/httpd", "-D", "FOREGROUND"] \ No newline at end of file