mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Merge pull request #352 from prometheus/feature/dockerify
Feature/dockerify
This commit is contained in:
commit
d5f7eeef13
|
@ -26,4 +26,4 @@ if [[ "${platform}" == "darwin" ]]; then
|
||||||
export DYLD_LIBRARY_PATH="${binary_directory}/lib:${DYLD_LIBRARY_PATH}"
|
export DYLD_LIBRARY_PATH="${binary_directory}/lib:${DYLD_LIBRARY_PATH}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"${binary_directory}/prometheus" "${@}" &
|
exec "${binary_directory}/prometheus" "${@}"
|
||||||
|
|
7
Dockerfile
Normal file
7
Dockerfile
Normal 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/run_prometheus.sh"]
|
||||||
|
ADD .build/package/ /opt/prometheus
|
3
Makefile
3
Makefile
|
@ -31,6 +31,9 @@ build: config dependencies model preparation tools web
|
||||||
cp prometheus $(BUILD_PATH)/package/prometheus
|
cp prometheus $(BUILD_PATH)/package/prometheus
|
||||||
rsync -av --delete $(BUILD_PATH)/root/lib/ $(BUILD_PATH)/package/lib/
|
rsync -av --delete $(BUILD_PATH)/root/lib/ $(BUILD_PATH)/package/lib/
|
||||||
|
|
||||||
|
docker: build
|
||||||
|
docker build -t prometheus:$(REV) .
|
||||||
|
|
||||||
$(BUILD_PATH)/cache/$(GOPKG):
|
$(BUILD_PATH)/cache/$(GOPKG):
|
||||||
curl -o $@ http://go.googlecode.com/files/$(GOPKG)
|
curl -o $@ http://go.googlecode.com/files/$(GOPKG)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue