Skip to content

Commit

Permalink
Merge pull request #49 from tomas-balaz/master
Browse files Browse the repository at this point in the history
Change container registry from dockerhub to github container registry
  • Loading branch information
martinhaus authored Nov 11, 2021
2 parents 22fb00d + 6b8ed79 commit b706560
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,36 +102,36 @@ helm install cloudflare-exporter/cloudflare-exporter

## Docker
### Build
Images are available at [Dockerhub](https://hub.docker.com/r/lablabs/cloudflare_exporter)
Images are available at [Github Container Registry](https://github.com/lablabs/cloudflare-exporter/pkgs/container/cloudflare_exporter)

```
docker build -t lablabs/cloudflare_exporter .
docker build -t ghcr.io/lablabs/cloudflare_exporter .
```

### Run
Authenticating with email + API key:
```
docker run --rm -p 8080:8080 -e CF_API_KEY=${CF_API_KEY} -e CF_API_EMAIL=${CF_API_EMAIL} lablabs/cloudflare_exporter
docker run --rm -p 8080:8080 -e CF_API_KEY=${CF_API_KEY} -e CF_API_EMAIL=${CF_API_EMAIL} ghcr.io/lablabs/cloudflare_exporter
```

API token:
```
docker run --rm -p 8080:8080 -e CF_API_TOKEN=${CF_API_TOKEN} lablabs/cloudflare_exporter
docker run --rm -p 8080:8080 -e CF_API_TOKEN=${CF_API_TOKEN} ghcr.io/lablabs/cloudflare_exporter
```

Configure zones and listening port:
```
docker run --rm -p 8080:8081 -e CF_API_TOKEN=${CF_API_TOKEN} -e CF_ZONES=zoneid1,zoneid2,zoneid3 -e LISTEN=:8081 lablabs/cloudflare_exporter
docker run --rm -p 8080:8081 -e CF_API_TOKEN=${CF_API_TOKEN} -e CF_ZONES=zoneid1,zoneid2,zoneid3 -e LISTEN=:8081 ghcr.io/lablabs/cloudflare_exporter
```

Disable non-free metrics:
```
docker run --rm -p 8080:8080 -e CF_API_TOKEN=${CF_API_TOKEN} -e FREE_TIER=true lablabs/cloudflare_exporter
docker run --rm -p 8080:8080 -e CF_API_TOKEN=${CF_API_TOKEN} -e FREE_TIER=true ghcr.io/lablabs/cloudflare_exporter
```

Access help:
```
docker run --rm -p 8080:8080 -i lablabs/cloudflare_exporter --help
docker run --rm -p 8080:8080 -i ghcr.io/lablabs/cloudflare_exporter --help
```

## Contributing and reporting issues
Expand Down
2 changes: 1 addition & 1 deletion charts/cloudflare-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: cloudflare-exporter
version: 0.1.7
version: 0.1.8
appVersion: 0.0.9
home: https://github.com/lablabs/cloudflare-exporter
description: A Helm chart for cloudflare exporter
Expand Down
2 changes: 1 addition & 1 deletion charts/cloudflare-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The following table lists the configurable parameters of the Cloudflare-exporter
| Parameter | Description | Default |
| ------------------------ | ----------------------- | -------------- |
| `replicaCount` | | `1` |
| `image.repository` | | `"lablabs/cloudflare_exporter"` |
| `image.repository` | | `"ghcr.io/lablabs/cloudflare_exporter"` |
| `image.pullPolicy` | | `"Always"` |
| `image.tag` | | `"0.0.2"` |
| `env` | | `[]` |
Expand Down
2 changes: 1 addition & 1 deletion charts/cloudflare-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
replicaCount: 1

image:
repository: lablabs/cloudflare_exporter
repository: ghcr.io/lablabs/cloudflare_exporter
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
# tag: latest
Expand Down

0 comments on commit b706560

Please sign in to comment.