Dockerfile and associated other stuff for building a LAMP stack
Shell
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead, 2 commits behind jbfink:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Dockerfile
LICENSE.txt
README.md
foreground.sh
start.sh
supervisord.conf

README.md

(N.B. the way that Docker handles permissions may vary depending on your current Docker version. If you're getting errors like

dial unix /var/run/docker.sock: permission denied

when you run the below commands, simply use sudo. This is a known issue.)

This repo contains a recipe for making a Docker container, with Apache, MySQL and PHP. To build, make sure you have Docker installed, clone this repo somewhere, and then run:

docker build -t <yourname>/lampstack .

Or, alternately, build DIRECTLY from the github repo like some sort of SUPER FUTURISTIC FLYING CAR MECHANIC:

docker build -t <yourname>/lampstack git://github.com/jbfink/docker-lampstack.git

Then run it! Woo!

docker run -d <yourname>/lampstack

Check docker logs after running to see MySQL root password, as so

echo $(docker logs <container-id> | sed -n 1p)