A set of Docker containers for Longevo developers.
For Ubuntu users:
- Install Docker. Follow the instructions on the Docker Website.
- Install the latest docker-compose.
- Copy
volumes.yml.dist
tovolumes.yml
with your own settings. - Run
docker-compose up -d
on theetenv
folder. - Access
localhost
, you should see aphpinfo();
output.
For Windows/OSX users: 0. docker-machine create --virtualbox-disk-size 40000 --virtualbox-memory 8096 --driver virtualbox envurbem
1. Install [docker-toolbox](https://www.docker.com/docker-toolbox). It already comes with Docker and docker-compose pre-bundled:
- On `OSX` you can `brew install Caskroom/cask/dockertoolbox`.
1. Copy `volumes.yml.dist` to `volumes.yml` with your own settings.
1. If you are on `OSX`:
1. Install [docker-machine-nfs](https://github.com/adlogix/docker-machine-nfs).
1. Execute "Docker Quickstart Terminal.app" to ensure VM is booted.
1. Execute `eval "$(docker-machine env default)"`.
1. Execute `docker-machine-nfs default --nfs-config="-alldirs -maproot=0" --shared-folder="<directory containing all projects>"` (you only need to execute this once).
1. Run `docker-compose up -d` on the `etenv` folder and go for a coffee.
1. Access `localhost`, you should see a `phpinfo();` output.
- Add the project folder mapping to the
volumes.yml
file. - Create a new
etenv/etc/nginx/sites/yoursite.yml
. See the default for an example.
I get the error
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
when running docker.
Your user is not on the docker group, so it cannot execute docker without sudo. Add your user to the group using sudo usermod -aG docker myuser
(replace "myuser" with your own linux username) then restart your machine.
sudo apt-add-repository ppa:brightbox/ruby-ng sudo apt-get update
sudo apt-get install ruby2.3 ruby2.3-dev
ruby -v
- Mysql apt-get install libmysqlclient-dev gem install mysql2
gem install capistrano