Fix build versioning; add dev.docker file

This commit is contained in:
Daniel Nelson
2017-09-22 16:49:28 -07:00
parent db787f9a83
commit 7b41da4ddd
4 changed files with 36 additions and 15 deletions

View File

@@ -49,12 +49,16 @@ test-all: lint
go test ./...
package:
./scripts/build.py --package --version="$(VERSION)" --platform=linux --arch=all --upload
./scripts/build.py --package --platform=all --arch=all
clean:
-rm -f telegraf
-rm -f telegraf.exe
docker-image:
./scripts/build.py --package --platform=linux --arch=amd64
cp build/telegraf*$(COMMIT)*.deb .
docker build -f scripts/dev.docker --build-arg "package=telegraf*$(COMMIT)*.deb" -t "telegraf-dev:$(COMMIT)" .
# Run all docker containers necessary for integration tests
docker-run:
docker run --name aerospike -p "3000:3000" -d aerospike/aerospike-server:3.9.0
@@ -114,4 +118,4 @@ docker-kill:
openldap postgres rabbitmq redis riemann zookeeper
.PHONY: deps telegraf telegraf.exe install test test-windows lint test-all \
package clean docker-run docker-run-circle docker-kill
package clean docker-run docker-run-circle docker-kill docker-image