Evolve Infrastructure Repository
========
This repository holds the base primitives for the development and deployment of the Evolve Applications. 


### Magus Development Environment

This development environment requires the following: 
- Docker
- docker-compose
- git

#### How to launch the development environment.
1. Install Docker and docker-compose from the docker website.
2. Install git 
3. Change the directory to where you want to develop your applications and clone into the repo.
```
git clone git@github.com:EvolveAV/evolve-infra.git
cd evolve-infra
git submodule init
git submodule update --recursive --remote
```

This will allow you to launch the docker containers required to run the PHP Zend application for Magus. 

```
docker-compose up
```

Once the containers are running and loaded, you can open the app on your development desktop at http://localhost:8080

Any changes to the magus-core folder needs to be comitted to magus-core git repo using the appropriate git commands. 

#### How to troubelshoot the MySQL database
Using docker you can exec into the MySQL container and DB like a normal database. 

```
docker exec -ti evolve-infra_database_1 mysql -h localhost -u root -proot magus_dev
```

For ease of use and familiarity, there is also a PHPMyAdmin interface available at http://localhost:8081