cloudstack: test: improve startup time, fix network dependency on run (#24876)
This commit is contained in:
parent
e9e661ebbb
commit
d96195131f
2 changed files with 4 additions and 2 deletions
|
@ -45,6 +45,8 @@ RUN wget https://github.com/apache/cloudstack/archive/4.9.2.0.tar.gz -O /opt/clo
|
||||||
WORKDIR /opt/cloudstack
|
WORKDIR /opt/cloudstack
|
||||||
|
|
||||||
RUN mvn -Pdeveloper -Dsimulator -DskipTests clean install
|
RUN mvn -Pdeveloper -Dsimulator -DskipTests clean install
|
||||||
|
RUN mvn -Pdeveloper -Dsimulator dependency:go-offline
|
||||||
|
RUN mvn -pl client jetty:run -Dsimulator -Djetty.skip -Dorg.eclipse.jetty.annotations.maxWait=120
|
||||||
|
|
||||||
RUN (/usr/bin/mysqld_safe &); \
|
RUN (/usr/bin/mysqld_safe &); \
|
||||||
sleep 5; \
|
sleep 5; \
|
||||||
|
@ -53,11 +55,11 @@ RUN (/usr/bin/mysqld_safe &); \
|
||||||
MARVIN_FILE=$(find /opt/cloudstack/tools/marvin/dist/ -name "Marvin*.tar.gz"); \
|
MARVIN_FILE=$(find /opt/cloudstack/tools/marvin/dist/ -name "Marvin*.tar.gz"); \
|
||||||
pip install $MARVIN_FILE;
|
pip install $MARVIN_FILE;
|
||||||
|
|
||||||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
||||||
COPY zones.cfg /opt/zones.cfg
|
COPY zones.cfg /opt/zones.cfg
|
||||||
COPY nginx_default.conf /etc/nginx/sites-available/default
|
COPY nginx_default.conf /etc/nginx/sites-available/default
|
||||||
RUN pip install cs
|
RUN pip install cs
|
||||||
COPY run.sh /opt/run.sh
|
COPY run.sh /opt/run.sh
|
||||||
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
|
|
||||||
EXPOSE 8888 8080 8096
|
EXPOSE 8888 8080 8096
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ autorestart=true
|
||||||
user=root
|
user=root
|
||||||
|
|
||||||
[program:cloudstack]
|
[program:cloudstack]
|
||||||
command=/bin/bash -c "mvn -pl client jetty:run -Dsimulator -Dorg.eclipse.jetty.annotations.maxWait=120"
|
command=/bin/bash -c "mvn -pl client jetty:run-forked -Dsimulator -Dorg.eclipse.jetty.annotations.maxWait=120"
|
||||||
directory=/opt/cloudstack
|
directory=/opt/cloudstack
|
||||||
stdout_logfile=/dev/stdout
|
stdout_logfile=/dev/stdout
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
|
|
Loading…
Reference in a new issue