A base image for containerized web servers. Work in progress.
- Built with Packer
- Arch Linux
- Chef Solo
- SSH
- nginx
- Github users
- Arch Linux (host)
- Ruby
- Bundler
- Packer ~v0.7.1
In the root directory...
- Run
bundle installto install the gems - Rename
variables.example.jsontovariables.json - Set the
github_organizationvariable to the name of your Github organization. - Run
bundle exec thor packer:build packer.json
The resulting build image will appear at pkg/latest.tar.
If the build process fails, try stepping through it with bundle exec thor packer:debug packer.json. While the
container is running, you can use nsenter to poke around and see what's wrong.
Import the file to Docker with the docker import subcommand. Tag it however you like.
Launch it wth docker run -it -P -d [-name <NAME>] <IMAGE> /usr/sbin/supervisord -c /etc/supervisord.conf -n.
Root and password authentication are disabled over SSH.
Each public member of your Github organization has a shell account authorized with the public keys they've shared with Github.
Login in with $ ssh [github_username]@[host] -p [port] (Whichever port is mapped to 22)
Or simply use nsenter/docker-enter/etc.
sudo is allowed for Github users. Take advantage of this now to change the default passwords.
Enjoy!