Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Files required in the guide for setting up development environment on docker. http://play.thinkcube.com/development-environment-on-docker
#!/bin/bash
a2dissite default
apache2ctl graceful
/usr/bin/mysqld_safe &
#DOCKER-VERSION 0.6.1
# 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
</Directory>
# 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
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment