From f68be75d60b6fc20f68428cde072ba7972d83541 Mon Sep 17 00:00:00 2001 From: Tomas Kral Date: Mon, 16 Jan 2017 18:23:10 +0100 Subject: [PATCH] Add make rules for building and running test image --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 76c54bce..0815fd96 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,8 @@ KOMPOSE_ENVS := \ BIND_DIR := bundles +TEST_IMAGE = "tomaskral/kompose-test:latest" + default: bin all: validate @@ -57,3 +59,11 @@ gofmt: 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)