Skip to content

Commit 107c0d7

Browse files
committed
Show all commands before being executed unless VERBOSE=false
1 parent e199b36 commit 107c0d7

24 files changed

Lines changed: 127 additions & 97 deletions

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fi
5353
export IMAGE=aws-do-eks
5454
## VERSION: [optional] - Version tag for this Docker image. Example: v20180302
5555
#export VERSION=v$(date +%Y%m%d)
56-
export VERSION=v20260611
56+
export VERSION=v20260623
5757
export TAG=$(if [ -z "${VERSION}" ]; then echo ""; else echo ":${VERSION}"; fi)
5858
## BUILD_OPTS: [optional] - arguments for the docker image build command
5959
export BUILD_OPTS="--progress plain --build-arg http_proxy=${http_proxy} --build-arg https_proxy=${https_proxy} --build-arg no_proxy=${no_proxy}"
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
22

3-
vi .env
3+
export CMD="vi .env"
4+
5+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
6+
eval "$CMD"
47

Container-Root/eks/deployment/inference/agentic-ai/nemotron/ultra/agg/run.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,25 @@ if [ "${MANIFEST_TYPE}" == "" ]; then
66
export MANIFEST_TYPE=deployment
77
fi
88

9+
export CMD=""
10+
911
if [ "${MANIFEST_TYPE}" == "deployment" ]; then
1012

1113
cat deployment.yaml-template | envsubst > deployment.yaml
14+
export CMD="kubectl apply -f ./deployment.yaml"
1215

13-
kubectl apply -f ./deployment.yaml
1416
elif [ "${MANIFEST_TYPE}" == "lws" ]; then
1517

1618
cat lws.yaml-template | envsubst > lws.yaml
19+
export CMD="kubectl apply -f ./lws.yaml"
1720

18-
kubectl apply -f ./lws.yaml
1921
else
22+
2023
echo "Unknown MANIFEST_TYPE ${MANIFEST_TYPE}"
24+
2125
fi
2226

2327

28+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
29+
eval "$CMD"
30+

Container-Root/eks/deployment/inference/agentic-ai/nemotron/ultra/agg/stop.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,28 @@ if [ "${MANIFEST_TYPE}" == "" ]; then
66
export MANIFEST_TYPE=deployment
77
fi
88

9+
export CMD=""
10+
911
if [ "${MANIFEST_TYPE}" == "deployment" ]; then
1012

1113
cat deployment.yaml-template | envsubst > deployment.yaml
12-
13-
kubectl delete -f ./deployment.yaml
14+
export CMD="kubectl delete -f ./deployment.yaml"
1415

1516
elif [ "${MANIFEST_TYPE}" == "lws" ]; then
1617

1718
cat lws.yaml-template | envsubst > lws.yaml
19+
export CMD="kubectl delete -f ./lws.yaml"
1820

19-
kubectl delete -f ./lws.yaml
2021
else
22+
2123
echo "Unknown MANIFEST_TYPE ${MANIFEST_TYPE}"
24+
2225
fi
2326

24-
kubectl delete pods $(kubectl get pods | grep ${DEPLOYMENT_NAME} | cut -d ' ' -f 1)
27+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
28+
eval "$CMD"
2529

30+
export CMD="kubectl delete pods \$(kubectl get pods | grep ${DEPLOYMENT_NAME} | cut -d ' ' -f 1)"
31+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
32+
eval "$CMD"
2633

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
22

3-
vi .env
3+
export CMD="vi .env"
44

5+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
6+
eval "$CMD"

Container-Root/eks/deployment/inference/agentic-ai/nemotron/ultra/disagg/run.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,24 @@ if [ "${MANIFEST_TYPE}" == "" ]; then
66
export MANIFEST_TYPE=deployment
77
fi
88

9+
export CMD=""
10+
911
if [ "${MANIFEST_TYPE}" == "deployment" ]; then
1012

1113
cat deployment.yaml-template | envsubst > deployment.yaml
12-
kubectl apply -f ./deployment.yaml
14+
export CMD="kubectl apply -f ./deployment.yaml"
1315

1416
elif [ "${MANIFEST_TYPE}" == "lws" ]; then
1517

1618
cat lws.yaml-template | envsubst > lws.yaml
17-
kubectl apply -f ./lws.yaml
19+
export CMD="kubectl apply -f ./lws.yaml"
1820

1921
else
22+
2023
echo "Unknown MANIFEST_TYPE ${MANIFEST_TYPE}"
24+
2125
fi
2226

27+
28+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
29+
eval "$CMD"

Container-Root/eks/deployment/inference/agentic-ai/nemotron/ultra/disagg/stop.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,27 @@ if [ "${MANIFEST_TYPE}" == "" ]; then
66
export MANIFEST_TYPE=deployment
77
fi
88

9+
export CMD=""
10+
911
if [ "${MANIFEST_TYPE}" == "deployment" ]; then
1012

1113
cat deployment.yaml-template | envsubst > deployment.yaml
12-
13-
kubectl delete -f ./deployment.yaml
14+
export CMD="kubectl delete -f ./deployment.yaml"
1415

1516
elif [ "${MANIFEST_TYPE}" == "lws" ]; then
1617

1718
cat lws.yaml-template | envsubst > lws.yaml
19+
export CMD="kubectl delete -f ./lws.yaml"
1820

19-
kubectl delete -f ./lws.yaml
2021
else
22+
2123
echo "Unknown MANIFEST_TYPE ${MANIFEST_TYPE}"
24+
2225
fi
2326

24-
kubectl delete pods $(kubectl get pods | grep ${DEPLOYMENT_NAME} | cut -d ' ' -f 1)
27+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
28+
eval "$CMD"
2529

30+
export CMD="kubectl delete pods \$(kubectl get pods | grep ${DEPLOYMENT_NAME} | cut -d ' ' -f 1)"
31+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
32+
eval "$CMD"
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
22

3-
vi .env
4-
3+
export CMD="vi .env"
4+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
5+
eval "${CMD}"

Container-Root/eks/deployment/inference/agentic-ai/nemotron/ultra/download/hf-pod-exec.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22

33
echo ""
44
echo "Opening do-hf shell ..."
5-
kubectl exec -it do-hf -- bash
65

6+
export CMD="kubectl exec -it do-hf -- bash"
7+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
8+
eval "${CMD}"

Container-Root/eks/deployment/inference/agentic-ai/nemotron/ultra/download/hf-pod-run.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
echo ""
44
echo "Starting do-hf pod ..."
55

6-
# Multi line with node selector and volume mount
7-
kubectl run do-hf \
6+
export CMD="kubectl run do-hf \
87
--image=iankoulski/do-hf \
98
--overrides='{
10-
"spec": {
11-
"nodeSelector": {"nvidia.com/gpu.present": "true"},
12-
"containers": [{
13-
"name": "do-hf",
14-
"image": "iankoulski/do-hf",
15-
"volumeMounts": [{"name": "fsx-vol", "mountPath": "/shared"}]
9+
\"spec\": {
10+
\"nodeSelector\": {\"nvidia.com/gpu.present\": \"true\"},
11+
\"containers\": [{
12+
\"name\": \"do-hf\",
13+
\"image\": \"iankoulski/do-hf\",
14+
\"volumeMounts\": [{\"name\": \"fsx-vol\", \"mountPath\": \"/shared\"}]
1615
}],
17-
"volumes": [{"name": "fsx-vol", "persistentVolumeClaim": {"claimName": "fsx-pvc"}}]
16+
\"volumes\": [{\"name\": \"fsx-vol\", \"persistentVolumeClaim\": {\"claimName\": \"fsx-pvc\"}}]
1817
}
19-
}'
20-
18+
}'"
19+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
20+
eval "${CMD}"

0 commit comments

Comments
 (0)