Commit 2f5c9ecba5963e0199f061fa4cfb07d7e0147390

Authored by volodymyr-babak
1 parent 17a7610f

improved docker makefiles

... ... @@ -2,12 +2,8 @@ VERSION=k8stest
2 2 PROJECT=thingsboard
3 3 APP=cassandra
4 4
5   -all: build
6   -
7 5 build:
8 6 docker build --pull -t ${PROJECT}/${APP}:${VERSION} .
9 7
10 8 push: build
11   - docker push ${PROJECT}/${APP}:${VERSION}
12   -
13   -.PHONY: all build push
\ No newline at end of file
  9 + docker push ${PROJECT}/${APP}:${VERSION}
\ No newline at end of file
... ...
... ... @@ -2,12 +2,12 @@ VERSION=k8stest
2 2 PROJECT=thingsboard
3 3 APP=thingsboard-db-schema
4 4
5   -all: build
6   -
7 5 build:
  6 + cp ../../dao/src/main/resources/schema.cql .
  7 + cp ../../dao/src/main/resources/demo-data.cql .
  8 + cp ../../dao/src/main/resources/system-data.cql .
8 9 docker build --pull -t ${PROJECT}/${APP}:${VERSION} .
9 10
10 11 push: build
11 12 docker push ${PROJECT}/${APP}:${VERSION}
12   -
13   -.PHONY: all build push
\ No newline at end of file
  13 + rm schema.cql demo-data.cql system-data.cql
\ No newline at end of file
... ...
... ... @@ -2,12 +2,10 @@ VERSION=k8stest
2 2 PROJECT=thingsboard
3 3 APP=application
4 4
5   -all: build
6   -
7 5 build:
  6 + cp ../../application/target/thingsboard.deb .
8 7 docker build --pull -t ${PROJECT}/${APP}:${VERSION} .
9 8
10 9 push: build
11 10 docker push ${PROJECT}/${APP}:${VERSION}
12   -
13   -.PHONY: all build push
\ No newline at end of file
  11 + rm thingsboard.deb
\ No newline at end of file
... ...
... ... @@ -2,12 +2,8 @@ VERSION=k8stest
2 2 PROJECT=thingsboard
3 3 APP=zk
4 4
5   -all: build
6   -
7 5 build:
8 6 docker build --pull -t ${PROJECT}/${APP}:${VERSION} .
9 7
10 8 push: build
11 9 docker push ${PROJECT}/${APP}:${VERSION}
12   -
13   -.PHONY: all build push
... ...