-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
77 lines (55 loc) · 1.98 KB
/
Makefile
File metadata and controls
77 lines (55 loc) · 1.98 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
DOCKER_COMPOSE_COMMAND = docker compose #--verbose
build:
@${DOCKER_COMPOSE_COMMAND} build
compose-down:
@${DOCKER_COMPOSE_COMMAND} down --remove-orphans
shell: build
@${DOCKER_COMPOSE_COMMAND} run --rm flaky-test-lab bash
up: build
./scripts/init_projects.sh -p ${project}
@${DOCKER_COMPOSE_COMMAND} run --rm flaky-test-lab ./scripts/run.sh ${project}
up_debug: build
./scripts/init_projects.sh -p ${project}
@${DOCKER_COMPOSE_COMMAND} run --rm flaky-test-lab ./scripts/run.sh ${project} debug
up-no-deps: build
@${DOCKER_COMPOSE_COMMAND} run --rm flaky-test-lab flaky-test-lab up ${project} --no-dependencies --verbose
down: build
@${DOCKER_COMPOSE_COMMAND} run --rm flaky-test-lab ./scripts/down.sh ${project}
init-projects-all:
./scripts/init_projects.sh -f
# Usage: make init-projects project=PROJECT
init-projects:
./scripts/init_projects.sh -p ${project}
init-databases:
./scripts/init_databases.sh
kubectl-install:
./scripts/kubectl_install.sh
kind-install:
./scripts/kind_install.sh
docker-install:
@curl -sSL https://get.docker.com/ | sh
@getent group docker > /dev/null || groupadd docker
@sudo usermod -aG docker $$USER
@sudo chown root:docker /var/run/docker.sock
# user: Admin; Password: 123
# To Erase all data, remove all content from ./k8s/container-fs
# To uninstall: kubectl delete -f utils/postgres/postgres.yaml
grafana-stack-install:
@${DOCKER_COMPOSE_COMMAND} run --rm flaky-test-lab ./scripts/grafana_stack_install.sh
# Run as SUDO
install-deps:
@sudo mkdir -p projects project-outputs
@sudo apt update
@sudo snap install yq --channel=v4/stable
setup: install-deps docker-install kubectl-install kind-install cluster_up grafana-stack-install init-databases
run-cluster:
./scripts/cluster_up.sh
cluster_up: install-deps build run-cluster init-databases grafana-stack-install
cluster_down: compose-down
./scripts/cluster_down.sh
pods:
kubectl get pods --all-namespaces
jobs:
kubectl get jobs --all-namespaces
clean_outputs:
sudo rm -rf ./project-outputs/*