-
Notifications
You must be signed in to change notification settings - Fork 0
/
propelrc
95 lines (79 loc) · 3.34 KB
/
propelrc
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/usr/bin/env zsh
# xcodebuild path
# /Users/ilyakamens/Desktop/Xcode.app/Contents/Developer/usr/bin/xcodebuild
source ~/.secrets
#export IOS_BUILD_DIR="platforms/ios/build"
#export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home"
#export ANDROID_HOME="/usr/local/android"
#export ANDROID_SDK_ROOT="/usr/local/android"
#export ANDROIDSDK="/usr/local/android"
#export GRADLE_HOME="/opt/gradle/gradle-5.3.1"
#export PATH=/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support:$PATH
#export PATH=$ANDROID_SDK_ROOT/tools/bin:$PATH
#export PATH=~/Desktop/apache-maven-3.6.0/bin:$PATH
#export PATH="/usr/local/android/platform-tools:$PATH"
#export PATH=$GRADLE_HOME/bin:$PATH
#export PATH="/opt/gradle/gradle-4.10.2/bin:$PATH"
export propel="$HOME/dev/propel"
export freshebtserver="$propel/freshebt-server"
export orchard="$propel/orchard"
export freshebtvue="$orchard/apps/freshebt-vue"
export freshcardapp="$orchard/apps/freshcard-app"
export healthcareapp="$orchard/apps/healthcare-app"
export freshcardserver="$propel/freshcard-server"
export propelinfra="$propel/propel-infrastructure"
export providersidentity="$propel/providers-identity"
export propelsharedpy="$propel/propel-shared-py"
export jenkinssharedlibrary="$propel/jenkins-shared-library"
alias cdp="cd $propel"
alias cdserver="cd $freshebtserver"
alias cdv="cd $freshebtvue"
alias cdha="cd $healthcareapp"
alias cdpi="cd $providersidentity"
alias cdpsp="cd $propelsharedpy"
alias cdjsl="cd $jenkinssharedlibrary"
alias listdevices='adb devices'
alias phonelogs='adb logcat'
alias ingrok='ngrok http 1337'
alias fixtranslations='ds manage update_i18n'
# alias simid="xcrun simctl list | grep Booted | grep -oE '(\w+-\w+)+'"
# alias installapp="xcrun simctl install $(simid) $IOS_BUILD_DIR/emulator/Fresh\ EBT.app"
alias uninstallandroid='adb uninstall com.propel.ebenefits > /dev/null'
alias installandroid2="adb install ~/android-debug.apk"
alias dockerlogin="aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 608965757603.dkr.ecr.us-west-2.amazonaws.com"
# Kubectl aliases
alias kg="KUBECONFIG=~/.kube/eks-global kubectl"
alias kd="KUBECONFIG=~/.kube/eks-development kubectl"
alias ks="KUBECONFIG=~/.kube/eks-staging kubectl"
alias kp="KUBECONFIG=~/.kube/eks-production kubectl"
alias kvp="KUBECONFIG=~/.kube/eks-vault-prod.yaml kubectl"
# Helm aliases
alias hlg="KUBECONFIG=~/.kube/eks-global helm"
alias hld="KUBECONFIG=~/.kube/eks-development helm"
alias hls="KUBECONFIG=~/.kube/eks-staging helm"
alias hlp="KUBECONFIG=~/.kube/eks-production helm"
# K8s helpers
dpods() {
if [[ $# -lt 2 ]]; then
echo "Example usage: dpods d papi"
return
fi
pods="k$1 -n shared get pods --no-headers -o custom-columns=\":metadata.name\" | grep $2"
for pod in $(eval $pods);
do
eval "k$1 -n shared delete pod $pod"
done
}
source ~/.android-config
FRESHCARD_SERVER_SETUP_ENV="$freshcardserver/bin/setup-env"
if [[ -r "${FRESHCARD_SERVER_SETUP_ENV}" ]]; then
. "${FRESHCARD_SERVER_SETUP_ENV}"
fi
FRESHCARD_APP_SETUP_ENV="${freshcardapp}/bin/setup-env"
if [[ -r "${FRESHCARD_APP_SETUP_ENV}" ]]; then
. "${FRESHCARD_APP_SETUP_ENV}"
fi
ORCHARD_SETUP_ENV="${orchard}/bin/setup-env"
if [[ -r "${ORCHARD_SETUP_ENV}" ]]; then
. "${ORCHARD_SETUP_ENV}"
fi