File: build.sh

package info (click to toggle)
zchunk 1.5.2%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,704 kB
  • sloc: ansic: 13,244; python: 457; sh: 260; makefile: 13
file content (12 lines) | stat: -rwxr-xr-x 385 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
# Build zchunk-ubuntu-lts:latest if it doesn't exist
HAVE_IMAGE=$(docker image ls -q zchunk-ubuntu-lts:latest)
if [ "$HAVE_IMAGE" == "" ]; then
	autotest/ubuntu-lts/prep.sh
	if [ "$?" -ne 0 ]; then
		exit 1
	fi
fi
docker image rm zchunk-ubuntu-lts:test -f 2>/dev/null 1>/dev/null
docker image build -t zchunk-ubuntu-lts:test --file autotest/ubuntu-lts/build/Dockerfile ./