This repo contains a recipe for making a [Docker](http://docker.io) baseimage using Linux, Apache, MySQL, git, drush, and more.
To build, make sure you have Docker [installed](http://www.docker.io/gettingstarted/).
Ce dépot va vous permettre de créer une image [Docker](http://docker.io) de base, contenant Linux, Apache, MySQL, git, drush et d'autres paquets utiles pour développer et faire tourner un site Drupal. Pour l'utiliser, vous devez avoir [installé Docker](http://www.docker.io/gettingstarted/).
This image is used in other projects like [Drupal sfl-boilerplate](https://gitlab.savoirfairelinux.com/drupal/sfl-boilerplate)and the purpouse is to provide to others Drupal projects a baseimage with all dependency installed to make tests and install Drupal.
Cette image est utilisé pour plusieurs projets Drupal comme [SFL Boilerplate](https://gitlab.savoirfairelinux.com/drupal/sfl-boilerplate)ou [My Dauphine](https://gitlab.savoirfairelinux.com/paris-dauphine/dauphine-espace-etudiant). Le but est de fournir une image de base que l'on pourra utiliser pour chacun de nos projets Drupal.
## Install docker:
Si vous avez déjà travaillé sur un site Drupal avec Docker, il y a des chances que vous ayez déjà installé cette image. Vous pouvez le constater en éxecutant la commande :
Log into your Ubuntu installation as a user with sudo privileges.
$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
sflinux/baseimage latest a57eacb74c44 4 days ago 723.7 MB
Verify that you have wget installed.
```
$ which wget
```
If wget isn't installed, install it after updating your manager:
```
$ sudo apt-get update $ sudo apt-get install wget
```
Get the latest Docker package.
```
$ wget -qO- https://get.docker.com/ | sh
```
The system prompts you for your sudo password. Then, it downloads and installs Docker and its dependencies.
Si vous voyez l'image sflinux/baseimage, vous pouvez installer l'image du projet sans problème. Sinon, poursuivez cette procédure
Verify docker is installed correctly.
```
$ sudo docker version
```
This command should show you the version of docker installed in your system
Installation de Docker
----------------------
Add your user to the docker group to be able to execute docker command wihtout sudo
```
$ adduser <user> docker
```
Remember logout and login to the last command take effect.
Cette étape est inutile si vous avez déjà installé Docker.
#### To install docker in other OS look [here](https://docs.docker.com/installation)
La [procédure d'installation](https://docs.docker.com/installation) est décrite sur le site officiel.
You generally not will need to run this image, it will be used generally to build other images
Ceci fait, lancez la création de l'image :
$ docker build -t sflinux/baseimage .
## Contributing
Feel free to fork and contribute to this code. :)
Ça peut être une opération relativement longue. Une fois terminé, vous devez voir le message : "Successfully built {hash}"
Vous disposez maintenant de l'image de base que l'on utilisera pour tous les projets Drupal.
## Authors
Vous pouvez vérfier qu'elle existe en faisant :
Created and maintained by [Ernesto Rodriguez Ortiz](ernesto.rodriguezortiz@savoirfairelinux.com>)
## License
GPL v2
\ No newline at end of file
$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
sflinux/baseimage latest a57eacb74c44 4 days ago 723.7 MB
Plus d'infos à propos de ce projet
----------------------------------
Ce projet utilise lui même une image de base phusion/baseimage pour se construire correctement, avec l'ensemble des paquets nécessaires au développement d'un site Drupal.
Pour en savoir plus à propos de phusion/baseimage, et notamment pourquoi on a choisi cette image plutôt que ubuntu/14.04, jetez un coup d'oeil ici : [Phusion Baseimage](https://registry.hub.docker.com/u/phusion/baseimage/).
Lancer un conteneur à partir de cette image est inutile, c'est une image qui servira de base pour les images projet.
Contribution
------------
N'hésitez pas, toute amélioration est bonne à prendre. :)
Auteurs
-------
Créé et maintenu par [Ernesto Rodriguez Ortiz](ernesto.rodriguezortiz@savoirfairelinux.com).
Documentation par [Philippe MOUCHEL](philippe.mouchel@savoirfairelinux.com).