[docker] start postgre service before applying cubicweb.instances state
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 27 Jul 2015 09:56:40 +0200
changeset 60 c1844d1de7c6
parent 59 eecaad543f54
child 61 d5c835c09451
[docker] start postgre service before applying cubicweb.instances state
Dockerfile
--- a/Dockerfile	Thu Jul 23 10:36:15 2015 +0200
+++ b/Dockerfile	Mon Jul 27 09:56:40 2015 +0200
@@ -21,7 +21,7 @@
 RUN echo " - example" >> /srv/pillar/top.sls
 RUN salt-call --local saltutil.sync_all && echo "ok"
 RUN salt-call --local state.sls cubicweb.postgres | tee log.txt && grep -e "Failed: *0" log.txt
-RUN salt-call --local state.sls cubicweb.instances | tee log.txt && grep -e "Failed: *0" log.txt
+RUN /etc/init.d/postgresql start && salt-call --local state.sls cubicweb.instances | tee log.txt && grep -e "Failed: *0" log.txt
 
 EXPOSE 9001 # supervisord http endpoint
 EXPOSE 8080 # exact value depends on the pillar data