Skip to content

alecl/docker-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-experiments

Some quick investigations on learning docker

Environment Setup and Prerequisites

On a Windows machine this was a bit of fun. Final install list:

  1. vagrant
  2. VirtualBox
  3. PuTTY

Aborted attempts:

  • Console2 and ConEmu - Both had issues with terminal emulation with PuTTY/plink
  • plink in standard Cmd terminal without Console2 or ConEmu was less full featured than PuTTY so back to PuTTY

Learning

  1. Watched this and this at 2x speed. It was a decent intro.
  2. Started with Vagrant Cloud image with docker pre-installed
  3. Got familiar with the docker commands
  4. Tried out some adhoc experiments working through a bash shell "-t -i" and the using commit.
  5. Created an image that ran Apache2
  6. Looked at Serf and Fig but seems a bit too bleeding edge for now for my needs.

Repo Contents

Apache

  1. First attempt at a Dockerfile and it went surprisingly well
  2. The hardest part was remembering how to make Apache run in the foreground (apachectl -X). In the future I will switch this to Supervisord instead anyway.
  3. Refactored to keep it generic and pretty standalone
  4. Added a sample index.html so it's ready to test out of the box
  5. Added some sample scripts that show running multiple instances with linked document roots to vagrant host machine and Apache logs to VM itself for easy viewing
  6. Added a base image that this now inherits from

About

Some quick investigations on learning docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published