forked from SUSE/telemetry-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.compose
29 lines (20 loc) · 854 Bytes
/
Makefile.compose
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
# docker compose actions
PG_DOCKER_VOLUME = docker_pgdata
.PHONY: compose-build compose-start compose-up compose-ps compose-status compose-logs compose-stop compose-down compse-clean
# Start the telemetry-server using docker compose
compose-build: vet
cd docker && docker compose build --build-arg telemetryRepoBranch=$(TELEMETRY_REPO_BRANCH)
compose-start compose-up: compose-build
cd docker && docker compose up -d
compose-ps compose-status:
cd docker && docker compose ps
compose-logs:
cd docker && docker compose logs --tail 100
compose-stop compose-down: compose-status
cd docker && docker compose down
compose-clean: compose-stop docker-clean
@if docker volume inspect $(PG_DOCKER_VOLUME) >/dev/null 2>&1; then \
echo removing docker volume $(PG_DOCKER_VOLUME); \
docker volume rm $(PG_DOCKER_VOLUME); \
fi
clean: compose-clean