improved docker makefiles

This commit is contained in:
volodymyr-babak 2017-05-17 12:08:10 +03:00
parent 17a7610f84
commit 2f5c9ecba5
4 changed files with 7 additions and 17 deletions

View File

@ -2,12 +2,8 @@ VERSION=k8stest
PROJECT=thingsboard
APP=cassandra
all: build
build:
docker build --pull -t ${PROJECT}/${APP}:${VERSION} .
push: build
docker push ${PROJECT}/${APP}:${VERSION}
.PHONY: all build push

View File

@ -2,12 +2,12 @@ VERSION=k8stest
PROJECT=thingsboard
APP=thingsboard-db-schema
all: build
build:
cp ../../dao/src/main/resources/schema.cql .
cp ../../dao/src/main/resources/demo-data.cql .
cp ../../dao/src/main/resources/system-data.cql .
docker build --pull -t ${PROJECT}/${APP}:${VERSION} .
push: build
docker push ${PROJECT}/${APP}:${VERSION}
.PHONY: all build push
rm schema.cql demo-data.cql system-data.cql

View File

@ -2,12 +2,10 @@ VERSION=k8stest
PROJECT=thingsboard
APP=application
all: build
build:
cp ../../application/target/thingsboard.deb .
docker build --pull -t ${PROJECT}/${APP}:${VERSION} .
push: build
docker push ${PROJECT}/${APP}:${VERSION}
.PHONY: all build push
rm thingsboard.deb

View File

@ -2,12 +2,8 @@ VERSION=k8stest
PROJECT=thingsboard
APP=zk
all: build
build:
docker build --pull -t ${PROJECT}/${APP}:${VERSION} .
push: build
docker push ${PROJECT}/${APP}:${VERSION}
.PHONY: all build push