-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.exports
45 lines (35 loc) · 1.38 KB
/
.exports
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
#!/bin/bash
# real programmers
export EDITOR="emacsclient -c -a emacs"
export GIT_EDITOR="emacsclient -nw"
export KUBE_EDITOR="emacsclient -nw"
# history!
export HISTSIZE=50000
export HISTFILESIZE=$HISTSIZE
export LC_ALL=en_US.UTF-8
# coloured output for ls
export CLICOLOR=1
# set GPG environment variable (cf https://stackoverflow.com/a/42265848/117912)
export GPG_TTY=$(tty)
# set DOCKER_HOST if respective lima vm is there
if [ -S $HOME/.lima/docker/sock/docker.sock ]; then
export DOCKER_HOST="unix://$HOME/.lima/docker/sock/docker.sock"
fi
# set KUBECONFIG if respective lima vm is there
if [ -f $HOME/.lima/k3s/conf/kubeconfig.yaml ]; then
export KUBECONFIG="$HOME/.lima/k3s/conf/kubeconfig.yaml"
# if we have a Teleport kubeconfig file, add it
if [ -f $HOME/.kube/teleport-kubeconfig.yaml ]; then
export KUBECONFIG="$HOME/.kube/teleport-kubeconfig.yaml:$KUBECONFIG"
fi
fi
# if GCloud is installed, we need to enable GKE auth plugin
if [ -f /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc ]; then
export USE_GKE_GCLOUD_AUTH_PLUGIN=True
fi
## testcontainers
# Since Docker is runing inside a VM on mac we need to tell
# testcontainers the location of the Docker socket inside the
# VM. We need to disable ryak for the same reason.
export TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock
export TESTCONTAINERS_RYUK_DISABLED=true