-
Notifications
You must be signed in to change notification settings - Fork 136
/
Copy pathMakefile
29 lines (19 loc) · 877 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Host Makefile.
include Makefile.include
env-up: ## Start devcontainer.
docker-compose up -d
env-up-rebuild: env-update-image ## Start devcontainer with rebuild.
docker-compose up --build -d
env-update-image: ## Pull latest dev image
docker pull "perconalab/pmm-server:dev-latest"
env-compose-up: env-update-image
docker-compose up --detach --renew-anon-volumes --remove-orphans
env-devcontainer:
docker exec -it --workdir=/root/go/src/github.com/percona/pmm pmm-managed-server .devcontainer/setup.py
env-down: ## Stop devcontainer.
docker-compose down --remove-orphans
env-remove:
docker-compose down --volumes --remove-orphans
TARGET ?= _bash
env: ## Run `make TARGET` in devcontainer (`make env TARGET=help`); TARGET defaults to bash.
docker exec -it --workdir=/root/go/src/github.com/percona/pmm pmm-managed-server make $(TARGET)