-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·188 lines (148 loc) · 4.72 KB
/
Makefile
File metadata and controls
executable file
·188 lines (148 loc) · 4.72 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
.PHONY: run local atlantic auth inventory orders skitty overtools cosmog temporal
run:
@VITE_DOMAIN=$(VITE_DOMAIN) ./run.sh \
ATLANTIC "echo Welcome to Atlantic ~> \$$VITE_DOMAIN" \
web "open -a 'Google chrome' \$$VITE_DOMAIN" \
temporal "make temporal" \
minio "make minio" \
nats "make nats" \
meilisearch "make meilisearch" \
skitty "make skitty" \
auth "make auth" \
orders "make orders" \
inventory "make inventory" \
cosmog "make cosmog" \
caddy "make caddy"
local:
@VITE_DOMAIN=http://localhost make run
atlantic:
@VITE_DOMAIN=http://atlantic.shark.run make run
atlantic:
@make local VITE_DOMAIN=atlantic.shark.run
tunnel:
cloudflared tunnel --url 127.0.0.1:80/ --hostname atlantic.shark.run --name atlantic
tunnellist:
cloudflared tunnel list
caddy:
caddy fmt --overwrite config/caddy/Caddyfile
caddy run --config config/caddy/Caddyfile
minio:
MINIO_ROOT_USER=admin MINIO_ROOT_PASSWORD=password minio server --address :9000 --console-address :9001 executables/minio
meilisearch:
meilisearch --config-file-path="./config/meilisearch/config.toml"
nats:
nats-server -c config/nats/js.conf
temporal:
temporal server start-dev
kompose:
rm -f k8s/gen/*
docker compose -f docker-compose.gen.yaml --env-file var.docker --profile docker config > docker-compose.yaml
docker compose -f docker-compose.gen.yaml --env-file var.k8s config > docker-compose.k8s.yaml
kompose convert -v --with-kompose-annotation=false -f docker-compose.k8s.yaml -n atlantic -o k8s/gen
dcbuild:
docker compose build --no-cache
dcup:
make kompose
docker compose --profile docker up
img:
docker build -f Dockerfile.$(img) -t $(img) .
overtools:
make img img=overtools
docker rm overtools || true
docker run -it --name overtools --network atlantic overtools
auth:
go run auth/cmd/main.go
authbuild:
make img img=auth
authrun:
docker run -p 7777:7777 --name auth auth
inventory:
go run inventory/cmd/main.go
inventorybuild:
make img img=inventory
inventoryrun:
docker run -p 9100:9100 --name inventory inventory
orders:
go run orders/cmd/main.go
ordersbuild:
make img img=orders
ordersrun:
docker run -p 4400:4400 --name orders orders
cosmog:
go run cosmog/cmd/main.go
cosmogbuild:
make img img=cosmog
cosmogrun:
docker run -p 7800:7800 --name cosmog cosmog
skitty:
cd skitty && bun run dev
goskitty:
cd skitty && bun run kbuild && go run main.go
skittybuild:
docker build --build-arg VITE_DOMAIN="http://example.com" -f Dockerfile.skitty -t skitty .
skittyrun:
docker rm skitty || true
docker run -p 3000:3000 --name skitty skitty
koskitty:
# KO_DATA_PATH=. KO_DEFAULTPLATFORMS=linux/arm64 KO_DOCKER_REPO=ttl.sh/skitty ko build skitty/main.go
# KO_DATA_PATH=. KO_DEFAULTPLATFORMS=linux/arm64 KO_DOCKER_REPO=ko.local/skitty ko build skitty/main.go
# docker run -p 3000:3000 --name skitty $(image)
clear:
docker system prune
gateway:
kubectl get gatewayclass -A --show-labels=true --show-kind=true
kubectl get gateway -A --show-labels=true --show-kind=true
kubectl get httproute -A --show-labels=true --show-kind=true
ka:
kubectl get all -A
crds:
kubectl get crds
kver:
kubectl api-versions
configview:
kubectl config view
clusterinfo:
kubectl cluster-info
kurl:
kubectl run -i --tty --rm curl-test --image=curlimages/curl --restart=Never -- sh
durl:
docker run -it --rm curlimages/curl sh
call:
curl -s \
--resolve atlantic.shark.run:443:172.18.255.202 \
http://atlantic.shark.run/
curl -s \
--resolve atlantic.shark.run:443:172.18.255.202 \
https://atlantic.shark.run/
curl --resolve www.example.com:80:0.0.0.0 http://www.example.com/
curl --resolve cow.example.com:5678:0.0.0.0 http://cow.example.com/cow
curl cow.example.com/cow
curl www.example.com
curl --insecure https://cow.example.com/cow
bcrypt:
@htpasswd -nbBC 10 "" $(PWD) | tr -d ':\n' | sed 's/$2y/$2a/'
argopassword:
@make bcrypt PWD=password
argoforward:
@kubectl port-forward service/argo-argocd-server -n argocd 5000:80
headlamp:
@kubectl create token headlamp-admin -n kube-system
overtoolsexec:
@kubectl exec -it deployment.apps/overtools -n atlantic -- sh
dev:
make kompose
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.15.3/cert-manager.yaml
kubectl apply --server-side -f https://github.com/envoyproxy/gateway/releases/download/v1.1.1/install.yaml
skaffold dev
skaffoldbuild:
skaffold build --file-output artifacts.json
skaffoldbuildrepo:
skaffold build --file-output artifacts.json --default-repo $(repo)
skaffolddeploy:
skaffold deploy -a artifacts.json
skaffolddeploydev:
skaffold deploy -a artifacts.json -p dev --kube-context=dev-cluster
skaffoldrender:
skaffold render -a artifacts.json --output render.yaml
skaffoldapply:
skaffold apply render.yaml