(DEPRECATED) Please check https://hub.docker.com/r/tehes/docker-apache-php/
Complete optimized LAMP stack for Drupal developers, based on Debian 7.5 Wheezy, with :
- Apache/2.2.22 (Debian) on port 80
- PHP 5.4.4-14 (/phpinfo.php)
- MySQL 5.5.37 (root / testenv)
- Drush 6.2.0
- phpMyAdmin 184.108.40.206 (/phpmyadmin)
- APC 3.1.13 (/apc.php)
- Memcache 1.4.13 (/memcache.php // memcache / password)
- Postfix 2.9.6
- SVN 1.8.9
- GIT 220.127.116.11
- Sass 3.3.8 (Maptastic Maple)
- Compass 0.12.6 (Alnilam)
- Xhprof 0.9.2
- Xdebug 2.2.5
Files apc.php, memcache.php and phpinfo.php already in /var/www
docker run -d -p 127.0.0.1:2222:22 -p IP_ADDRESS:80:80 -t -i tehes/superdevlamp
Access your container:
http://IP_ADDRESS http://IP_ADDRESS/phpinfo.php http://IP_ADDRESS/phpmyadmin http://IP_ADDRESS/apc.php http://IP_ADDRESS/memcache.php ssh root@localhost -p 2222 (password = password // SSH only allowed from the host)
Thanks for your explanation about your setup.
The -t flag assigns a pseudo-tty or terminal inside the container and the -i flag allows us to make an interactive connection by grabbing the standard in (STDIN) of the container.
Here's how I got xdebug to work on Netbeans with this image:
Using a Vagrant machine based on Debian Jessie for the host machine - and have installed Netbeans on this machine - and also Docker.
Then have run a docker container based on your image (thanks!) with
$ docker run -d -p 127.0.0.1:2222:22 -p 127.0.0.1:80:80 tehes/superdevlamp
To get the xdebug traffic to come work between the host machine's Netbeans and the running image I run this on the host machine:
$ ssh -p 2222 -R 9000:localhost:9000 root@localhost
password 'password'. This sets up an SSH tunnel. There may be a more 'docker' way to do this - but this is working for me nicely.
Is it necessary to have the '-t -i' switches in the run command:
'docker run -d -p 127.0.0.1:2222:22 -p IP_ADDRESS:80:80 -t -i tehes/superdevlamp'
I thought these were used if the user wanted to run an interactive shell like bash for example.
For xdebug, you can use it with Netbeans I guess, I've been using it with phpstorm without any issue.
The start.sh file can be removed, it was needed for a previous version.
Just to help with clarification...
In the root of your image is a file called /start.sh. Can I take it that this is no longer used and you're using the supervisord mathod of starting services instead?
Thanks again for the great image - I'd star it twice if I could!
And to ask another question - how would you recommend using xdebug on your setup? Say I am running my xdebug client (Netbeans) on my host machine.
That clears it up nicely.
IP_ADDRESS value is the IP you will use to access the container.
It can be 127.0.0.1 if you run it locally, and want to access it only from your computer.
Or it can be the external IP address of a distant server if your run the container on a server and want to access it from your computer.
Clear enough ?
Thanks for the great looking image.
Could you explain the IP_ADDRESS value - I thought it would just be localhost or 127.0.0.1 - is there another purpose.
YES the MySQL root password is "testenv" as mentionned in the description : MySQL 5.5.37 (root / testenv)