blob: 6c6c0ba4018a9c4266e8ab1330c6e4bf2e6b6efd [file] [log] [blame]
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)