|
@@ -2,12 +2,15 @@
|
|
export GOPATH="$HOME/.go"
|
|
export GOPATH="$HOME/.go"
|
|
export PATH=$HOME/.bin:$HOME/var/bin:/usr/local/bin:$PATH:$HOME/.go/bin
|
|
export PATH=$HOME/.bin:$HOME/var/bin:/usr/local/bin:$PATH:$HOME/.go/bin
|
|
|
|
|
|
|
|
+
|
|
export ZSH="$HOME/.oh-my-zsh"
|
|
export ZSH="$HOME/.oh-my-zsh"
|
|
|
|
|
|
ZSH_THEME="robbyrussell"
|
|
ZSH_THEME="robbyrussell"
|
|
|
|
|
|
plugins=(git z fzf asdf direnv emacs yarn)
|
|
plugins=(git z fzf asdf direnv emacs yarn)
|
|
|
|
|
|
|
|
+eval "$(aws configure export-credentials --profile np-farmers --format env)"
|
|
|
|
+
|
|
source $ZSH/oh-my-zsh.sh
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
|
|
# See ~/.aliases for the various aliases seen in here
|
|
# See ~/.aliases for the various aliases seen in here
|
|
@@ -45,13 +48,13 @@ sush() {
|
|
if [[ $1 == "sbx" ]]
|
|
if [[ $1 == "sbx" ]]
|
|
then
|
|
then
|
|
asso sure-inc
|
|
asso sure-inc
|
|
- aeks sure-inc
|
|
|
|
|
|
+ aws eks update-kubeconfig --name surepreme-sandbox-k8s-use1 --profile $argv
|
|
kubectl exec -it $(kubectl get pods | fzf | awk '{print $1}'|head -n 1) -- bash
|
|
kubectl exec -it $(kubectl get pods | fzf | awk '{print $1}'|head -n 1) -- bash
|
|
fi
|
|
fi
|
|
|
|
|
|
if [[ $1 == "qa" ]]
|
|
if [[ $1 == "qa" ]]
|
|
then
|
|
then
|
|
- aeks np-farmers
|
|
|
|
|
|
+ qaeks np-farmers
|
|
kubectl exec -it $(kubectl get pods | fzf | awk '{print $1}'|head -n 1) -- bash
|
|
kubectl exec -it $(kubectl get pods | fzf | awk '{print $1}'|head -n 1) -- bash
|
|
fi
|
|
fi
|
|
|
|
|
|
@@ -63,15 +66,9 @@ sush() {
|
|
fi
|
|
fi
|
|
}
|
|
}
|
|
|
|
|
|
-roc() {
|
|
|
|
- asso np-farmers
|
|
|
|
- aeks np-farmers
|
|
|
|
- kubectl port-forward $(kubectl get pods | fzf | awk '{print $1}'|head -n 1) 5001:8080
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
portforward() {
|
|
portforward() {
|
|
asso np-farmers
|
|
asso np-farmers
|
|
- aeks np-farmers
|
|
|
|
|
|
+ qaeks np-farmers
|
|
kubectl port-forward $(kubectl get pods | fzf | awk '{print $1}'|head -n 1) $1:8080
|
|
kubectl port-forward $(kubectl get pods | fzf | awk '{print $1}'|head -n 1) $1:8080
|
|
}
|
|
}
|
|
|
|
|
|
@@ -92,7 +89,7 @@ refresh_sure_db() {
|
|
createdb -U sure surepreme
|
|
createdb -U sure surepreme
|
|
psql -U sure surepreme -c "CREATE EXTENSION postgis"
|
|
psql -U sure surepreme -c "CREATE EXTENSION postgis"
|
|
pg_restore -d surepreme /tmp/qa_farmers_latest.pgdump
|
|
pg_restore -d surepreme /tmp/qa_farmers_latest.pgdump
|
|
- rm /tmp/qa_farmers_latest.pgdump
|
|
|
|
|
|
+ #rm /tmp/qa_farmers_latest.pgdump
|
|
echo "Database `surepreme` successfully restores from QA data"
|
|
echo "Database `surepreme` successfully restores from QA data"
|
|
}
|
|
}
|
|
|
|
|