Skip to content

Commit

Permalink
Set docker environment variable from minikube (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvgijssel authored Nov 19, 2019
1 parent 7ca7399 commit c70ca7e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dotfiles/files/.minikube/config/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"cpus": 6,
"dashboard": false,
"disable-driver-mounts": true,
"disk-size": "50G",
"ingress": true,
"memory": 16384,
"profile": "development",
"registry": true,
"vm-driver": "hyperkit"
}
5 changes: 5 additions & 0 deletions dotfiles/files/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ export LC_ALL=en_US.UTF-8
export EDITOR="emacsclient -s ${HOME}/.emacs.d/server/server"
export VISUAL="emacsclient -s ${HOME}/.emacs.d/server/server"
export DOCKER_BUILDKIT=1

if [ -f "${HOME}/.dockerenv" ]; then
source "${HOME}/.dockerenv"
fi

export HISTFILE=~/.zsh_history
export HISTFILESIZE=100000
export HISTSIZE=100000
Expand Down
5 changes: 5 additions & 0 deletions dotfiles/files/bin/mkube
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

minikube start
echo $(minikube docker-env) > ~/.dockerenv
source ~/.dockerenv

0 comments on commit c70ca7e

Please sign in to comment.