Add make rules for building and running test image

This commit is contained in:
Tomas Kral 2017-01-16 18:23:10 +01:00
parent c8c2e8b7f6
commit f68be75d60
No known key found for this signature in database
GPG Key ID: E690DA7E4F291FA6

View File

@ -24,6 +24,8 @@ KOMPOSE_ENVS := \
BIND_DIR := bundles BIND_DIR := bundles
TEST_IMAGE = "tomaskral/kompose-test:latest"
default: bin default: bin
all: validate all: validate
@ -57,3 +59,11 @@ gofmt:
check-vendor: check-vendor:
./script/make.sh check-vendor ./script/make.sh check-vendor
# build docker image that is used for running travis test localy
build-test-image:
docker build -t $(TEST_IMAGE) -f script/tests_in_container/Dockerfile .
# run travis test localy using docker image (build by build-test-image target)
test-docker:
docker run -v `pwd`:/opt/tmp/kompose:ro -it $(TEST_IMAGE)