Skip to content

Instantly share code, notes, and snippets.

View ecurtin's full-sized avatar

Emily May Curtin ecurtin

View GitHub Profile
@ecurtin
ecurtin / Dockerfile
Created December 13, 2018 15:08
Docker & Kubernetes Basics, but with a ConfigMap this time!
# An utterly trivial webserver for Docker experimentation, this time requiring a configmap to be attached
# To build and run:
# docker build -t registry.ng.bluemix.net/gaq-workshops/trivial-http:needs-configmap ./
# docker run -p 1234:1234 --detach registry.ng.bluemix.net/gaq-workshops/trivial-http:needs-configmap
# curl localhost:1234
# To kill off:
# docker container ls
# docker kill <container id>
@ecurtin
ecurtin / Dockerfile
Last active December 13, 2018 15:09
Docker & Kubernetes Basics (Workshop Materials)
# An utterly trivial webserver for Docker experimentation
# To build and run:
# docker build -t registry.ng.bluemix.net/gaq-workshops/trivial-http:latest ./
# docker run -p 1234:1234 --detach registry.ng.bluemix.net/gaq-workshops/trivial-http:latest
# curl localhost:1234
# To kill off:
# docker container ls
# docker kill <container id>
@ecurtin
ecurtin / delete_git_submodule.md
Created June 12, 2018 21:15 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule