Added basic Dockerfile support & documentation
authorJoshua Barratt <jbarratt@serialized.net>
Wed, 21 Oct 2015 22:09:06 +0000 (15:09 -0700)
committerJoshua Barratt <jbarratt@serialized.net>
Wed, 21 Oct 2015 22:09:06 +0000 (15:09 -0700)
Dockerfile [new file with mode: 0644]
README.md

diff --git a/Dockerfile b/Dockerfile
new file mode 100644 (file)
index 0000000..9fefe89
--- /dev/null
@@ -0,0 +1,4 @@
+FROM        sdurrheimer/alpine-golang-make-onbuild
+MAINTAINER  The Prometheus Authors <prometheus-developers@googlegroups.com>
+
+EXPOSE      9115
index 71b147535f80f35487e8d00eb123c374b2d7937e..7289a418ca298a24092e0eaef297b1fab385fe36 100644 (file)
--- a/README.md
+++ b/README.md
@@ -5,12 +5,19 @@ HTTP, HTTPS and TCP.
 
 ## Building and running
 
+### Local Build
+
     make
     ./blackbox_exporter <flags>
 
 Visiting [http://localhost:9115/probe?target=google.com&module=http_2xx](http://localhost:9115/probe?target=google.com&module=http_2xx)
 will return metrics for a HTTP probe against google.com.
 
+### Building with Docker
+
+    docker build -t blackbox_exporter .
+    docker run -d -p 9115:9115 --name blackbox_exporter -v `pwd`:/config blackbox_exporter -config.file=/config/blackbox.yml
+
 ## Configuration
 
 A configuration showing all options is below: