Skip to content

Environment Setup

Saulo Aguiar edited this page Apr 8, 2017 · 1 revision

This page will briefly describe how to setup a working environment based on OS X.

Docker

Refer to docker official documentation on how to install it for OS X. As docker runs on virtual hosts on OS X, it is managed by docker-machine.

docker-machine ls
docker-machine start default
eval $(docker-machine env default)
docker-machine ip default

The command list above will, respectively, list the machines that are installed under a directory; start a machine with name; set the environment variables on a machine; and retrieves the IP address for the machine.

This project uses a docker-compose.yml file to define the services that can be run together in isolated environments. In our case, we use it for the database. Run

docker-compose up
docker  ps

to install the image specified in the file and list the containers.

Clone this wiki locally