From 1c9ae08e8041ba29161f8b89c229a4a8a9687125 Mon Sep 17 00:00:00 2001 From: Johannes 'fish' Ziemke Date: Mon, 5 Aug 2013 14:40:24 +0200 Subject: [PATCH] Add Dockerfile --- Dockerfile | 7 +++++++ Makefile | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..4ad910cae --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +# Cannot use busybox image since Prometheus depends on libc. +FROM base + +MAINTAINER Prometheus Team +EXPOSE 9090 +ENTRYPOINT ["/opt/prometheus"] +ADD .build/package/ /opt/prometheus diff --git a/Makefile b/Makefile index efab12315..fbb51d634 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,9 @@ build: config dependencies model preparation tools web cp prometheus $(BUILD_PATH)/package/prometheus rsync -av --delete $(BUILD_PATH)/root/lib/ $(BUILD_PATH)/package/lib/ +docker: build + docker build -t prometheus:$(REV) . + $(BUILD_PATH)/cache/$(GOPKG): curl -o $@ http://go.googlecode.com/files/$(GOPKG)