Skip to content

robsonscruz/env-urbem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Longevo Environment for Developers

A set of Docker containers for Longevo developers.

Installation

For Ubuntu users:

  1. Install Docker. Follow the instructions on the Docker Website.
  2. Install the latest docker-compose.
  3. Copy volumes.yml.dist to volumes.yml with your own settings.
  4. Run docker-compose up -d on the etenv folder.
  5. Access localhost, you should see a phpinfo(); 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.

Adding Projects

  1. Add the project folder mapping to the volumes.yml file.
  2. Create a new etenv/etc/nginx/sites/yoursite.yml. See the default for an example.

Troubleshooting

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.

Ruby install

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

Capistrano

gem install capistrano

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages