diff deploy/linux/docker/Dockerfile_deb.in @ 2144:3a4202cae7fe

Updates to try to resolve bitbucket access problem from old Ubuntu 14.04 image - switching to using a dedicated build ssh key (locally stored, not in the repo!) copied in on demand
author Chris Cannam
date Tue, 04 Dec 2018 10:57:36 +0000
parents 295b6a146f1c
children 3f3ad6701482
line wrap: on
line diff
--- a/deploy/linux/docker/Dockerfile_deb.in	Tue Dec 04 10:31:12 2018 +0000
+++ b/deploy/linux/docker/Dockerfile_deb.in	Tue Dec 04 10:57:36 2018 +0000
@@ -49,7 +49,15 @@
 WORKDIR c++
 RUN autoreconf -i && ./configure --enable-shared=no --enable-static=yes && make -j3 && make install
 
-WORKDIR ../../sonic-visualiser
+WORKDIR /root
+
+COPY id_dsa_build .ssh/id_dsa_build
+COPY known_hosts .ssh/known_hosts
+RUN chmod 600 .ssh/id_dsa_build .ssh/known_hosts
+RUN echo '{"accounts": {"bitbucket": "cannam"}}' > .repoint.json
+RUN ( echo '[ui]' ; echo 'ssh = ssh -i /root/.ssh/id_dsa_build' ) > .hgrc
+
+WORKDIR /sonic-visualiser
 RUN ./configure
 RUN make -j3