Skip to content

Instantly share code, notes, and snippets.

@ptahdunbar
Last active February 17, 2016 16:30
Show Gist options
  • Save ptahdunbar/d8ba0cb470236df1690e to your computer and use it in GitHub Desktop.
Save ptahdunbar/d8ba0cb470236df1690e to your computer and use it in GitHub Desktop.
# 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