Andy Bavier | 25ebf0e | 2017-06-06 18:27:15 -0400 | [diff] [blame] | 1 | ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) |
| 2 | |
| 3 | IMAGE_NAME=opencord/mavenrepo |
| 4 | PACKAGE_TAG=candidate |
| 5 | |
| 6 | .PHONY: all |
| 7 | all: images |
| 8 | |
| 9 | .PHONY: images |
| 10 | images: |
| 11 | docker build -f Dockerfile.make -t $(IMAGE_NAME):$(PACKAGE_TAG) $(ROOT_DIR) |
| 12 | |
| 13 | .PHONY: clean |
| 14 | clean: |
| 15 | docker rmi opencord/mavenrepo:$(PACKAGE_TAG) | true |
| 16 | |
| 17 | .PHONY: test |
| 18 | test: |
| 19 | @echo "No unit tests at present" |
| 20 | |
| 21 | .PHONY: help |
| 22 | help: |
| 23 | @echo "Available targets:" |
| 24 | @echo " images: build the Docker image (Maven repo with the CORD ONOS apps)" |
| 25 | @echo " clean: remove the Docker image" |
| 26 | @echo " test: run unit tests" |
| 27 | @echo " help: print this help message" |
| 28 | |