comparison deploy/linux/docker/build.sh @ 1909:12b96d6b1d66

Toward getting appimage build working in Docker
author Chris Cannam
date Fri, 29 Jun 2018 10:31:17 +0100
parents 56b268b96fcb
children
comparison
equal deleted inserted replaced
1908:abddb04d2bf3 1909:12b96d6b1d66
20 20
21 echo "Building for version $version, platform $platform" 21 echo "Building for version $version, platform $platform"
22 dockerfile="Dockerfile_v${version}_${platform}" 22 dockerfile="Dockerfile_v${version}_${platform}"
23 23
24 if [ ! -f "$dockerdir/$dockerfile" ]; then 24 if [ ! -f "$dockerdir/$dockerfile" ]; then
25 echo "No matching docker file $dockerfile found in $dockerdir" 25 echo "No matching docker file $dockerfile found in $dockerdir, trying again without version"
26 exit 1 26 dockerfile="Dockerfile_${platform}"
27 if [ ! -f "$dockerdir/$dockerfile" ]; then
28 echo "No matching docker file $dockerfile found in $dockerdir either"
29 exit 1
30 fi
27 fi 31 fi
28 32
29 dockertag="cannam/sonic-visualiser-$platform" 33 dockertag="cannam/sonic-visualiser-$platform"
30 34
31 sudo docker build -t "$dockertag" -f "$dockerdir/$dockerfile" "$dockerdir" 35 sudo docker build -t "$dockertag" -f "$dockerdir/$dockerfile" "$dockerdir"