LAMP development testing environment with several tools built in.
2.5K
This image goes to all the php developers that want a developmnent testing environment set up in no time.
It is out of the box usable on linux hosts with a docker version >= 1.3
The image prepares apache2, php and mysql and wraps around your local codebase.
the following tools next to apache2, php 5.x (depending on the label) and mysql are at your service:
now you can use the docker to use this folder as vufind base and wrap the runtime environment around
docker run --name dev-dotdeb -d -v /path/to/my/project:/app -p 127.0.0.1:80:80 useltmann/dev-dotdeb
this starts the container named dev-dotdeb and sets up all the components with its default values. you should now be able to reach the your project folder at
By default php is configured up to start a debugging session indicated by request parameters. this comes in handy to use with several browser-addons (e.g. xdebug-helper for chrome). Therefore the IDE should be configured to accept remotely started debugging sessions.
Also xdebug is able to profile script runs. The trace protocols can be used to determine potential performance issues. A tool that analyses that protocols is webgrind which is integrated in the docker image and reachable here
look at the PHP-configuration at http://127.0.0.1/phpinfo
look at the XCache statistics at http://127.0.0.1/xcache
This utilises the docker-image useltmann/mailcollect which acts as smtp-server and catches all sent emails in one inbox, regardless where its sent.
to use it in conjunction with this docker-image you should start a container first. after its up and running you have to link this container to the dev-dotdeb container by adding the --link option to the run-command above
docker run --name dev-dotdeb -d -v /path/to/my/project:/app -p 127.0.0.1:80:80 --link=mailcollect:smtp -e SMTP_HOST=smtp docker.io/useltmann/dev-dotdeb
The dev-dotdeb container is now connected to the mailcollect container and all mail that is sent by it ends in the mailcollects inbox. see useltmann/mailcollect for further details.
docker exec -ti dev-dotdeb /bin/bash
the following environment variables can be set when creating (run) a new container. the values given here are the default values.
APP_HOME=/appAPP_USER=devFCGID_MAX_REQUEST_LEN=16384000TIME_ZONE=Europe/Berlin
defines the timezone php is working inSHIB_HOSTNAME=https://localhostSHIB_HANDLER_URL=/Shibboleth.ssoSHIB_SP_ENTITY_ID=https://hub.docker.com/r/useltmann/dev-dotdebSHIB_IDP_DISCOVERY_URL=https://wayf.aai.dfn.de/DFN-AAI-Test/wayfSHIB_IDP_ENTITY_ID insteadSHIB_STATUS_ACLSHIB_ATTRIBUTE_MAPname=id and seperate multiple definitions with comma, i.e. if you want to define a new Attribute with name "urn:oid:1.3.6.1.4.1.5923.1.1.1.9" and id "affiliation" you should do as follows' `SHIB_ATTRIBUTE_MAP="urn:oid:1.3.6.1.4.1.5923.1.1.1.9=affiliation"SQL_MODESQL_MODE="STRICT_TRANS_TABLES"SMTP_HOSTSMTP_NAME=dev-dotdebSMTP_PORT=25for now only DFN-Test-IDP Metadata is supported.
outsource database utilisation
Content type
Image
Digest
Size
291 MB
Last updated
over 9 years ago
docker pull useltmann/dev-dotdeb