Skip to content

Commit

Permalink
Add Docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjqiu committed Aug 7, 2018
1 parent e335f05 commit 0308c52
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM alpine:3.4
ADD ./promcli /promcli
ENTRYPOINT /promcli
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ deps:

proxy:
@ln -s $$(pwd)/_proxy/proxy.go $$(pwd)/vendor/github.com/prometheus/prometheus/promql/proxy.go 2>/dev/null || true

docker:
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo .
docker build -t kevinjqiu/promcli .
docker push kevinjqiu/promcli
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ Demo

![Demo](demo/demo.svg)

Try it
======

Easiest way to try it is with [docker](https://docker.io):

docker run -it kevinjqiu/promcli

Install
=======

Expand Down

0 comments on commit 0308c52

Please sign in to comment.