|
@@ -15,7 +15,10 @@ ADD bin/* /usr/bin/
|
|
|
|
|
|
WORKDIR /opt
|
|
|
|
|
|
-RUN echo Acquire::http::Proxy "http://aptcache.infra.flowdat.com/"; > /etc/apt/apt.conf.d/00aptproxy; \
|
|
|
+RUN chmod 0600 /opt/keys/*; \
|
|
|
+ eval $(ssh-agent); \
|
|
|
+ ssh-add /opt/keys/bitbucket.id_rsa; \
|
|
|
+ echo Acquire::http::Proxy "http://aptcache.infra.flowdat.com/"; > /etc/apt/apt.conf.d/00aptproxy; \
|
|
|
apt-get update; \
|
|
|
apt-get install -yq parallel lockfile-progs expect telnet sudo cron patch \
|
|
|
openssh-server gdal-bin; \
|
|
@@ -36,6 +39,15 @@ RUN echo Acquire::http::Proxy "http://aptcache.infra.flowdat.com/"; > /etc/apt/a
|
|
|
touch /var/log/cron.log; \
|
|
|
touch /var/log/cron.err.log; \
|
|
|
touch /var/log/cron.out.log; \
|
|
|
+ git clone git@gitlab.com:interlink-sa/flowdat3/modules/stats.git /opt/stats; \
|
|
|
+ cd /opt/stats; \
|
|
|
+ cp app/config/parameters.yml.dist app/config/parameters.yml ;\
|
|
|
+ cp app/config/bundles/hwi/oauth-bundle/parameters.yml.dist app/config/bundles/hwi/oauth-bundle/parameters.yml ;\
|
|
|
+ cp app/config/bundles/ik/webservice-bundle/parameters.yml.dist 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; \
|
|
|
+ cp app/config/bundles/ik/audit-bundle/parameters.yml.dist ./app/config/bundles/ik/audit-bundle/parameters.yml; \
|
|
|
+ composer install --no-scripts --no-interaction --no-progress; \
|
|
|
+ cd /opt; \
|
|
|
chmod +x /opt/script.sh; \
|
|
|
rm /etc/apt/apt.conf.d/00aptproxy; \
|
|
|
rm -rf /var/lib/apt/lists/*
|