Skip to content

Commit

Permalink
Init gitpod configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed Oct 4, 2022
1 parent 43a6c86 commit 91bef38
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
14 changes: 14 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
# and commit this file to your remote git repository to share the goodness with others.

tasks:
- name: Starting Grafana and Prometheus
command: make up

- name: Running tests
command: make tests

ports:
- port: 3000
onOpen: open-preview
18 changes: 12 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ up:
-p 9090:9090 \
-v $(shell pwd)/testdata/prometheus.yml:/etc/prometheus/prometheus.yml \
prom/prometheus
docker run -d \
-p 3000:3000 \
--name=grabana_grafana \
-e "GF_SECURITY_ADMIN_PASSWORD=secret" \
grafana/grafana:8.3.2

.PHONY: up-all
up-all: up
docker run -d\
--name grabana_graphite\
--restart=always\
Expand All @@ -41,18 +49,16 @@ up:
-e DOCKER_INFLUXDB_INIT_RETENTION=1w \
-e DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=my-super-secret-auth-token \
influxdb:2.0
docker run -d \
-p 3000:3000 \
--name=grabana_grafana \
-e "GF_SECURITY_ADMIN_PASSWORD=secret" \
grafana/grafana:8.3.2

.PHONY: down
down:
docker rm -f grabana_grafana
docker rm -f grabana_prometheus

.PHONY: down-all
down-all: down
docker rm -f grabana_graphite
docker rm -f grabana_influxdb
docker rm -f grabana_prometheus

install_goreleaser:
go install github.com/goreleaser/goreleaser@latest

0 comments on commit 91bef38

Please sign in to comment.