forked from x1unix/go-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
53 lines (42 loc) · 1.24 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
# Makefile used for automatically generating kubernetes manifests...
# Set the k3s kubeconfig file (it should be the server-side kubeconfig!)
KUBECONFIG=/etc/rancher/k3s/k3s.yaml
NAMESPACE=gleam-playground
XNAMESPACES=openfaas-fn
# Set the output directory for all generated manifests
OUTPUT_DIR=manifests
ROOT_DIR=settings
# Set service settings files
GLEAM_PLAYGROUND_SETTINGS=$(ROOT_DIR)/gleam-playground-settings.conf
manifests-gleam-playground:
python k8smanifests.py \
--config_file $(GLEAM_PLAYGROUND_SETTINGS) \
--service_name gleam-playground \
--kubeconfig $(KUBECONFIG) \
--output_dir $(OUTPUT_DIR) \
--namespace $(NAMESPACE) \
--xnamespaces $(XNAMESPACES)
manifests-redis:
python k8smanifests.py \
--config_file $(GLEAM_PLAYGROUND_SETTINGS) \
--service_name redis \
--kubeconfig $(KUBECONFIG) \
--output_dir $(OUTPUT_DIR) \
--namespace $(NAMESPACE)
all-manifests: manifests-gleam-playground manifests-redis
apply-manifests:
sudo k3s kubectl apply -f $(manifests)/.
build-frontend:
python build.py \
--user nicklasxyz \
--version latest \
--settings settings \
--service frontend \
--action build
push-frontend:
python build.py \
--user nicklasxyz \
--version latest \
--settings settings \
--service frontend \
--action push