X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=examples%2FMakefile;fp=examples%2FMakefile;h=44832dd003e48e8238cea67f971f0f29be301e90;hb=12486343219663d484705f05ab8d2ed3306f66d7;hp=0000000000000000000000000000000000000000;hpb=9c09be1e9598d4e145faea412b047b64d38feb22;p=ric-plt%2Fxapp-frame-py.git diff --git a/examples/Makefile b/examples/Makefile new file mode 100644 index 0000000..44832dd --- /dev/null +++ b/examples/Makefile @@ -0,0 +1,22 @@ +VERSION ?= 0.1 + +IMAGE_NAME ?= xapp-test +CONTAINER_NAME ?= xapp-test +REPOSITORY ?= edgeapps-docker-local.artifactory-blr1.int.net.nokia.com + +.PHONY: build push run rm release + +build: examples/Dockerfile-Xapp + docker build -t $(IMAGE_NAME):$(VERSION) -f examples/Dockerfile-Xapp . + +push: + docker tag $(IMAGE_NAME):$(VERSION) $(REPOSITORY)/$(IMAGE_NAME):$(VERSION) + docker push $(REPOSITORY)/$(IMAGE_NAME):$(VERSION) + +run: + docker run --rm --name $(CONTAINER_NAME) -ti $(ENV) $(IMAGE_NAME):$(VERSION) + +rm: + docker rm $(CONTAINER_NAME) + +default: build