github.com/honeycombio/honeytail@v1.9.0/pkg-test/test.sh (about) 1 #!/bin/sh 2 3 # Smoke-test package installation by installing packages into a container. This 4 # assumes that packages exist in $GOPATH/bin 5 6 set -e 7 8 if [ "$#" -ne 1 ]; then echo "usage: test.sh <build id>"; exit 1; fi 9 10 BUILDID=$1 11 DEB=honeytail_${BUILDID}_amd64.deb 12 RPM=honeytail-${BUILDID}-1.x86_64.rpm 13 DIR=`dirname $0` 14 echo docker build --build-arg package=$DEB -f Dockerfile.deb $DIR 15 16 cp $GOPATH/bin/$DEB $DIR 17 cp $GOPATH/bin/$RPM $DIR 18 docker build --build-arg package=$DEB -f $DIR/Dockerfile.deb $DIR 19 docker build --build-arg package=$RPM -f $DIR/Dockerfile.rpm $DIR