Skip to content

Commit

Permalink
fix: use and pin alpine in Containerfile, add compose.yaml (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime1907 authored Sep 23, 2024
1 parent ee235e1 commit 85c787e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ COPY . .

RUN make ovh-exporter && mv ovh-exporter /usr/bin/

FROM busybox:stable AS runtime
FROM alpine:3.20.3 AS runtime

COPY --from=build /usr/bin/ovh-exporter /usr/bin/ovh-exporter

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ export SERVER_PORT="8080"

# Running

## Binary
```bash
ovh-exporter serve
```

## Compose file
```bash
nerdctl compose up
```
16 changes: 16 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
ovh-exporter:
image: ghcr.io/wiremind/ovh-exporter
build:
context: .
container_name: ovh-exporter
ports:
- "8080:8080"
environment:
OVH_ENDPOINT: "ovh-eu"
OVH_APP_KEY: ""
OVH_APP_SECRET: ""
OVH_CONSUMER_KEY: ""
OVH_CLOUD_PROJECT_INSTANCE_BILLING_PROJECT_ID: ""
OVH_CACHE_UPDATE_INTERVAL: "60"
SERVER_PORT: "8080"

0 comments on commit 85c787e

Please sign in to comment.