SEBA-542 Basic scaffolding for TT Workflow Driver service
Change-Id: Ia88a4d22f40b45299bb35e7bc5600cccbc453873
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6c6c0ba
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+REGISTRY ?=
+REPOSITORY ?=
+DOCKER_BUILD_ARGS ?=
+SERVICE ?= tt-workflow-driver
+MAKEFILE_DIR := $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
+TAG ?= $(shell cat ${MAKEFILE_DIR}/VERSION)
+IMAGENAME := ${REGISTRY}${REPOSITORY}${SERVICE}-synchronizer:${TAG}
+SHELL := /bin/bash
+
+all: build push
+
+build:
+ docker build $(DOCKER_BUILD_ARGS) -t ${IMAGENAME} -f Dockerfile.synchronizer .
+
+push:
+ docker push ${IMAGENAME}
+
+test:
+ source ../../xos/venv-xos/bin/activate && cd xos && nose2 --verbose --coverage-report term || echo "Please install the XOS virtual environment"
+
+migrate:
+ source ../../xos/venv-xos/bin/activate && cd xos && xos-migrate -s $(SERVICE)