Skip to content

johnsmithm/my-docker-drupal

Repository files navigation

This repository contain a docker setup for drupal sites.
It download the drupal files from git and link the database with parameters from run command.
Drupal uses an external database.

DEPLOY DEVELOPMENT SITE:

0.Install docker on your machine!
1.Clone the repository
2.Go to that repository
3.Change the parameters in the run.sh command(database,username of the database, password, hostname)
4.In order to run the container with standard setup:
	sudo ./run.sh

In order to visi the site go to: http:localhost:8003/
In order to edit files go to /tmp/data 

SYNC CHANGES WITH PRODUCTION
1. commit/push changes to github
2. sync database with production database using drush(not configured yet)


Install Docker on ubuntu 12
add docker update link to list of ubuntu updates
sudo apt-get update
sudo apt-get install docker-engine
sudo apt-get install docker.io #not sure, not needed

Usefull docker commands:

docker ps -a #existed containers but can be restarted
docker ps #runing containers
docker images # show inages
docker start v1.1 
docker stop v1.1 
docker rm v1.1 
sudo docker exec -it v1.1 bash # run shell of the continer with name v1.1

# v1.1 is name(or containerID)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published