Skip to content

Commit

Permalink
Add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MacroPower committed Jul 30, 2020
1 parent d2c50ee commit bd05055
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ARG ARCH="amd64"
ARG OS="linux"
FROM quay.io/prometheus/busybox:latest
LABEL maintainer="Jacob Colvin (MacroPower) <me@jacobcolvin.com>"

ARG ARCH="amd64"
ARG OS="linux"
COPY .build/${OS}-${ARCH}/wakatime_exporter /bin/wakatime_exporter

USER nobody
ENTRYPOINT ["/bin/wakatime_exporter"]
EXPOSE 9212
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Prometheus exporter for Wakatime statistics.

You can get your Wakatime API key by visiting https://wakatime.com/api-key

## Usage

```text
usage: wakatime_exporter --wakatime.api-key=WAKATIME.API-KEY [<flags>]
Expand All @@ -25,3 +27,9 @@ Flags:
--version Show application version.
```

## Docker

```shell
docker run -p 9212:9212 macropower/wakatime-exporter:0.0.1 --wakatime.api-key="YOUR_API_KEY"
```

0 comments on commit bd05055

Please sign in to comment.