forked from arloor/rust_http_proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
19 lines (17 loc) · 755 Bytes
/
deploy.sh
File metadata and controls
19 lines (17 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cargo build -r --features aws_lc_rs,bpf,mimalloc --no-default-features
podman build . -f Dockerfile.dyn -t quay.io/arloor/rust_http_proxy:custom --network host --build-arg TARGET_PATH=
podman login quay.io
podman push quay.io/arloor/rust_http_proxy:custom
kubectl rollout restart ds/proxy
kubectl rollout status ds/proxy
#! /bin/bash
hosts="ttl.arloor.com wee.arloor.dev hknat.arloor.dev ix.arloor.com us.arloor.dev bwg.arloor.dev hk.arloor.dev xq.arloor.com ti.arloor.com"
for i in ${hosts}; do
ssh -o StrictHostKeyChecking=no root@${i} <<'EOFEOF'
. pass
hostname;
systemctl restart proxy;
podman rmi -a 2>/dev/null
podman images --digests |grep arloor/rust_http_proxy|awk "{print \$4\" \"\$3}";
EOFEOF
done