Skip to content

An example of using emacs org mode (babel/tangle) to set up a docker shell session and generate/run an image.

Notifications You must be signed in to change notification settings

wrightmikea/simple-docker-tangle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simple-docker-tangle

  • An example of using Org mode, babel, and tangle to set up a shell session with a docker environment, generate a Dockerfile, build a named docker image, and run it with a shared directory.

Usage

  • Edit the sdt.org file (in an emacs that supports orgmode, e.g, 24)
  • Run the setup shell source blocks (using C-c C-c and respond yes to prompts))
  • Generate the build/Dockerfile (using C-c C-v t in the dockerfile source block)
  • Run the remaning shell source blocks

To regenerate the .html file

  • Edit the sdt.org file
  • Export to html (C-c C-e h o and then respond yes to prompts)

Sample exported .html

Browse sample output

Notes

  • Mac OS X
  • Docker Toolkit
  • Emacs 24.5.1
  • ~/.emacs/init.el customizations
(org-babel-do-load-languages
  'org-babel-load-languages
   '((sh . t)
    ))

About

An example of using emacs org mode (babel/tangle) to set up a docker shell session and generate/run an image.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages