Starting point for ODL Integration
[genesis.git] / fuel / build / docker / Makefile
diff --git a/fuel/build/docker/Makefile b/fuel/build/docker/Makefile
new file mode 100644 (file)
index 0000000..c2853c8
--- /dev/null
@@ -0,0 +1,23 @@
+##############################################################################
+# Copyright (c) 2015 Ericsson AB and others.
+# stefan.k.berg@ericsson.com
+# jonas.bjurel@ericsson.com
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+FILES = $(wildcard ubuntu-builder/*) runcontext
+
+.PHONY: all
+all:   .docker
+
+.docker: $(FILES)
+       /usr/bin/docker build --rm=true --no-cache=true -t opnfv.org/ubuntu-builder:14.04 ubuntu-builder
+       /usr/bin/docker tag -f opnfv.org/ubuntu-builder:14.04 opnfv.org/ubuntu-builder
+       touch .docker
+
+.PHONY:        clean
+clean:
+       rm .docker