Docker container for PHP Development with ZSH, Composer and Symfony installer
948
PHP-Development container with :
Ports exposed:
ZSH-PHP require docker.
First, run your docker terminal.
Then you will need to clone this repo :
$ git clone [email protected]:stayfi/zsh-php.git
$ cd zsh-php
You have to add shared folders to your docker virtual machine, in Oracle VM Virtual Box :

You have to add the "bootlocal.sh" file to your virtual machine in this folder "/var/lib/boot2docker/" :
$ docker-machine ssh default
* "(assuming 'default' is your docker virtual machine name)"
$ sudo vi /var/lib/boot2docker/bootlocal.sh
* "paste those lines into this new file:"
mkdir -p /home/docker/zsh-php/www
mount -t vboxsf www /home/docker/zsh-php/www
$ sudo chmod +x /var/lib/boot2docker/bootlocal.sh
Restart your docker machine (assuming "default" is your docker virtual machine name):
$ docker-machine restart default
Build zsh-php container :
$ docker build -t stayfi/zsh-php zsh-php
Run zsh-php by :
$ docker run -ti -p 8000:8000 -v /home/docker/zsh-php/www:/var/www stayfi/zsh-php /bin/zsh
You will have your zsh prompt.
$ composer --version
$ symfony --version
$ symfony new my-project
$ cd my-project
$ php bin/console server:run 0.0.0.0:8000
Important : user 0.0.0.0:8000 address.
Assuming your default docker IP address is 192.168.99.11, you can acces to :
To start working on your project.
Stayfi B. - [email protected]
(Major.Minor[.Fix])
First version, working.
MIT license
Content type
Image
Digest
Size
146.1 MB
Last updated
over 9 years ago
docker pull stayfi/zsh-php