Last active
February 17, 2016 16:30
-
-
Save ptahdunbar/d8ba0cb470236df1690e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# V2 | |
## Install | |
- [Install Docker Toolbox](https://github.com/docker/toolbox) | |
> You should have `docker`, `docker-machine`, and `docker-compose` in your $PATH by this point. | |
### Show a list of available machines | |
`docker-machine ls` | |
### Create a development machine (40Gib HDD, 2Gib RAM): | |
`docker-machine create -d virtualbox --virtualbox-cpu-count=2 --virtualbox-memory="4096" --virtualbox-disk-size="40000" default` | |
### Activate docker machine: | |
`eval "$(docker-machine env default)"` | |
### Get the machine's IP address: | |
`docker-machine ip` | |
### Show running machines | |
`docker-compose ps` | |
### Start your development environment | |
`docker-compose up` | |
### Stop your development environment | |
`docker-compose stop` | |
### Restart your development environment | |
`docker-compose restart` | |
## Workflow | |
### Pull latest changes | |
`git pull` | |
### Refresh front-end assets | |
`grunt` | |
### Change front-end assets | |
`grunt watch` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment