blob: 6c6c0ba4018a9c4266e8ab1330c6e4bf2e6b6efd [file] [log] [blame]
Andy Bavier561f3e52019-03-15 10:46:05 -07001REGISTRY ?=
2REPOSITORY ?=
3DOCKER_BUILD_ARGS ?=
4SERVICE ?= tt-workflow-driver
5MAKEFILE_DIR := $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
6TAG ?= $(shell cat ${MAKEFILE_DIR}/VERSION)
7IMAGENAME := ${REGISTRY}${REPOSITORY}${SERVICE}-synchronizer:${TAG}
8SHELL := /bin/bash
9
10all: build push
11
12build:
13 docker build $(DOCKER_BUILD_ARGS) -t ${IMAGENAME} -f Dockerfile.synchronizer .
14
15push:
16 docker push ${IMAGENAME}
17
18test:
19 source ../../xos/venv-xos/bin/activate && cd xos && nose2 --verbose --coverage-report term || echo "Please install the XOS virtual environment"
20
21migrate:
22 source ../../xos/venv-xos/bin/activate && cd xos && xos-migrate -s $(SERVICE)