Add Dockerfile

This commit is contained in:
Johannes 'fish' Ziemke 2013-08-05 14:40:24 +02:00
parent 974eacf36f
commit 1c9ae08e80
2 changed files with 10 additions and 0 deletions

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
# Cannot use busybox image since Prometheus depends on libc.
FROM base
MAINTAINER Prometheus Team <prometheus-developers@googlegroups.com>
EXPOSE 9090
ENTRYPOINT ["/opt/prometheus"]
ADD .build/package/ /opt/prometheus

View File

@ -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)