improved docker makefiles
This commit is contained in:
		
							parent
							
								
									17a7610f84
								
							
						
					
					
						commit
						2f5c9ecba5
					
				@ -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
 | 
			
		||||
@ -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
 | 
			
		||||
@ -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
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user