浏览代码

Dockerfile

Espinoza Guillermo 7 年之前
父节点
当前提交
286be250fd
共有 1 个文件被更改,包括 14 次插入13 次删除
  1. 14 13
      Dockerfile

+ 14 - 13
Dockerfile

@@ -25,23 +25,24 @@ RUN eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; composer install --
 RUN git clone git@bitbucket.org:ikflowdat/extra.git /opt/extra ; cp /opt/extra/netmiko /opt/netmiko ; rm /opt/extra
 
 RUN apt-get install -yq php-soap python-pip
+RUN git clone git@bitbucket.org:ikflowdat/extra.git /opt/extra ; cp -r /opt/extra/netmiko /opt/netmiko ; rm /opt/extra
 RUN pip install -e /opt/netmiko
 
 RUN eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; git clone git@bitbucket.org:ikflowdat/json-wsdl.git /opt/json-wsdl ;  cd /opt/json-wsdl ; composer install --no-scripts --no-interaction --no-progress
 
 RUN cp app/config/bundles/ik/device-bundle/parameters.yml.docker app/config/bundles/ik/device-bundle/parameters.yml ;\
- 	cp app/config/url_webservice.yml.docker app/config/url_webservice.yml ;\
- 	cp app/config/hwioauthbundle/parameters.yml.docker app/config/hwioauthbundle/parameters.yml ;\
-	cp app/config/bundles/ik/device-bundle/parameters.yml.docker app/config/bundles/ik/device-bundle/parameters.yml ;\
-	cp app/config/bundles/ik/base-admin-bundle/parameters.yml.dist app/config/bundles/ik/base-admin-bundle/parameters.yml
+     cp app/config/url_webservice.yml.docker app/config/url_webservice.yml ;\
+     cp app/config/hwioauthbundle/parameters.yml.docker app/config/hwioauthbundle/parameters.yml ;\
+    cp app/config/bundles/ik/device-bundle/parameters.yml.docker app/config/bundles/ik/device-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 --no-progress;\
-	rm var/cache/* -rf ;\
-	cp app/config/bundles/ik/device-bundle/parameters.yml.docker app/config/bundles/ik/device-bundle/parameters.yml ;\
- 	cp app/config/url_webservice.yml.docker app/config/url_webservice.yml ;\
- 	cp app/config/hwioauthbundle/parameters.yml.docker app/config/hwioauthbundle/parameters.yml ;\
-	cp app/config/bundles/ik/device-bundle/parameters.yml.docker app/config/bundles/ik/device-bundle/parameters.yml ;\
-	cp app/config/bundles/ik/base-admin-bundle/parameters.yml.dist app/config/bundles/ik/base-admin-bundle/parameters.yml ;\
-	composer run-script post-install-cmd --no-interaction ;\
- 	cat app/config/hwioauthbundle/parameters.yml ;\
- 	bin/console server:run 0.0.0.0 --env=dev
+    rm var/cache/* -rf ;\
+    cp app/config/bundles/ik/device-bundle/parameters.yml.docker app/config/bundles/ik/device-bundle/parameters.yml ;\
+     cp app/config/url_webservice.yml.docker app/config/url_webservice.yml ;\
+     cp app/config/hwioauthbundle/parameters.yml.docker app/config/hwioauthbundle/parameters.yml ;\
+    cp app/config/bundles/ik/device-bundle/parameters.yml.docker app/config/bundles/ik/device-bundle/parameters.yml ;\
+    cp app/config/bundles/ik/base-admin-bundle/parameters.yml.dist app/config/bundles/ik/base-admin-bundle/parameters.yml ;\
+    composer run-script post-install-cmd --no-interaction ;\
+     cat app/config/hwioauthbundle/parameters.yml ;\
+     bin/console server:run 0.0.0.0 --env=dev