Skip to content

BrunoChauvet/docker-lamp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Maestrano LAMP stack based on Ubuntu 14.04

Build Status

Build Docker container locally

sudo docker build -t local/docker-lamp .

Entry point

The script scripts/init.sh will be run on container start, taking care of starting Apache and MySQL services. As part of the container initialization process, the script scripts/configure.py is executed. It will call Ansible to run the playbook ansible/site.yml passing all environment variables prefixed by "MNO_". The intent is to overwrite the Ansible configuration adding playbooks to be run to install and configure PHP applications.

Image creation

The image is created using Ansible. A list of variables used by the MySQL and Apache configuration is defined under ansible/group_vars/all. The variable power_units is used as a multiplier for the default minimum memory options. To increase the container capacity, you must start the Docker container with a higher memory allocation and specify a higher value for the power_units parameter.

Docker Hub

The image can be pulled down from Docker Hub

Launch a LAMP Docker container

docker run -it -e "MNO_POWER_UNITS=4" maestrano/docker-lamp:latest

About

Docker container to run a LAMP stack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 46.5%
  • ApacheConf 32.0%
  • Python 17.2%
  • PHP 4.3%