| File | Date | Author | Commit |
|---|---|---|---|
| files | 2013-08-15 |
|
[5ca972] added puppet files |
| manifests | 2013-08-21 |
|
[b5fda9] added automated download of Drupal via drush |
| modules | 2013-08-21 |
|
[268684] removed CRLF line terminators |
| .gitignore | 2013-08-16 |
|
[138d67] better information |
| README.md | 2014-05-16 |
|
[4824cf] no spam |
| README.txt | 2016-02-23 |
|
[c586c6] Update README.txt |
| Vagrantfile | 2015-06-02 |
|
[d8576b] fixed box |
| uninstall.md | 2014-02-01 |
|
[bedbbf] more instructions |
| vagrant_lxc.info | 2013-08-16 |
|
[ca7dc7] files for module and info |
| vagrant_lxc.module | 2013-08-21 |
|
[79a2b3] removed CVS tags |
LXC is a lightweight virtualization method that provides operating system-level virtualization
optional to an heavy full virtual machine. It relies on the Linux kernel cgroups functionality
that became available in version 2.6.24, It provides a virtual environment that has its own process and network space.
This option makes the perfect option for deploying several contained Drupal dev environments
independent of the distribution.Docker is a solution from dotCloud,
which simplifies and improves the process of creating and managing Linux containers.
Vagrant 1.1+ lxc plugin allows it to control and provision Linux Containers as an alternative
to the built in (and heavy) Vagrant VirtualBox provider for Linux hosts.
Deploy and develop on Drupal with LXC, using Vagrant and/or Docker.
Takes about ~2 minutes to have a full running Drupal development box.
Installing Drupal on lxc containers has never been faster and easier.
Install latest Vagrant from:
http://downloads.vagrantup.com/tags/v1.3.5 or later.
sudo dpkg -i vagrant_1.3.5_x86_64.deb
sudo apt-get install lxc redir git sudo
git clone https://github.com/ricardoamaro/drupal-lxc-vagrant-docker.git
cd ~/drupal-lxc-vagrant-docker
vagrant plugin install vagrant-lxc
vagrant up --provider=lxc
sudo lxc-ls --fancy
# redirect port 80 to the host
sudo redir --lport=80 --cport=80 --caddr={container ip} &
your /etc/hosts file should have a line like this:
127.0.2.1 drupal phpmyadmin xhprof
~/drupal-lxc-vagrant-docker# vagrant halt
~/drupal-lxc-vagrant-docker# vagrant up --no-provision
~/drupal-lxc-vagrant-docker# VAGRANT_LOG=debug vagrant up --provider=lxc
~/drupal-lxc-vagrant-docker# vagrant destroy
~/drupal-lxc-vagrant-docker# sudo killall redir
Docker will be used to ship our newly created appliance, deploying it to any linux server, anywhere in the world, whitin a container.
sudo apt-get -y install lxc-docker
curl get.docker.io | sudo sh -x
sudo tar -C /var/lib/lxc/{container name}/rootfs/ -c . | sudo docker import - dev/drupal
sudo docker run -i -t -p :80 dev/drupal /bin/bash
An already cooked Docker image has been commited to https://index.docker.io, and can be pulled using:
sudo docker pull ricardoamaro/drupal
*There is also a project to build a simple lamp image with Drupal, using Dockerfile:
https://github.com/ricardoamaro/docker-drupal
*You can find more images using the Docker Index.
*Information on building your own vagrant-lxc base box:
http://fabiorehm.com/blog/2013/07/18/crafting-your-own-vagrant-lxc-base-box/
lxc-attach -n {container name}Feel free to fork and contribute to this code. :)
git checkout -b my-new-feature)git commit -am 'Added some feature')git push origin my-new-feature)Created and maintained by Ricardo Amaro (<mail_at_ ricardoamaro.com="">)</mail_at_>
GPLv2+
To these projects for their awesome code:
https://github.com/fgrehm/vagrant-lxc
https://github.com/mitchellh/vagrant
https://github.com/dotcloud/docker
https://github.com/puppet/puppet
and to all other FreeSoftware used on this repo,
including the fabulous
http://drupal.org
=================