CORD-1395 Build ONOS apps without Gradle
Change-Id: I0d239da5c1c9f1f09baa1293940139664120e729
diff --git a/Dockerfile.make b/Dockerfile.make
new file mode 100644
index 0000000..a19b330
--- /dev/null
+++ b/Dockerfile.make
@@ -0,0 +1,18 @@
+FROM maven:3-jdk-8 as maven
+MAINTAINER Andy Bavier <andy@opennetworking.org>
+
+COPY . /usr/src/mymaven
+WORKDIR /usr/src/mymaven/apps
+RUN mvn clean install -U
+
+FROM nginx
+MAINTAINER Andy Bavier <andy@opennetworking.org>
+
+COPY --from=maven /usr/src/mymaven/repository /usr/share/nginx/html/repository
+RUN chown nginx:nginx -R /usr/share/nginx/html/repository
+
+LABEL org.label-schema.name="opencord/mavenrepo" \
+ org.label-schema.description="Maven repo with the CORD ONOS apps" \
+ org.label-schema.vcs-url="https://gerrit.opencord.org/onos-apps" \
+ org.label-schema.vendor="Open Networking Laboratory" \
+ org.label-schema.schema-version="1.0"
\ No newline at end of file
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..606a6d7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
+
+IMAGE_NAME=opencord/mavenrepo
+PACKAGE_TAG=candidate
+
+.PHONY: all
+all: images
+
+.PHONY: images
+images:
+ docker build -f Dockerfile.make -t $(IMAGE_NAME):$(PACKAGE_TAG) $(ROOT_DIR)
+
+.PHONY: clean
+clean:
+ docker rmi opencord/mavenrepo:$(PACKAGE_TAG) | true
+
+.PHONY: test
+test:
+ @echo "No unit tests at present"
+
+.PHONY: help
+help:
+ @echo "Available targets:"
+ @echo " images: build the Docker image (Maven repo with the CORD ONOS apps)"
+ @echo " clean: remove the Docker image"
+ @echo " test: run unit tests"
+ @echo " help: print this help message"
+