forked from Piotr1215/kubectl-container
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added makefile to simply running containers
- Loading branch information
Showing
3 changed files
with
32 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ZSH = piotrzan/kubectl-comp:zsh | ||
BASH = piotrzan/kubectl-comp | ||
|
||
.PHONY: all run-detatch-zsh run-zsh run-detatch-bash run-bash copy attach zsh-run bash-run | ||
|
||
all: zsh-run | ||
|
||
run-detatch-zsh: | ||
docker run -d --network=host --name=kubectl-host --rm -it $(ZSH) | ||
|
||
run-zsh: | ||
docker run --network=host --name=kubectl-host --rm -it $(ZSH) | ||
|
||
run-detatch-bash: | ||
docker run -d --network=host --name=kubectl-host --rm -it $(BASH) | ||
|
||
run-bash: | ||
docker run --network=host --name=kubectl-host --rm -it $(BASH) | ||
|
||
copy: | ||
kubectl config view --raw > config | ||
docker cp config kubectl-host:./root/.kube | ||
|
||
attach: | ||
docker attach kubectl-host | ||
|
||
zsh-run: run-detatch-zsh copy attach | ||
|
||
bash-run: run-detatch-bash copy attach |
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 was deleted.
Oops, something went wrong.