Improve docker image and build

This commit is contained in:
Jakob Borg
2014-11-23 21:46:18 +01:00
parent fe2ae4c6c3
commit 1db120bf06
2 changed files with 19 additions and 17 deletions

View File

@@ -2,7 +2,7 @@
set -euo pipefail
IFS=$'\n\t'
DOCKERIMGV=1.3.3-1
DOCKERIMGV=1.3.3-2
case "${1:-default}" in
default)
@@ -108,12 +108,12 @@ case "${1:-default}" in
docker build -q -t syncthing/build:$DOCKERIMGV docker
;;
docker)
docker-all)
docker run --rm -h syncthing-builder -u $(id -u) -t \
-v $(pwd):/go/src/github.com/syncthing/syncthing \
-w /go/src/github.com/syncthing/syncthing \
syncthing/build:$DOCKERIMGV \
sh -c './build.sh clean && ./build.sh && STTRACE=all ./build.sh test-cov && ./build.sh all'
sh -c './build.sh clean && STTRACE=all ./build.sh test-cov && ./build.sh all'
;;
*)