Merge pull request #366 from prometheus/matthiasr/gitpod-setup

Add configuration for Gitpod
This commit is contained in:
Matthias Rampke 2021-03-26 10:02:24 +01:00 committed by GitHub
commit 84e68332f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 0 deletions

6
.gitpod.Dockerfile vendored Normal file
View file

@ -0,0 +1,6 @@
FROM gitpod/workspace-full
RUN sudo apt-get update && \
sudo apt-get install -y netcat-traditional socat && \
sudo apt-get clean && \
sudo rm -rf /var/lib/apt/lists/*

13
.gitpod.yml Normal file
View file

@ -0,0 +1,13 @@
tasks:
- init: go get
command: go build . && ./statsd_exporter
- command: printf 'Try:\n\n\techo "test.gauge:42|g" | socat - TCP:127.0.0.1:9125\n\n'
ports:
- port: 9102
onOpen: open-preview
- port: 9125
onOpen: ignore
image:
file: .gitpod.Dockerfile

View file

@ -16,3 +16,5 @@ Prometheus uses GitHub to manage reviews of pull requests.
and the _Formatting and style_ section of Peter Bourgon's [Go: Best
Practices for Production
Environments](http://peter.bourgon.org/go-in-production/#formatting-and-style).
* [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/prometheus/statsd_exporter)