Commit 6f24e38b authored by Ernesto Rodriguez Ortiz's avatar Ernesto Rodriguez Ortiz
Browse files

docker: Update the README information.

parent 7ffec458
Voir INSTALL.txt pour les instructions d'installation.
Jenkin job:
This repo contains a recipe for making a [Docker]( image for Drupal.
To build, make sure you have Docker [installed](
This will try to go in line with [Drupal automated-testing](
## Install docker:
First, check that your APT system can deal with https URLs: the file /usr/lib/apt/methods/https should exist. If it doesn't, you need to install the package apt-transport-https.
[ -e /usr/lib/apt/methods/https ] || {
apt-get update
apt-get install apt-transport-https
Then, add the Docker repository key to your local keychain.
sudo apt-key adv --keyserver hkp:// --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
Add the Docker repository to your apt sources list, update and install the lxc-docker package.
sudo sh -c "echo deb docker main > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get install lxc-docker
Add your user to the docker group to be able to execute docker command wihtout sudo
adduser <user> docker
## This project depend of [Docker-BaseImage](
This project use like [Docker-BaseImage]( base image. Then we first need to clone this project and build the sflinux/baseimage. Information about build this image is here [Docker-BaseImage](, but in resume you need:
Clone the repo some where
git clone
cd docker-lampd
and then build it:
sudo docker build -t sflinux/baseimage .
This can take a while but should eventually return a command prompt. It's done when it says "Successfully built {hash}"
That's it!
## Now is time to build our project sfl-boilerplate.
Is almost the same procedure
Clone the repo some where but you need to clone the branch docker
git clone -b docker
and then build it:
docker build -t boilerplate/drupal sfl-boilerplate/
That's it!
At this point if everything is OK, you should have two images. You can run this to check
docker images
boilerplate/drupal latest ff62a9fa7bde 2 hours ago 837.4 MB
sflinux/baseimage latest a57eacb74c44 5 hours ago 723.7 MB
## Now is time to run the image and see the Drupal site installed.
Using the options -d and -p the docker container will run in deteached mode and will connect your localhost por 8000 to the por 80 of the container.
docker run -d -p 8000:80 boilerplate/drupal
Open your browser at http://localhost:8000 and you should be able to see the Drupal site.
## Contributing
Feel free to fork and contribute to this code. :)
## Authors
Created and maintained by [Ernesto Rodriguez Ortiz][author] (>)
## License
GPL v2
Pour build le docker image, il faut telecharge et build l'image de base qui se trouve:
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment