Public Repository

Last pushed: 2 years ago
Short Description
(DEPRECATED) Complete optimized LAMP stack for Drupal developers, based on Debian 7.5 Wheezy
Full Description

(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 3.4.11.1 (/phpmyadmin)
  • APC 3.1.13 (/apc.php)
  • Memcache 1.4.13 (/memcache.php // memcache / password)
  • Postfix 2.9.6
  • SVN 1.8.9
  • GIT 1.7.10.4
  • 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

USE :

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)
Docker Pull Command
Owner
tehes

Comments (13)
tehes
2 years ago

Hi,

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.

bailey86
2 years ago

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.

bailey86
2 years ago

Hiya,

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.

Cheers,

Kevin

tehes
2 years ago

Hi bailey,

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.

Thanks

bailey86
2 years ago

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!

bailey86
2 years ago

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.

bailey86
2 years ago

Thanks tehes.

That clears it up nicely.

Cheers,

Kevin

tehes
2 years ago

Hi bailey,

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 ?

bailey86
2 years ago

Hiya,

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.

Thanks again,

Kevin

tehes
3 years ago

YES the MySQL root password is "testenv" as mentionned in the description : MySQL 5.5.37 (root / testenv)