blob: 94efe35ae04d02163616c519f1147129db39307d [file] [log] [blame]
Matteo Scandoloa4a279a2019-03-14 15:56:22 -07001REGISTRY ?=
2REPOSITORY ?=
3DOCKER_BUILD_ARGS ?=
4SERVICE ?= rcord
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)