Repository: cloudstack Updated Branches: refs/heads/4.3 d7988f17b -> a17f2d170
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/a17f2d17 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a17f2d17 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a17f2d17 Branch: refs/heads/4.3 Commit: a17f2d170730ef72926182026dfe8ff4bb86cd2d Parents: d7988f1 Author: Sebastien Goasguen <[email protected]> Authored: Wed Mar 4 11:56:24 2015 +0100 Committer: Sebastien Goasguen <[email protected]> Committed: Wed Mar 4 11:56:24 2015 +0100 ---------------------------------------------------------------------- Dockerfile | 37 +++++++++++++++++++++++++++++++++++++ supervisord.conf | 15 +++++++++++++++ 2 files changed, 52 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a17f2d17/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/a17f2d17/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
