Create arkade docker image
elyesbenamor opened this issue · comments
Expected Behaviour
Using docker container to use arkade for containers lovers and fans
Current Behaviour
The image will be used as follows
docker run -it --network="host" \ -v $HOME/.arkade/bin/:$HOME/.arkade/bin/ \ -v $HOME/.kube:/$HOME/.kube \ --env KUBECONFIG=${KUBECONFIG:-$HOME/.kube/config} \ arkade install .....
docker run -it --network="host" \ -v $HOME/.arkade/bin/:$HOME/.arkade/bin/ \ -v $HOME/.kube:/$HOME/.kube \ --env KUBECONFIG=${KUBECONFIG:-$HOME/.kube/config} \ arkade get ....
docker run -it --network="host" \ -v $HOME/.arkade/bin/:$HOME/.arkade/bin/ \ -v $HOME/.kube:/$HOME/.kube \ --env KUBECONFIG=${KUBECONFIG:-$HOME/.kube/config} \ arkade system install ....
Details
As a switch user (kube switch ) to manage my kubeconfigs it is better to pass the kubeconfig file as env variable once
switch
cli is invoked, else if running one cluster the default will be in the .kube
folder.'
We also mount the binary folder expected where arrkade will install them in order to persist them locally.
Done ?
I have implemented the dockerfile and tested it on my environement and you can look at the image on docker hub.
@alexellis would you be intrested ?
Hi @elyesbenamor I'm not sure that I see the value in complicating arkade.
Can you better explain why this is needed?
@alexellis it is only for local developer who wants to rely on containers and like myself have lots of clusters , once switched using kubeswitch, it is a better way to use an ephemeral container to deploy stuff using ark.
I don't want this for arkade, but if you sponsor me on a 15USD+ tier / mo I'll add it. If you don't want to support my work, you could maintain your own dockerfile triggered with cron every day?
🤷
/lock: won't fix