Skip to content

Instantly share code, notes, and snippets.

@amcginlay
Last active October 13, 2022 08:46
Show Gist options
  • Save amcginlay/0c55ea1ba96e0e579f242207413e203e to your computer and use it in GitHub Desktop.
Save amcginlay/0c55ea1ba96e0e579f242207413e203e to your computer and use it in GitHub Desktop.
dockerize.sh
# the following docker command mounts the current directory from a new alpine container
# on macos/linux
docker run -it --net host -v ${HOME}/.kube/:/root/.kube -v ${PWD}:/work -w /work alpine sh
# on windows
docker run -it --net host -v ${USERPROFILE}/.kube/:/root/.kube -v ${CD}:/work -w /work alpine sh
# TODO - Dockerfile
# FROM ubuntu:latest
# ... add in required tooling, then run forever ...
# ENTRYPOINT ["tail", "-f", "/dev/null"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment