changeset 1925:b12e5a6be81f

Name things explicitly rather than relying on the other build script
author Chris Cannam
date Tue, 03 Jul 2018 14:15:51 +0100
parents 6ec18c2566e7
children d7593016cad3
files deploy/linux/build-and-test-appimage.sh
diffstat 1 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/deploy/linux/build-and-test-appimage.sh	Tue Jul 03 14:13:27 2018 +0100
+++ b/deploy/linux/build-and-test-appimage.sh	Tue Jul 03 14:15:51 2018 +0100
@@ -24,6 +24,18 @@
     perl -p -e "s/\[\[REVISION\]\]/$current/g" > \
          "$dockerdir"/Dockerfile_test_appimage.gen
 
-"$dockerdir"/build.sh appimage
+dockertag="cannam/sonic-visualiser-appimage-$current"
+
+sudo docker build -t "$dockertag" -f "$dockerdir"/Dockerfile_appimage.gen "$dockerdir"
+
+outdir="$dockerdir/output"
+mkdir -p "$outdir"
+
+container=$(sudo docker create "$dockertag")
+
+sudo docker cp "$container":output.tar "$outdir"
+sudo docker rm "$container"
+
+( cd "$outdir" ; tar xf output.tar && rm -f output.tar )
 
 sudo docker build -f "$dockerdir"/Dockerfile_test_appimage.gen "$dockerdir"