Target for building a Kapow! container image and Dockerfile

This commit is contained in:
Héctor Hurtado
2019-10-31 15:01:13 +01:00
parent 19c4e8d482
commit 84a106db19
2 changed files with 19 additions and 1 deletions
+9 -1
View File
@@ -1,4 +1,4 @@
.PHONY: lint build test jaillover race coverage install acceptance deps
.PHONY: lint build test jaillover race coverage install acceptance deps docker
GOCMD=go
GOBUILD=$(GOCMD) build
@@ -11,6 +11,8 @@ PROJECTREPO=github.com/BBVA/kapow
BUILD_DIR=./build
OUTPUT_DIR=./output
TMP_DIR=/tmp
DOCS_DIR=./doc
DOCKER_DIR=./docker
BINARY_NAME=kapow
@@ -44,3 +46,9 @@ acceptance: install
deps:
@echo "deps here"
docker: build
cp $(BUILD_DIR)/$(BINARY_NAME) $(DOCKER_DIR)/
cp $(DOCS_DIR)/*.pow $(DOCKER_DIR)/
cd $(DOCKER_DIR) && docker build -t kapow .
cd ..