Jelajahi Sumber

docker config

Luciano Andrade 7 tahun lalu
induk
melakukan
af0d081ad2
1 mengubah file dengan 5 tambahan dan 5 penghapusan
  1. 5 5
      Dockerfile

+ 5 - 5
Dockerfile

@@ -22,13 +22,13 @@ RUN cp -r keys /opt/keys/
 RUN chmod 0600 /opt/keys/*
 RUN chmod 0600 /opt/keys/*
 
 
 RUN eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; composer install --no-scripts --no-interaction 
 RUN eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; composer install --no-scripts --no-interaction 
-
+RUN cp app/config/parameters.yml.docker app/config/parameters.yml ;\
+    cp app/config/bundles/hwi/oauth-bundle/parameters.yml.docker app/config/bundles/hwi/oauth-bundle/parameters.yml ;\
+    cp app/config/bundles/ik/webservice-bundle/parameters.yml.docker app/config/bundles/ik/webservice-bundle/parameters.yml ;\
+    cp app/config/bundles/ik/base-admin-bundle/parameters.yml.dist app/config/bundles/ik/base-admin-bundle/parameters.yml 
+ 
 CMD  eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; composer install --no-scripts --no-interaction ;\
 CMD  eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; composer install --no-scripts --no-interaction ;\
      rm var/cache/* -rf ;\
      rm var/cache/* -rf ;\
-     cp app/config/parameters.yml.docker app/config/parameters.yml ;\
-     cp app/config/bundles/hwi/oauth-bundle/parameters.yml.docker app/config/bundles/hwi/oauth-bundle/parameters.yml ;\
-     cp app/config/bundles/ik/webservice-bundle/parameters.yml.docker app/config/bundles/ik/webservice-bundle/parameters.yml ;\
-     cp app/config/bundles/ik/base-admin-bundle/parameters.yml.dist app/config/bundles/ik/base-admin-bundle/parameters.yml ;\
      composer dump-autoload ;\
      composer dump-autoload ;\
      composer run-script post-install-cmd --no-interaction ;\
      composer run-script post-install-cmd --no-interaction ;\
      bin/console server:run 0.0.0.0
      bin/console server:run 0.0.0.0