mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Add Dockerfile for simulator
This commit is contained in:
parent
c5c1b1d462
commit
1b05de04bd
37
Dockerfile
Normal file
37
Dockerfile
Normal file
@ -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"]
|
||||||
15
supervisord.conf
Normal file
15
supervisord.conf
Normal file
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user