Skip to content

davehensley/daves-lamp-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dave's Lamp Environment

This is just a little Docker image to create a LAMP environment (which I use for development purposes).

To build the image, simply run the build.sh script located in this directory.

Once the image is built, you can create a web app, and start a container by using the following command (replace PATH_TO_YOUR_APP with the directory where you placed your app):

docker run -d -P -v PATH_TO_YOUR_APP:/var/app daves-lamp-environment

Your app should contain a webroot/ subdirectory which will serve as the document root.

You can create a scripts/ directory inside your app, which can contain up to two scripts:

  • install.sh (called when your app is first installed)
  • update.sh (called every time your container is started)

The scripts are run after MySQL starts but before Apache starts, so you can use them to configure your database users as well as any special Apache configurations you may need.

Have fun!

-- Dave Hensley

About

A Docker image that creates a LAMP environment which I use for development.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages