-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
73 lines (54 loc) · 1.56 KB
/
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
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
SHELL := /bin/bash
old_all: start_service prevision_services prevision_context print_grafana_url print_kiali_url
all:
sh create_services.sh
cli_shortcut:
cp cli_shortcuts/.aws-a ~/
cp cli_shortcuts/.aws-off ~/
cp cli_shortcuts/.ec2.mak ~/
source ~/.aws-a
cluster_permissions:
chmod go-rwx cluster
chmod go-rwx cluster/*
chmod a+rwx eks.mak
chmod a+rwx k8s.mak
start_service:
make -f eks.mak start
set_kubectl_context:
make -f k8s.mak provision kubectl config set-context --current --namespace=c756ns
prevision_services:
make -f k8s.mak provision
prevision_context:
kubectl config set-context --current --namespace=c756ns
print_grafana_url:
make -f k8s.mak grafana-url
print_kiali_url:
make -f k8s.mak kiali-url
initialize_istio:
echo "$HOME"
#export PATH=$(HOME)/istio-1.13.2/bin/:$(PATH)
generate_templates:
make -f k8s-tpl.mak templates
create_gatling_music:
vim -> #!/usr/bin/env bash docker container run --detach --rm
-v ${PWD}/gatling/results:/opt/gatling/results
-v ${PWD}/gatling:/opt/gatling/user-files
-v ${PWD}/gatling/target:/opt/gatling/target
-e CLUSTER_IP=tools/getip.sh kubectl istio-system svc/istio-ingressgateway
-e USERS=1
-e SIM_NAME=ReadMusicSim
--label gatling
ghcr.io/scp-2021-jan-cmpt-756/gatling:3.4.2
-s proj756.ReadMusicSim
change_gatling_music_permissions:
chmod u+x gatling-1-music.sh
install_kubctl:
sh install_dependencies k8s
install_eks_ctl:
sh install_dependencies eks
install_istio:
sh install_dependencies istio
install_helm:
sh install_dependencies helm
install_dependencies:
sh install_dependencies.sh