You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by se...@apache.org on 2015/03/04 11:58:33 UTC

git commit: updated refs/heads/4.4 to a411015

Repository: cloudstack
Updated Branches:
  refs/heads/4.4 10bb8af34 -> a41101572


Add Dockerfile for simulator


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a4110157
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a4110157
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a4110157

Branch: refs/heads/4.4
Commit: a41101572691503bbcb57aba355049cf399356dc
Parents: 10bb8af
Author: Sebastien Goasguen <ru...@gmail.com>
Authored: Wed Mar 4 11:56:24 2015 +0100
Committer: Sebastien Goasguen <ru...@gmail.com>
Committed: Wed Mar 4 11:58:13 2015 +0100

----------------------------------------------------------------------
 Dockerfile       | 37 +++++++++++++++++++++++++++++++++++++
 supervisord.conf | 15 +++++++++++++++
 2 files changed, 52 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a4110157/Dockerfile
----------------------------------------------------------------------
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..ed2ca48
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,37 @@
+FROM ubuntu:14.04
+
+RUN apt-get -y update && apt-get install -y \
+    genisoimage \
+    git \
+    maven \
+    openjdk-7-jdk \
+    python-dev \
+    python-setuptools \
+    python-pip \
+    supervisor
+
+RUN echo 'mysql-server mysql-server/root_password password root' |  debconf-set-selections; \
+    echo 'mysql-server mysql-server/root_password_again password root' |  debconf-set-selections;
+
+RUN apt-get install -qqy mysql-server && \
+    apt-get clean all
+
+RUN (/usr/bin/mysqld_safe &); sleep 5; mysqladmin -u root -proot password ''
+
+RUN pip install --allow-external mysql-connector-python mysql-connector-python
+
+COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
+COPY . ./root
+WORKDIR /root
+
+RUN mvn -Pdeveloper -Dsimulator -DskipTests clean install
+
+RUN (/usr/bin/mysqld_safe &); \
+    sleep 3; \
+    mvn -Pdeveloper -pl developer -Ddeploydb; \
+    mvn -Pdeveloper -pl developer -Ddeploydb-simulator; \
+    pip install tools/marvin/dist/Marvin-0.1.0.tar.gz
+
+EXPOSE 8080
+
+CMD ["/usr/bin/supervisord"]

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a4110157/supervisord.conf
----------------------------------------------------------------------
diff --git a/supervisord.conf b/supervisord.conf
new file mode 100644
index 0000000..a3e454b
--- /dev/null
+++ b/supervisord.conf
@@ -0,0 +1,15 @@
+[supervisord]
+nodaemon=true
+
+[program:mysqld]
+command=/usr/bin/mysqld_safe
+autostart=true
+autorestart=true
+user=root
+
+[program:cloudstack]
+command=/bin/bash -c "mvn -pl client jetty:run -Dsimulator"
+directory=/root
+stderr_logfile=/var/log/acs.err.log
+stdout_logfile=/var/log/acs.out.log
+user=root