|
@@ -0,0 +1,38 @@
|
|
|
|
+FROM debian:8
|
|
|
|
+EXPOSE 8000
|
|
|
|
+
|
|
|
|
+#RUN echo "Acquire::http::Proxy \"http://172.17.0.5:3142\";" | tee /etc/apt/apt.conf.d/00aptproxy
|
|
|
|
+
|
|
|
|
+RUN apt-get update
|
|
|
|
+RUN apt-get install -yq git wget vim tmux php5-cli php5-mysql php5-curl
|
|
|
|
+
|
|
|
|
+RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
|
|
|
+RUN php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
|
|
|
+RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer
|
|
|
|
+RUN php -r "unlink('composer-setup.php');"
|
|
|
|
+
|
|
|
|
+ADD . /opt/stats
|
|
|
|
+
|
|
|
|
+RUN cp /opt/stats/app/config/parameters.yml.docker /opt/stats/app/config/parameters.yml
|
|
|
|
+#RUN cp /opt/stats/app/config/url_webservice.yml.dist /opt/stats/app/config/url_webservice.yml
|
|
|
|
+#RUN cp /opt/stats/app/config/ik/audit-bundle/parameters.yml.dist /opt/stats/app/config/ik/audit-bundle/parameters.yml
|
|
|
|
+
|
|
|
|
+RUN rm /opt/stats/var/cache/* -rf
|
|
|
|
+
|
|
|
|
+RUN mkdir ~/.ssh
|
|
|
|
+RUN ssh-keyscan -H bitbucket.org >> ~/.ssh/known_hosts
|
|
|
|
+RUN ssh-keyscan -H -p 222 200.50.168.30 >> ~/.ssh/known_hosts
|
|
|
|
+
|
|
|
|
+WORKDIR /opt/stats
|
|
|
|
+
|
|
|
|
+RUN cp -r keys /opt/keys/
|
|
|
|
+RUN chmod 0600 /opt/keys/*
|
|
|
|
+
|
|
|
|
+CMD eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; composer install --no-scripts --no-interaction ;\
|
|
|
|
+ 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 \
|
|
|
|
+ composer dump-autoload ;\
|
|
|
|
+ composer run-script symfony-scripts --no-interaction ;\
|
|
|
|
+ bin/console server:run 0.0.0.0
|