Skip to content

Commit bd69482

Browse files
Add .gitpod (thanos-io#3499)
Signed-off-by: Adam Domagalski <[email protected]>
1 parent 1970b17 commit bd69482

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.gitpod.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
tasks:
2+
- init: >
3+
test -f go.mod && go get -v ./...;
4+
wget https://github.com/prometheus/prometheus/releases/download/v2.22.2/prometheus-2.22.2.linux-amd64.tar.gz --directory-prefix=/tmp;
5+
cd /tmp && tar xvfz prometheus-*.tar.gz && rm prometheus-*.tar.gz;
6+
mv prometheus-*/prometheus /workspace/go/bin/;
7+
wget https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh && chmod u+x ./wait-for-it.sh && cd /workspace/thanos/scripts && mv /tmp/wait-for-it.sh .;
8+
./quickstart.sh;
9+
for i in {0..2};do ./wait-for-it.sh -q localhost:909"$i" -- && echo "Prometheus instance no.$((i+1)) localhost:909$i is up"; done;
10+
./wait-for-it.sh localhost:10914 -- && echo "Thanos frontend at localhost:10914 is up";
11+
ports:
12+
- port: 10914
13+
onOpen: open-preview

CONTRIBUTING.md

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ component of the Thanos distributed system. We recommend:
8484
* Familiarizing yourself with our [coding style guidelines.](docs/contributing/coding-style-guide.md).
8585
* Familiarizing yourself with the [Makefile](Makefile) commands, for example `format`, `build`, `proto`, `docker` and `test`.
8686
`make help` will print most of available commands with details.
87+
* Spin up a prebuilt dev environment using Gitpod.io
88+
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/thanos-io/thanos)
8789

8890
### Pull Request Process
8991

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
[![go](https://github.com/thanos-io/thanos/workflows/go/badge.svg)](https://github.com/thanos-io/thanos/actions?query=workflow%3Ago)
1313
[![react](https://github.com/thanos-io/thanos/workflows/react/badge.svg)](https://github.com/thanos-io/thanos/actions?query=workflow%3Areact)
1414
[![docs](https://github.com/thanos-io/thanos/workflows/docs/badge.svg)](https://github.com/thanos-io/thanos/actions?query=workflow%3Adocs)
15+
[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/thanos-io/thanos)
1516

1617
## Overview
1718

0 commit comments

Comments
 (0)