Skip to content

Instantly share code, notes, and snippets.

@chanux
Created September 18, 2013 15:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save chanux/6610593 to your computer and use it in GitHub Desktop.
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