-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d205098
commit d28948c
Showing
6 changed files
with
55 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -241,35 +241,8 @@ else | |
PROFILE=${KUBIFY_PROFILE:-default} | ||
fi | ||
|
||
git config --get user.name &> /dev/null | ||
if [ $? -eq 1 ]; then | ||
echo "What is your first and last name (for git config)?" | ||
read -t 10 GIT_FIRST_LAST | ||
FIRST_LAST=${GIT_FIRST_LAST} | ||
git config --set user.name "${GIT_FIRST_LAST}" &> /dev/null || git config --set user.name "Iwas NeverGivenAname" &> /dev/null | ||
git config --global user.name "${GIT_FIRST_LAST}" &> /dev/null || git config --global user.name "Iwas NeverGivenAname" &> /dev/null | ||
fi | ||
|
||
git config --get user.email &> /dev/null | ||
if [ $? -eq 1 ]; then | ||
echo "What is your email address (for git config)?" | ||
read -t 10 GIT_EMAIL | ||
EMAIL=${EMAIL} | ||
git config --set user.email "${GIT_EMAIL}" &> /dev/null || git config --set user.email "[email protected]" &> /dev/null | ||
git config --global user.email "${GIT_EMAIL}" &> /dev/null || git config --global user.email "[email protected]" &> /dev/null | ||
fi | ||
|
||
if ! [ -x "$(command -v git config --get user.email)" ]; then | ||
echo " | ||
!!ERROR: | ||
Please configure your git first: | ||
Make sure git key exists, example: stat ~/.ssh/id_rsa | ||
Make sure permissions, example: chmod 600 ~/.ssh/id_rsa | ||
Make sure your git user.name is set, example: git config --global user.name '[First Last]' | ||
Make sure your git user.name is set, example: git config --global user.email '[Email]' | ||
" | ||
exit 1 | ||
fi | ||
git config --get user.name | grep -E "[a-z]" || git config --global user.name "Set YourGitUsername" | ||
git config --get user.email | grep -E "[a-z]" || git config --global user.email "[email protected]" | ||
|
||
if [[ -z "${AWS_SECRET_ACCESS_KEY}" ]]; then | ||
if [ ! -f ${HOME}/.aws/credentials ]; then | ||
|
@@ -3148,8 +3121,8 @@ EOF | |
|
||
docker-compose up -d | ||
docker ps | grep kubify-kubify-1 | ||
docker exec -it --privileged -w "/src/kubify" "kubify-kubify-1" ./kubify_verbose _up_container | ||
docker exec -it --privileged -w "/src/kubify/dev/svc/localstack-aws-svc" "kubify-kubify-1" ../../../kubify_verbose run | ||
docker exec -it --privileged -w "/src/kubify" "kubify-kubify-1" ./kubify _up_container | ||
docker exec -it --privileged -w "/src/kubify/dev/svc/localstack-aws-svc" "kubify-kubify-1" ../../../kubify run | ||
# docker exec -it --privileged -w "/src/kubify/dev/svc/localstack-aws-svc" "kubify-kubify-1" "../../../kubify run" | ||
|
||
} | ||
|
@@ -3294,6 +3267,16 @@ function deploy_cloud { | |
|
||
} | ||
|
||
function delete_clouds_testing { | ||
|
||
eksctl delete cluster --name "kubify-cpu-dev-west" --region us-west-2 & | ||
eksctl delete cluster --name "kubify-gpu-dev-west" --region us-west-2 & | ||
eksctl delete cluster --name "kubify-cpu-dev-east" --region us-east-1 & | ||
eksctl delete cluster --name "kubify-gpu-dev-east" --region us-east-1 & | ||
wait | ||
|
||
} | ||
|
||
|
||
#### | ||
# END OF CONTAINER MOD | ||
|