cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seb...@apache.org
Subject git commit: updated refs/heads/4.5 to 9562175
Date Wed, 04 Mar 2015 11:00:40 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.5 def4a5ef5 -> 9562175ca


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/9562175c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/9562175c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/9562175c

Branch: refs/heads/4.5
Commit: 9562175ca7b36d6d5feeefd35e837cc888d79c06
Parents: def4a5e
Author: Sebastien Goasguen <runseb@gmail.com>
Authored: Wed Mar 4 11:56:24 2015 +0100
Committer: Sebastien Goasguen <runseb@gmail.com>
Committed: Wed Mar 4 12:00:32 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9562175c/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/9562175c/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


Mime
View raw message