Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1018 Bytes

DEVELOPMENT.PERCONA.md

File metadata and controls

53 lines (36 loc) · 1018 Bytes

Into

This guide is a step-by-step instruction that helps you with local development environment.

Setup

Follow these steps:

1: run docker images with PMM and MySQL (in foreground mode):

docker-compose up

Alternatively, you can run devcontainer in background, in this case you can reuse terminal session:

docker-compose up -d

2: in separate terminal:

make deps-js # run this only after initial clone, it installs dependencies
yarn start

3: make modification in the frondend ./public/app, once recompilation has finished refresh page with grafana

Updating grafana-server

After devcontainer is running. Enter container:

docker exec -it pmm-server bash

Navigate to mounted sources:

cd /workspace

Compile binaries

make build-go
rm -f /usr/sbin/grafana-server
rm -f /usr/sbin/grafana
cp ./bin/linux-amd64/grafana-server /usr/sbin/grafana-server
cp ./bin/linux-amd64/grafana /usr/sbin/grafana
supervisorctl restart grafana