From 605371c5bb4537d9321592b8f358c988d1797c74 Mon Sep 17 00:00:00 2001 From: Sven Efftinge Date: Fri, 14 Aug 2020 17:23:55 +0200 Subject: [PATCH] Gitpod config (#7749) Signed-off-by: Sven Efftinge --- .gitpod.yml | 18 ++++++++++++++++++ CONTRIBUTING.md | 2 ++ README.md | 1 + 3 files changed, 21 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 000000000..8585b4a25 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,18 @@ +tasks: + - init: + make build + command: | + gp sync-done build + ./prometheus --config.file=documentation/examples/prometheus.yml + - command: | + cd web/ui/react-app + gp sync-await build + unset BROWSER + export DANGEROUSLY_DISABLE_HOST_CHECK=true + yarn start + openMode: split-right +ports: + - port: 3000 + onOpen: open-preview + - port: 9090 + onOpen: ignore diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 413132ce9..2691af055 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,6 +28,8 @@ Should you wish to work on an issue, please claim it first by commenting on the Please check the [`low-hanging-fruit`](https://github.com/prometheus/prometheus/issues?q=is%3Aissue+is%3Aopen+label%3A%22low+hanging+fruit%22) label to find issues that are good for getting started. If you have questions about one of the issues, with or without the tag, please comment on them and one of the maintainers will clarify it. For a quicker response, contact us over [IRC](https://prometheus.io/community). +You can [spin up a prebuilt dev environment](https://gitpod.io/#https://github.com/prometheus/prometheus) using Gitpod.io. + For complete instructions on how to compile see: [Building From Source](https://github.com/prometheus/prometheus#building-from-source) For quickly compiling and testing your changes do: diff --git a/README.md b/README.md index 0149d8e93..202af303a 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [![Go Report Card](https://goreportcard.com/badge/github.com/prometheus/prometheus)](https://goreportcard.com/report/github.com/prometheus/prometheus) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/486/badge)](https://bestpractices.coreinfrastructure.org/projects/486) [![fuzzit](https://app.fuzzit.dev/badge?org_id=prometheus&branch=master)](https://fuzzit.dev) +[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/prometheus/prometheus) Visit [prometheus.io](https://prometheus.io) for the full documentation, examples and guides.