Skip to content

Instantly share code, notes, and snippets.

Created September 18, 2013 15:10
What would you like to do?
Files required in the guide for setting up development environment on docker.
a2dissite default
apache2ctl graceful
/usr/bin/mysqld_safe &
# Build the image of ubuntu 12.04 LTS
from ubuntu:precise
# Run apt-get update
run apt-get -y update
# Install LAMP
run DEBIAN_FRONTEND=noninteractive apt-get -y install lamp-server^
run apt-get -y install vim-tiny
# Put custom scripts in the container and give proper permissions to them
add abracadabra /usr/local/bin/abracadabra
run chmod 755 /usr/local/bin/abracadabra
add wordpress.vhost /etc/apache2/sites-available/wordpress
run a2ensite wordpress
# Expose port 80 to the host machine
expose 80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/wordpress
<Directory /var/www/wordpress/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment