Created
September 18, 2013 15:10
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
a2dissite default | |
apache2ctl graceful | |
/usr/bin/mysqld_safe & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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