[CORD-1541] Building the xos-tosca container
Change-Id: Ie1a27bb4606a511f5095a945e0be26623b563b96
diff --git a/Makefile b/Makefile
index 8c4526b..36fc749 100644
--- a/Makefile
+++ b/Makefile
@@ -2,15 +2,22 @@
@echo "tests: Run unit tests (if you're running local, you'll need to have virtual-env activated)"
@echo "tosca: Generate tosca definition from core.xproto"
@echo "test-call: Send a sample tosca recipe"
+ @echo "build: Build the docker image for xos-tosca"
+ @echo "start: Run an xos-tosca container"
+ @echo "clean: Remove the xos-tosca container (if any), and the image (if any)"
tests: tosca
nosetests -s -v --with-id --with-coverage --cover-html --cover-erase --cover-xml --cover-package="grpc_client, tosca"
build:
- @echo 'TBD'
+ docker build -t xosproject/xos-tosca --no-cache=true .
+
+start: build
+ docker run -p 9200:9200 --name xos-tosca -d xosproject/xos-tosca
clean:
- @echo 'TBD'
+ docker rm -f xos-tosca || true
+ docker rmi -f xosproject/xos-tosca || true
test-call:
curl -H "xos-username: xosadmin@opencord.org" -H "xos-password: rk1UYDHZXbu6KVCMkhmV" -X POST --data-binary @test/tosca/test.yaml 127.0.0.1:9200/run