summaryrefslogtreecommitdiffstats
path: root/Applications
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2014-12-06 01:09:00 +0100
committerstartxfr <clarue@startx.fr>2014-12-06 01:09:00 +0100
commit076db03abf9ac12a057b784a3e0999180ca53543 (patch)
tree86553f1f030a07290a65d1696772488079088e54 /Applications
parent391988d9e6ca3dd863d55a2d84189fda6aeb990c (diff)
downloadphpmyadmin-076db03abf9ac12a057b784a3e0999180ca53543.tar.gz
phpmyadmin-076db03abf9ac12a057b784a3e0999180ca53543.tar.bz2
phpmyadmin-076db03abf9ac12a057b784a3e0999180ca53543.tar.xz
phpmyadmin-076db03abf9ac12a057b784a3e0999180ca53543.zip
adding script for automating image generation and starting container for testing and benchmarks
Diffstat (limited to 'Applications')
-rwxr-xr-xApplications/dockerhub_run.sh3
-rwxr-xr-xApplications/local_build.sh3
-rwxr-xr-xApplications/local_run.sh3
-rw-r--r--Applications/phpmyadmin/Dockerfile6
-rw-r--r--Applications/phpmyadmin/config.php (renamed from Applications/phpmyadmin/config.inc.php)0
5 files changed, 12 insertions, 3 deletions
diff --git a/Applications/dockerhub_run.sh b/Applications/dockerhub_run.sh
new file mode 100755
index 0000000..2c25afb
--- /dev/null
+++ b/Applications/dockerhub_run.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+docker run -d -p 84:80 --name="pma" startx/app-pma
+docker run -d -p 86:80 --name="rockmongo" startx/app-rockmongo \ No newline at end of file
diff --git a/Applications/local_build.sh b/Applications/local_build.sh
new file mode 100755
index 0000000..975a33e
--- /dev/null
+++ b/Applications/local_build.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+docker build -t app-pma Applications/phpmyadmin/
+docker build -t app-rockmongo Applications/rockmongo/ \ No newline at end of file
diff --git a/Applications/local_run.sh b/Applications/local_run.sh
new file mode 100755
index 0000000..3ae7183
--- /dev/null
+++ b/Applications/local_run.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+docker run -d -p 85:80 --name="lbpma" app-pma
+docker run -d -p 87:80 --name="lbrockmongo" app-rockmongo \ No newline at end of file
diff --git a/Applications/phpmyadmin/Dockerfile b/Applications/phpmyadmin/Dockerfile
index e17dbef..d63c460 100644
--- a/Applications/phpmyadmin/Dockerfile
+++ b/Applications/phpmyadmin/Dockerfile
@@ -3,10 +3,10 @@ MAINTAINER Christophe LARUE <dev@startx.fr>
RUN yum -y install phpMyAdmin \
&& yum clean all
-COPY config.inc.php /etc/phpMyAdmin/config.inc.php
+COPY config.php /etc/phpMyAdmin/config.inc.php
COPY test.php /var/www/html/test.php
EXPOSE 80
EXPOSE 443
-
-ENTRYPOINT ["/usr/sbin/apachectl", "-D FOREGROUND"] \ No newline at end of file
+VOLUME ["/var/www/html", "/var/log/httpd"]
+CMD ["/sx/httpd_run.sh"] \ No newline at end of file
diff --git a/Applications/phpmyadmin/config.inc.php b/Applications/phpmyadmin/config.php
index 20e4276..20e4276 100644
--- a/Applications/phpmyadmin/config.inc.php
+++ b/Applications/phpmyadmin/config.php