-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
executable file
·67 lines (54 loc) · 1.65 KB
/
install.sh
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
#!/bin/bash
# Install Argo Workflows CLI
echo "Installing..."
mv setup-local.py setup.py
kubectl create namespace paradigm
kubectl create namespace argo
kubectl apply -f rbac.yaml
kubectl apply -n argo -f https://github.com/argoproj/argo-workflows/releases/download/v3.4.7/install.yaml
kubectl patch deployment \
argo-server \
--namespace argo \
--type='json' \
-p='[{"op": "replace", "path": "/spec/template/spec/containers/0/args", "value": [
"server",
"--auth-mode=server"
]}]'
# kubectl -n paradigm port-forward deployment/argo-server 2746:2746
# Detect the running operating system
os_name="$(uname)"
# Execute commands according to the detected OS
case "${os_name}" in
Darwin) # MacOS
echo "Detected MacOS"
# Download the binary
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/v3.4.7/argo-darwin-amd64.gz
# Unzip
gunzip argo-darwin-amd64.gz
# Make binary executable
chmod +x argo-darwin-amd64
# Move binary to path
mv ./argo-darwin-amd64 /usr/local/bin/argo
;;
Linux)
echo "Detected Linux"
# Download the binary
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/v3.4.7/argo-linux-amd64.gz
# Unzip
gunzip argo-linux-amd64.gz
# Make binary executable
chmod +x argo-linux-amd64
# Move binary to path
sudo mv ./argo-linux-amd64 /usr/local/bin/argo
;;
*)
echo "Unsupported operating system: ${os_name}"
exit 1
;;
esac
#Installing Paradigm Utility
# Install requirements
pip install -r requirements.txt
# Install command-line utility
pip install -e .
echo "Installation complete! You can now use the 'paradigm' commands."