This commit is contained in:
a-sansara 2016-07-29 10:56:45 +02:00
commit 7b86da8269
3 changed files with 15 additions and 15 deletions

View File

@ -1,6 +1,6 @@
# pluie/alpine-apache # pluie/alpine-apache
This Image extend pluie/alpine with apache2 2.4.16 Extend pluie/alpine with apache 2.4.16
- error log are attached to stdout - error log are attached to stdout
- no need port redirection - no need port redirection
@ -8,12 +8,12 @@ This Image extend pluie/alpine with apache2 2.4.16
- you can still use ever your local http & sql server while your container(s) are running - you can still use ever your local http & sql server while your container(s) are running
## Docker image size ## Image Size
- image ~ 37 MB - image ~ 37 MB
## Docker image volumes ## Image Volumes
__/app__ directory is a docker volume bind to your app project (silex/symfony etc) __/app__ directory is a docker volume bind to your app project (silex/symfony etc)
@ -33,7 +33,7 @@ by default it use the apache rewrite module to redirect all uri to the unique en
``` ```
## Docker image usage ## Image Usage
chdir to your project directory chdir to your project directory
``` ```

View File

@ -1,18 +1,18 @@
# pluie/alpine-mysql # pluie/alpine-mysql
This Image extend pluie/alpine with mysql (mariadb) 5.5.47 Extend pluie/alpine with mysql (mariadb) 5.5.47
## Docker image size ## Image Size
- image ~ 160 MB - image ~ 160 MB
## Docker image volumes ## Image Volumes
__/var/lib/mysql__ : mysql database directory __/var/lib/mysql__ : mysql database directory
__/dump__ : directory to store various mysql scripts __/dump__ : directory to store various mysql scripts
## Docker ENV variables ## ENV variables
__MYSQL_DATABASE__ : create specified database at startup __MYSQL_DATABASE__ : create specified database at startup
__MYSQL_USER__ : create specified user at startup (and grant all rights to __MYSQL_DATABASE__) __MYSQL_USER__ : create specified user at startup (and grant all rights to __MYSQL_DATABASE__)
@ -20,13 +20,13 @@ __MYSQL_PASSWORD__
__MYSQL_ROOT_PASSWORD__ : don't really need it. a random root password is generated if none __MYSQL_ROOT_PASSWORD__ : don't really need it. a random root password is generated if none
## Docker image usage ## Image Usage
``` ```
$ docker run --name mysql -p 3306 -v /home/docker/db/mysql:/var/lib/mysql -v /home/docker/db/dump:/dump -e MYSQL_DATABASE=mybase -e MYSQL_USER=dev -e MYSQL_PASSWORD=mysql -it pluie/alpine-mysqldocker $ docker run --name mysql -p 3306 -v /home/docker/db/mysql:/var/lib/mysql -v /home/docker/db/dump:/dump -e MYSQL_DATABASE=mybase -e MYSQL_USER=dev -e MYSQL_PASSWORD=mysql -it pluie/alpine-mysqldocker
``` ```
### root usage ### Root Usage
a root user is created at startup (if database directory is empty) a root user is created at startup (if database directory is empty)
root login is permit only on localhost root login is permit only on localhost
@ -45,7 +45,7 @@ $ mysql -uroot mybase < /dump/mydump.sql
etc. etc.
### user usage ### User usage
locally (on host) you can run (with appropriate user : pass) : locally (on host) you can run (with appropriate user : pass) :
``` ```
@ -56,7 +56,7 @@ or if you want use the mysql client of the container :
docker exec -it mysql "mysql -h ipmysqlcontainer -udev -pmysql" docker exec -it mysql "mysql -h ipmysqlcontainer -udev -pmysql"
``` ```
## Link container ## Link Container
to link this container to another, use the default docker behavior : to link this container to another, use the default docker behavior :
``` ```

View File

@ -10,18 +10,18 @@ Base image : [gliderlabs/alpine:3.2] (https://registry.hub.docker.com/u/gliderla
This project come with a structure to facilitate further images (like pluie/alpine-apache & pluie/alpine-mysql) This project come with a structure to facilitate further images (like pluie/alpine-apache & pluie/alpine-mysql)
## Docker image size ## Image Size
- very small image < 10 MB - very small image < 10 MB
## Docker image usage ## Image Usage
``` ```
$ docker run --name alpine pluie/alpine $ docker run --name alpine pluie/alpine
``` ```
## Docker image structure ## Image Structure
``` ```
project/ project/