wget http://twinbit.github.io/drocker/drocker.phar
To install globally put drocker.phar
in /usr/bin
.
sudo chmod +x drocker.phar && mv drocker.phar /usr/bin/drocker
Now you can use it just like drocker
.
Just run drocker init
in a empty folder to bootstrap a new drocker project:
|-- bin
| |-- cli
| |-- drush
| |-- mysql
| `-- phing
|-- data
`-- fig.yml
(@TODO) Tweak fig.yml
to match your needs and run fig up -d
to run the containers.
At the first run fig will download and build remote containers, it can takes several minutes.
TODO
In order to not going insane trying to fix vboxfs shared folder permissions, it is better to use NFS from OSX in order to have an automatic mapping to local user uid/gid:
Edit your /etc/exports file as follows:
/Users -mapall=youruser:staff boot2docker
boot2docker ssh
sudo umount /Users
sudo /usr/local/etc/init.d/nfs-client start
# See http://www.slashroot.in/how-do-linux-nfs-performance-tuning-and-optimization
# See http://www.gossamer-threads.com/lists/wiki/mediawiki-cvs/500057
sudo mount 192.168.59.3:/Users /Users -o rw,async,noatime,rsize=32768,wsize=32768,proto=tcp
If you are using SublimeText, you could experience this problem: hashicorp/vagrant#2768:
NFS not updating files if the file length stayed the same.
To fix it: Sublime Text > Preferences > Settings- User
{
"atomic_save": false
}