1davidmichael / drocker

Drocker: Let's rock with Drupal and Docker

Home Page:http://www.twinbit.it

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drocker

Docker + Drupal

Installing

Phar

Download drocker.phar >

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.

Usage

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

Boot2docker configuration steps:

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:

OSX NFS Export

Edit your /etc/exports file as follows:

/Users -mapall=youruser:staff boot2docker

Booot2docker configuration

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

Sublime text NFS bug

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
}

About

Drocker: Let's rock with Drupal and Docker

http://www.twinbit.it


Languages

Language:PHP 100.0%