[SEBA-351] Adding bandwidth profiles to the Subscriber and setting up a default one
Change-Id: Ib4c66652e5b6da24e08509805cd189bb090375d7
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..94efe35
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+REGISTRY ?=
+REPOSITORY ?=
+DOCKER_BUILD_ARGS ?=
+SERVICE ?= rcord
+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)
\ No newline at end of file