diff --git a/DOCKER.md b/DOCKER.md index 98c8a1a..6d283a6 100644 --- a/DOCKER.md +++ b/DOCKER.md @@ -1,13 +1,13 @@ ## Docker - [index][1] -- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4 - - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 - - [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm - - [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1 - - [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15 - - [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15 - - [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB ) +- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5 + - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30 + - [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm + - [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2 + - [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16 + - [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16 + - [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB ) - [docker tips][5] ### Networking @@ -36,6 +36,7 @@ docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end} 172.22.0.6 wordpress.docker 172.22.0.7 fpm.docker 172.22.0.8 symfony.docker +172.22.0.9 php7.docker # < ``` @@ -74,13 +75,13 @@ docker stats container #### map -[db.docker] (http://db.docker) -[pma.docker] (http://pma.docker) -[gogs.docker] (http://gogs.docker) -[bo-payment.docker] (http://bo-payment.docker) -[wordpress.docker] (http://wordpress.docker) -[fpm.docker] (http://symfony.docker) -[symfony.docker] (http://symfony.docker) +[db.docker](http://db.docker) +[pma.docker](http://pma.docker) +[gogs.docker](http://gogs.docker) +[bo-payment.docker](http://bo-payment.docker) +[wordpress.docker](http://wordpress.docker) +[fpm.docker](http://symfony.docker) +[symfony.docker](http://symfony.docker) #### Mysql ``` @@ -124,6 +125,18 @@ docker run --name apache --restart=always \ -d pluie/alpine-apache ``` +#### Apache Php7 +``` +cd /home/dev/docker + +docker run --name php7 --restart=always \ +--net home0 -h bo-payment.docker --ip 172.22.0.9 --link mysql:db \ +-v $(pwd)/repo/pws-server:/app \ +-e HTTP_SERVER_NAME=bo-payment.docker \ +-e WWW_DIR=web \ +-d pluie/alpine-apache-php7 +``` + #### Wordpress ``` cd /home/dev/docker @@ -155,6 +168,17 @@ docker run --name symfony --restart=always \ -e SYMFONY_VERSION=2.8 \ -v $(pwd)/repo/myapp:/app \ -d pluie/alpine-symfony +``` + +### Symfony Php7 +``` +cd /home/dev/docker +docker run --name symfony --restart=always \ +--net home0 -h symfony.docker --ip 172.22.0.8 --link=mysql:db \ +-e HTTP_SERVER_NAME=symfony \ +-e SYMFONY_VERSION=3.2 \ +-v $(pwd)/repo/myapp:/app \ +-d pluie/alpine-symfony-php7 ``` [1]: https://github.com/pluie-org/docker-images diff --git a/README.md b/README.md index 572ef63..0a59f61 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,13 @@ various based images for Docker ## Available Images - [index][1] -- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4 - - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 - - [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm - - [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1 - - [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15 - - [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15 - - [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB ) +- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5 + - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30 + - [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm + - [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2 + - [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16 + - [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16 + - [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB ) - [docker tips][5] ## Base Image Structure diff --git a/pluie/alpine-apache-fpm/README.md b/pluie/alpine-apache-fpm/README.md index 86402d7..0261805 100644 --- a/pluie/alpine-apache-fpm/README.md +++ b/pluie/alpine-apache-fpm/README.md @@ -1,23 +1,23 @@ # pluie/alpine-apache - [index][1] -- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4 - - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 - - [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm - - [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1 - - [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15 - - [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15 - - [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB ) +- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5 + - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30 + - [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm + - [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2 + - [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16 + - [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16 + - [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB ) - [docker tips][5] -Extend pluie/alpine with __apache 2.4.23__ and __php 5.6.24__ with FPM +Extend pluie/alpine with __apache 2.4.25__ and __php 5.6.30__ with FPM - you can use env var at container creation : __HTTP_SERVER_NAME__ (default : fpm.docker ortherwise edit app/vhost later) ## Image Size -- image ~ 50 MB +- image ~ 51 MB ## ENV variables diff --git a/pluie/alpine-apache-fpm/files.tar b/pluie/alpine-apache-fpm/files.tar index b0b790d..515a7cd 100644 Binary files a/pluie/alpine-apache-fpm/files.tar and b/pluie/alpine-apache-fpm/files.tar differ diff --git a/pluie/alpine-apache-fpm/install.d/10-apache.sh b/pluie/alpine-apache-fpm/install.d/10-apache.sh index 167940f..e0f16a2 100755 --- a/pluie/alpine-apache-fpm/install.d/10-apache.sh +++ b/pluie/alpine-apache-fpm/install.d/10-apache.sh @@ -2,7 +2,7 @@ # @app pluie/alpine-apache # @author a-Sansara https://git.pluie.org/pluie/docker-images -apk --update add apache2 apache2-proxy apache2-proxy-html apache-mod-fcgid libxml2 \ +apk add apache2 apache2-proxy apache2-proxy-html apache-mod-fcgid libxml2 \ php5-fpm php5-cli php5-phar php5-zlib php5-zip php5-ctype php5-xml php5-pdo_mysql php5-mysqli \ php5-opcache php5-pdo php5-json php5-curl php5-gd php5-mcrypt php5-openssl php5-dom \ # php-pdo_odbc php-soap php-pgsql diff --git a/pluie/alpine-apache-php7/README.md b/pluie/alpine-apache-php7/README.md index bd8ad35..4a7519e 100644 --- a/pluie/alpine-apache-php7/README.md +++ b/pluie/alpine-apache-php7/README.md @@ -1,16 +1,16 @@ # pluie/alpine-apache-php7 - [index][1] -- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4 - - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 - - [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm - - [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1 - - [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15 - - [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15 - - [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB ) +- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5 + - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30 + - [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm + - [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2 + - [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16 + - [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16 + - [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB ) - [docker tips][5] -Extend pluie/alpine with __apache 2.4.25__ and __php 7.0.15__ +Extend pluie/alpine with __apache 2.4.25__ and __php 7.0.16__ - error log are attached to stdout - no need port redirection @@ -20,7 +20,7 @@ Extend pluie/alpine with __apache 2.4.25__ and __php 7.0.15__ ## Image Size -- image ~ 50 MB +- image ~ 45 MB ## ENV variables diff --git a/pluie/alpine-apache-php7/files.tar b/pluie/alpine-apache-php7/files.tar index df15b39..d92b67a 100644 Binary files a/pluie/alpine-apache-php7/files.tar and b/pluie/alpine-apache-php7/files.tar differ diff --git a/pluie/alpine-apache-php7/install.d/00-repo.sh b/pluie/alpine-apache-php7/install.d/00-repo.sh index 7130f6a..d523040 100644 --- a/pluie/alpine-apache-php7/install.d/00-repo.sh +++ b/pluie/alpine-apache-php7/install.d/00-repo.sh @@ -9,7 +9,7 @@ #~ http://alpine.gliderlabs.com/alpine/edge/main #~ http://alpine.gliderlabs.com/alpine/edge/testing #~ " >> /etc/apk/repositories -echo "http://dl-5.alpinelinux.org/alpine/edge/community -http://dl-5.alpinelinux.org/alpine/edge/main -http://dl-5.alpinelinux.org/alpine/edge/testing -" > /etc/apk/repositories +#~ echo "http://dl-5.alpinelinux.org/alpine/edge/community +#~ http://dl-5.alpinelinux.org/alpine/edge/main +#~ http://dl-5.alpinelinux.org/alpine/edge/testing +#~ " > /etc/apk/repositories diff --git a/pluie/alpine-apache-php7/install.d/10-apache.sh b/pluie/alpine-apache-php7/install.d/10-apache.sh index 154eec7..3af51e5 100755 --- a/pluie/alpine-apache-php7/install.d/10-apache.sh +++ b/pluie/alpine-apache-php7/install.d/10-apache.sh @@ -2,7 +2,7 @@ # @app pluie/alpine-apache # @author a-Sansara https://git.pluie.org/pluie/docker-images -apk -U upgrade && apk --update add apache2 apache2-proxy \ +apk add apache2 apache2-proxy \ php7-apache2 php7-mbstring php7-session php7-phar php7-zlib php7-zip php7-ctype \ php7-mysqli php7-xml php7-pdo_mysql php7-opcache php7-pdo php7-json php7-curl \ php7-gd php7-mcrypt php7-openssl php7-dom \ diff --git a/pluie/alpine-apache-php7/pre-init.d/10-apache.sh b/pluie/alpine-apache-php7/pre-init.d/10-apache.sh index ed914f4..4a2b1de 100755 --- a/pluie/alpine-apache-php7/pre-init.d/10-apache.sh +++ b/pluie/alpine-apache-php7/pre-init.d/10-apache.sh @@ -3,6 +3,7 @@ # @author a-Sansara https://git.pluie.org/pluie/docker-images if [ ! -d /app/$WWW_DIR ]; then + echo create dir mode CREATE_WWW_DIR=1 mkdir -p /app/$WWW_DIR fi diff --git a/pluie/alpine-apache/README.md b/pluie/alpine-apache/README.md index 5db30d4..2290c03 100644 --- a/pluie/alpine-apache/README.md +++ b/pluie/alpine-apache/README.md @@ -1,16 +1,16 @@ # pluie/alpine-apache - [index][1] -- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4 - - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 - - [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm - - [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1 - - [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15 - - [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15 - - [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB ) +- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5 + - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30 + - [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm + - [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2 + - [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16 + - [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16 + - [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB ) - [docker tips][5] -Extend pluie/alpine with __apache 2.4.23__ and __php 5.6.24__ +Extend pluie/alpine with __apache 2.4.25__ and __php 5.6.30__ - error log are attached to stdout - no need port redirection diff --git a/pluie/alpine-apache/files.tar b/pluie/alpine-apache/files.tar index d2b54fd..04ddd83 100644 Binary files a/pluie/alpine-apache/files.tar and b/pluie/alpine-apache/files.tar differ diff --git a/pluie/alpine-apache/install.d/10-apache.sh b/pluie/alpine-apache/install.d/10-apache.sh index 730232b..0547a88 100755 --- a/pluie/alpine-apache/install.d/10-apache.sh +++ b/pluie/alpine-apache/install.d/10-apache.sh @@ -2,7 +2,7 @@ # @app pluie/alpine-apache # @author a-Sansara https://git.pluie.org/pluie/docker-images -apk --update add apache2 apache2-proxy \ +apk add apache2 apache2-proxy \ php5-apache2 php5-cli php5-phar php5-zlib php5-zip php5-ctype php5-mysqli php5-xml php5-pdo_mysql \ php5-opcache php5-pdo php5-json php5-curl php5-gd php5-mcrypt php5-openssl php5-dom \ # php-pdo_odbc php-soap php-pgsql diff --git a/pluie/alpine-fpm-php7/files.tar b/pluie/alpine-fpm-php7/files.tar index 7b493ba..507614b 100644 Binary files a/pluie/alpine-fpm-php7/files.tar and b/pluie/alpine-fpm-php7/files.tar differ diff --git a/pluie/alpine-fpm-php7/install.d/00-repo.sh b/pluie/alpine-fpm-php7/install.d/00-repo.sh index b00cbfd..be41c90 100644 --- a/pluie/alpine-fpm-php7/install.d/00-repo.sh +++ b/pluie/alpine-fpm-php7/install.d/00-repo.sh @@ -2,7 +2,7 @@ # @app pluie/alpine-apache-php7 # @author a-Sansara https://git.pluie.org/pluie/docker-images # -echo "http://dl-5.alpinelinux.org/alpine/edge/community -http://dl-5.alpinelinux.org/alpine/edge/main -http://dl-5.alpinelinux.org/alpine/edge/testing -" > /etc/apk/repositories +#~ echo "http://dl-5.alpinelinux.org/alpine/edge/community +#~ http://dl-5.alpinelinux.org/alpine/edge/main +#~ http://dl-5.alpinelinux.org/alpine/edge/testing +#~ " > /etc/apk/repositories diff --git a/pluie/alpine-fpm-php7/install.d/10-apache.sh b/pluie/alpine-fpm-php7/install.d/10-apache.sh index 65cdb2e..a1ee3ec 100755 --- a/pluie/alpine-fpm-php7/install.d/10-apache.sh +++ b/pluie/alpine-fpm-php7/install.d/10-apache.sh @@ -2,7 +2,7 @@ # @app pluie/alpine-apache # @author a-Sansara https://git.pluie.org/pluie/docker-images -apk --update add apache2 apache2-proxy apache2-proxy-html apache-mod-fcgid php7-fpm \ +apk add apache2 apache2-proxy apache2-proxy-html apache-mod-fcgid php7-fpm \ php7-apache2 php7-mbstring php7-session php7-phar php7-zlib php7-zip php7-ctype \ php7-mysqli php7-xml php7-pdo_mysql php7-opcache php7-pdo php7-json php7-curl \ php7-gd php7-mcrypt php7-openssl php7-dom \ diff --git a/pluie/alpine-mysql/README.md b/pluie/alpine-mysql/README.md index 79dabd9..c922cd7 100644 --- a/pluie/alpine-mysql/README.md +++ b/pluie/alpine-mysql/README.md @@ -1,16 +1,16 @@ # pluie/alpine-mysql - [index][1] -- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4 - - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 - - [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm - - [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1 - - [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15 - - [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15 - - [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB ) +- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5 + - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30 + - [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm + - [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2 + - [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16 + - [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16 + - [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB ) - [docker tips][5] -Extend pluie/alpine with mysql (MariaDb/10.1.14) +Extend pluie/alpine with mysql (MariaDb/10.1.22) Project comes with various scripts to execute basic tasks such as : - dbcreate - dbdump @@ -21,7 +21,7 @@ Root access to database is only permit on localhost ## Image Size -- image ~ 172 MB +- image ~ 181 MB ## Image Volumes @@ -69,8 +69,9 @@ for example : $ docker run --name pma -p 8080:80 --link mysql:db -d phpmyadmin/phpmyadmin ``` -and phpmyadmin is accessible via http://localhost:8080/ and linked to your mysql container - +and __phpmyadmin__ is accessible via `http://localhost:8080/` and linked to your mysql container +(by the way on dev, you don't need to expose your 8080 port too... simply use a bridge network and update your +`/etc/hosts` file - see [ docker tips ][5] for that) ### Existing Scripts @@ -106,7 +107,7 @@ $ docker exec -it mysql "mysql -udev -pmysql" to connect to the mysql server as root : ``` -$ docker exec -it mysql "mysql -uroot" +$ docker exec -it mysql mysql ``` to connect to the mysql container as root : ``` diff --git a/pluie/alpine-mysql/files.tar b/pluie/alpine-mysql/files.tar index 5e12851..92e6f29 100644 Binary files a/pluie/alpine-mysql/files.tar and b/pluie/alpine-mysql/files.tar differ diff --git a/pluie/alpine-mysql/install.d/10-mysql.sh b/pluie/alpine-mysql/install.d/10-mysql.sh index 961a0f5..e364ddf 100755 --- a/pluie/alpine-mysql/install.d/10-mysql.sh +++ b/pluie/alpine-mysql/install.d/10-mysql.sh @@ -2,4 +2,4 @@ # @app pluie/alpine-mysql # @author a-Sansara https://git.pluie.org/pluie/docker-images -apk --update add mysql mysql-client pwgen \ +apk add mysql mysql-client pwgen \ diff --git a/pluie/alpine-symfony-php7/README.md b/pluie/alpine-symfony-php7/README.md index 5a0a239..ed56433 100644 --- a/pluie/alpine-symfony-php7/README.md +++ b/pluie/alpine-symfony-php7/README.md @@ -1,13 +1,13 @@ # pluie/alpine-symfony-php7 - [index][1] -- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4 - - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 - - [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm - - [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1 - - [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15 - - [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15 - - [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB ) +- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5 + - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30 + - [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm + - [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2 + - [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16 + - [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16 + - [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB ) - [docker tips][5] Extend pluie/alpine-apache-php7. @@ -17,7 +17,7 @@ the symfony framework with $SYMFONY_VERSION version on the /app directory ## Image Size -- image ~ 82 MB +- image ~ 77 MB ## ENV variables @@ -65,6 +65,11 @@ $ docker run --name symfony -d --link=mysql:db -e HTTP_SERVER_NAME=yourServerNam $ docker exec -it symfony bash ``` +## Run the console + +``` +$ docker exec -it symfony php /app/bin/console --ansi +``` [1]: https://github.com/pluie-org/docker-images [2]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine diff --git a/pluie/alpine-symfony-php7/files.tar b/pluie/alpine-symfony-php7/files.tar index 3c22fcf..4b7229e 100644 Binary files a/pluie/alpine-symfony-php7/files.tar and b/pluie/alpine-symfony-php7/files.tar differ diff --git a/pluie/alpine-symfony-php7/install.d/10-symfony.sh b/pluie/alpine-symfony-php7/install.d/10-symfony.sh index a8883c1..2983183 100755 --- a/pluie/alpine-symfony-php7/install.d/10-symfony.sh +++ b/pluie/alpine-symfony-php7/install.d/10-symfony.sh @@ -2,6 +2,6 @@ # @app pluie/alpine-symfony # @author a-Sansara https://git.pluie.org/pluie/docker-images -apk -U add php7-iconv php7-intl php7-posix +apk add php7-iconv php7-intl php7-posix curl -LsS https://symfony.com/installer -o /usr/bin/symfony chmod +x /usr/bin/symfony diff --git a/pluie/alpine-symfony-php7/pre-init.d/10-symfony.sh b/pluie/alpine-symfony-php7/pre-init.d/10-symfony.sh index c39de2f..85e12f8 100755 --- a/pluie/alpine-symfony-php7/pre-init.d/10-symfony.sh +++ b/pluie/alpine-symfony-php7/pre-init.d/10-symfony.sh @@ -8,7 +8,7 @@ if [ ! -z "$CREATE_WWW_DIR" ]; then rm -rf /app/web mv -f app/* /app/ chown -R 1000:apache /app/ - chown -R 1000:apache /app/var + chown -R 774:apache /app/var chmod -R g+w /app CTN_IP=$(ip route | cut -d ' ' -f3 | head -n1) sed -i "/::1/s//::1', '$CTN_IP/" /app/web/app_dev.php diff --git a/pluie/alpine-symfony/README.md b/pluie/alpine-symfony/README.md index bcdabb8..0b7139d 100644 --- a/pluie/alpine-symfony/README.md +++ b/pluie/alpine-symfony/README.md @@ -1,23 +1,23 @@ # pluie/alpine-symfony - [index][1] -- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4 - - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 - - [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm - - [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1 - - [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15 - - [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15 - - [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB ) +- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5 + - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30 + - [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm + - [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2 + - [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16 + - [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16 + - [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB ) - [docker tips][5] Extend pluie/alpine-apache-fpm. if __/app/$WWW_DIR__ does not exits then __pluie/alpine-symfony__ install -the symfony framework with $SYMFONY_VERSION version on the /app directory +the symfony framework with `$SYMFONY_VERSION` version on the `/app` directory ## Image Size -- image ~ 82 MB +- image ~ 83 MB ## ENV variables @@ -59,6 +59,12 @@ $ docker run --name symfony -d --link=mysql:db -e HTTP_SERVER_NAME=yourServerNam ``` $ docker exec -it symfony bash +``` + +## Run the console + +``` +$ docker exec -it symfony php /app/bin/console --ansi ``` [1]: https://github.com/pluie-org/docker-images diff --git a/pluie/alpine-symfony/files.tar b/pluie/alpine-symfony/files.tar index 76c04b4..c380a3a 100644 Binary files a/pluie/alpine-symfony/files.tar and b/pluie/alpine-symfony/files.tar differ diff --git a/pluie/alpine-symfony/install.d/10-symfony.sh b/pluie/alpine-symfony/install.d/10-symfony.sh index c1ff563..41ab8ec 100755 --- a/pluie/alpine-symfony/install.d/10-symfony.sh +++ b/pluie/alpine-symfony/install.d/10-symfony.sh @@ -2,6 +2,6 @@ # @app pluie/alpine-symfony # @author a-Sansara https://git.pluie.org/pluie/docker-images -apk -U add php5-iconv php5-intl php5-posix +apk add php5-iconv php5-intl php5-posix curl -LsS https://symfony.com/installer -o /usr/bin/symfony chmod +x /usr/bin/symfony diff --git a/pluie/alpine-symfony/pre-init.d/10-symfony.sh b/pluie/alpine-symfony/pre-init.d/10-symfony.sh index 7c8397f..e74b8d4 100644 --- a/pluie/alpine-symfony/pre-init.d/10-symfony.sh +++ b/pluie/alpine-symfony/pre-init.d/10-symfony.sh @@ -9,6 +9,7 @@ if [ ! -z "$CREATE_WWW_DIR" ]; then mv -f app/* /app/ chown -R 1000:apache /app/ chmod -R 777 /app/var + chmod -R g+w /app CTN_IP=$(ip route | cut -d ' ' -f3 | head -n1) sed -i "/::1/s//::1', '$CTN_IP/" /app/web/app_dev.php fi diff --git a/pluie/alpine/Dockerfile b/pluie/alpine/Dockerfile index 538bccd..908b0c3 100644 --- a/pluie/alpine/Dockerfile +++ b/pluie/alpine/Dockerfile @@ -1,7 +1,7 @@ # @app pluie/alpine # @author a-Sansara https://git.pluie.org/pluie/docker-images -FROM alpine:3.4 +FROM alpine:3.5 MAINTAINER a-Sansara https://github.com/a-sansara diff --git a/pluie/alpine/README.md b/pluie/alpine/README.md index 6fc6166..870067a 100644 --- a/pluie/alpine/README.md +++ b/pluie/alpine/README.md @@ -1,13 +1,13 @@ # pluie/alpine - [index][1] -- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4 - - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 - - [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm - - [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.2 - - [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15 - - [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15 - - [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB ) +- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5 + - [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30 + - [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm + - [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2 + - [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16 + - [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16 + - [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB ) - [docker tips][5] This Image provide a Linux Alpine distribution with : @@ -27,7 +27,7 @@ apk add ca-certificates wget && update-ca-certificates ## Image Size -- very small image < 10 MB +- very small image ~ 9 MB ## Image Usage @@ -59,13 +59,13 @@ project/ ``` you can easily create your own images based on this structure. -keep an eye to pluie/alpine-apache & pluie/alpine-mysql wich extend pluie/alpine +keep an eye to pluie/alpine-apache, pluie/alpine-apache-php7 & pluie/alpine-mysql wich extend pluie/alpine ## Extend pluie/alpine Image RUN instructions are minimized -on extended image you can only use : +on extended image you only need to use : ``` RUN bash /scripts/install.sh ``` @@ -93,7 +93,7 @@ ENV SHENV_NAME=Apache \ WWW_DIR=www \ WWW_INDEX=index.php \ FIX_OWNERSHIP=1 \ - TZ=Europe/Paris + TZ=Europe/Paris EXPOSE 80 diff --git a/pluie/alpine/files.tar b/pluie/alpine/files.tar index ad837ae..e7a86ef 100644 Binary files a/pluie/alpine/files.tar and b/pluie/alpine/files.tar differ