File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export CONTAINER_NAME="--name ${CONTAINER}"
7171# # Port map [optional] - Mapping of external to internal ports including the -p switch. Example -p 80:8080
7272# export PORT_MAP="-p 8080:8080"
7373# # Volume map [optional] - Mapping of external to internal paths including the -v switch. Example $(pwd):/wd
74- export VOL_MAP = " -v ${ HOME } /.aws:/root/.aws -v ${ HOME } /.kube:/root/.kube -v $( pwd) :/aws-do-hyperpod -v $( pwd) /wd/conf:/hyperpod/conf -v /var/run/docker.sock:/var/run/docker.sock -v ~/projects:/projects "
74+ export VOL_MAP = " -v ${ HOME } /.aws:/root/.aws -v ${ HOME } /.kube:/root/.kube -v $( pwd) :/aws-do-hyperpod -v $( pwd) /wd/conf:/hyperpod/conf -v /var/run/docker.sock:/var/run/docker.sock"
7575# # Network [optional] - Network name including the --net switch. Example --net mynet
7676# export NETWORK=
7777# # RUN_OPTS [optional] - additional options to specify with the run comman. Example -e POSTGRES_DB=dbname
Original file line number Diff line number Diff line change @@ -24,24 +24,3 @@ function os
2424# # End os function
2525os
2626
27- # # Determine current host IP address
28- function hostip
29- {
30- case " ${OPERATING_SYSTEM} " in
31- " Linux" )
32- export HOST_IP=$( hostname -I | tr " " " \n" | head -1) # Linux
33- ;;
34- " MacOS" )
35- export HOST_IP=$( ifconfig | grep -v 127.0.0.1 | grep -v inet6 | grep inet | head -n 1 | awk ' {print $2}' ) # Mac OS
36- ;;
37- " Windows" )
38- export HOST_IP=$( (( ipconfig | grep IPv4 | grep 10 .187 | tail - 1 ) && (ipconfig | grep IPv4 | grep 3 . | head - 1 )) | tail -1 | awk ' {print $14}' ) # Git bash
39- ;;
40- * )
41- export HOST_IP=$( hostname)
42- ;;
43- esac
44- }
45- # # End hostip function
46- hostip
47-
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ source ./conf/env.conf
4+ source ${CONF} /env_input
5+
6+ echo " "
7+ echo " List of $IMPL clusters: "
8+
9+ impl/${IMPL} /cluster-list.sh
10+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+
4+ CMD=" aws eks list-clusters ${ENDPOINT_ARG} "
5+
6+ if [ ! " $VERBOSE " == " false" ]; then echo -e " \n${CMD} \n" ; fi
7+
8+ eval " $CMD "
9+
You can’t perform that action at this time.
0 commit comments