diff docker/libervia/Dockerfile @ 106:8b228fd053bc

docker (base, libervia): use new getRepositoryData ability to save data in a .hg_data file
author Goffi <goffi@goffi.org>
date Sun, 28 Feb 2016 15:04:12 +0100
parents b69056368901
children
line wrap: on
line diff
--- a/docker/libervia/Dockerfile	Sun Feb 28 02:01:20 2016 +0100
+++ b/docker/libervia/Dockerfile	Sun Feb 28 15:04:12 2016 +0100
@@ -63,16 +63,16 @@
 # LIBERVIA #
 ############
 
-hg clone https://repos.goffi.org/libervia && \
+cd /tmp && hg clone https://repos.goffi.org/libervia && \
 
 cd libervia && \
 
 python setup.py install && \
 
-# as for SàT backend, we copy .hg/dirstate so
-# Libervia can get repository version
+# as for SàT backend, we save repos data
+# so Libervia can get repository version
 # TODO: should be done in setup.py in the future
-cp --parents .hg/dirstate /usr/local/lib/python2.7/dist-packages/libervia && \
+python -c 'from sat.tools import utils;utils.getRepositoryData("/tmp/libervia", is_path=True, save_dir_path="/usr/local/lib/python2.7/dist-packages/libervia")' && \
 
 # some cleaning before finishing the layer
 cd /tmp && rm -rf libervia pyjamas /usr/local/bin/pyjsbuild