Compare commits
No commits in common. "master" and "1.4" have entirely different histories.
58
DOCKER.md
58
DOCKER.md
|
@ -1,16 +1,13 @@
|
||||||
## Docker
|
## Docker
|
||||||
|
|
||||||
- [index][1]
|
- [index][1]
|
||||||
- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5
|
- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4
|
||||||
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30
|
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24
|
||||||
- [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm
|
- [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm
|
||||||
- [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2
|
- [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1
|
||||||
- [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16
|
- [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15
|
||||||
- [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16
|
- [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15
|
||||||
- [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB )
|
- [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB )
|
||||||
- [pluie/libecho][10] ( ~288 MB ) Vala 0.34.2 pluie-echo-0.2
|
|
||||||
- [pluie/ubuntu][12] ( ~141 MB ) Ubuntu 18.04
|
|
||||||
- [pluie/libyaml][11] ( ~538 MB ) Vala 0.40.4 pluie-yaml-0.4
|
|
||||||
- [docker tips][5]
|
- [docker tips][5]
|
||||||
|
|
||||||
### Networking
|
### Networking
|
||||||
|
@ -39,7 +36,6 @@ docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}
|
||||||
172.22.0.6 wordpress.docker
|
172.22.0.6 wordpress.docker
|
||||||
172.22.0.7 fpm.docker
|
172.22.0.7 fpm.docker
|
||||||
172.22.0.8 symfony.docker
|
172.22.0.8 symfony.docker
|
||||||
172.22.0.9 php7.docker
|
|
||||||
# <
|
# <
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -78,13 +74,13 @@ docker stats container
|
||||||
|
|
||||||
#### map
|
#### map
|
||||||
|
|
||||||
[db.docker](http://db.docker)
|
[db.docker] (http://db.docker)
|
||||||
[pma.docker](http://pma.docker)
|
[pma.docker] (http://pma.docker)
|
||||||
[gogs.docker](http://gogs.docker)
|
[gogs.docker] (http://gogs.docker)
|
||||||
[bo-payment.docker](http://bo-payment.docker)
|
[bo-payment.docker] (http://bo-payment.docker)
|
||||||
[wordpress.docker](http://wordpress.docker)
|
[wordpress.docker] (http://wordpress.docker)
|
||||||
[fpm.docker](http://symfony.docker)
|
[fpm.docker] (http://symfony.docker)
|
||||||
[symfony.docker](http://symfony.docker)
|
[symfony.docker] (http://symfony.docker)
|
||||||
|
|
||||||
#### Mysql
|
#### Mysql
|
||||||
```
|
```
|
||||||
|
@ -128,18 +124,6 @@ docker run --name apache --restart=always \
|
||||||
-d pluie/alpine-apache
|
-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
|
#### Wordpress
|
||||||
```
|
```
|
||||||
cd /home/dev/docker
|
cd /home/dev/docker
|
||||||
|
@ -171,17 +155,6 @@ docker run --name symfony --restart=always \
|
||||||
-e SYMFONY_VERSION=2.8 \
|
-e SYMFONY_VERSION=2.8 \
|
||||||
-v $(pwd)/repo/myapp:/app \
|
-v $(pwd)/repo/myapp:/app \
|
||||||
-d pluie/alpine-symfony
|
-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
|
[1]: https://github.com/pluie-org/docker-images
|
||||||
|
@ -193,6 +166,3 @@ docker run --name symfony --restart=always \
|
||||||
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
||||||
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
||||||
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
||||||
[10]: https://github.com/pluie-org/docker-images/tree/master/pluie/libecho
|
|
||||||
[11]: https://github.com/pluie-org/docker-images/tree/master/pluie/libyaml
|
|
||||||
[12]: https://github.com/pluie-org/docker-images/tree/master/pluie/ubuntu
|
|
||||||
|
|
20
README.md
20
README.md
|
@ -5,16 +5,13 @@ various based images for Docker
|
||||||
## Available Images
|
## Available Images
|
||||||
|
|
||||||
- [index][1]
|
- [index][1]
|
||||||
- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5
|
- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4
|
||||||
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30
|
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24
|
||||||
- [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm
|
- [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm
|
||||||
- [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2
|
- [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1
|
||||||
- [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16
|
- [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15
|
||||||
- [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16
|
- [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15
|
||||||
- [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB )
|
- [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB )
|
||||||
- [pluie/libecho][10] ( ~288 MB ) Vala 0.34.2 pluie-echo-0.2
|
|
||||||
- [pluie/ubuntu][12] ( ~141 MB ) Ubuntu 18.04
|
|
||||||
- [pluie/libyaml][11] ( ~538 MB ) Vala 0.40.4 pluie-yaml-0.4
|
|
||||||
- [docker tips][5]
|
- [docker tips][5]
|
||||||
|
|
||||||
## Base Image Structure
|
## Base Image Structure
|
||||||
|
@ -86,6 +83,3 @@ you can keep same __build__ script in any project
|
||||||
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
||||||
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
||||||
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
||||||
[10]: https://github.com/pluie-org/docker-images/tree/master/pluie/libecho
|
|
||||||
[11]: https://github.com/pluie-org/docker-images/tree/master/pluie/libyaml
|
|
||||||
[12]: https://github.com/pluie-org/docker-images/tree/master/pluie/ubuntu
|
|
||||||
|
|
|
@ -1,26 +1,23 @@
|
||||||
# pluie/alpine-apache
|
# pluie/alpine-apache
|
||||||
|
|
||||||
- [index][1]
|
- [index][1]
|
||||||
- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5
|
- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4
|
||||||
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30
|
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24
|
||||||
- [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm
|
- [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm
|
||||||
- [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2
|
- [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1
|
||||||
- [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16
|
- [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15
|
||||||
- [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16
|
- [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15
|
||||||
- [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB )
|
- [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB )
|
||||||
- [pluie/libecho][10] ( ~288 MB ) Vala 0.34.2 pluie-echo-0.2
|
|
||||||
- [pluie/ubuntu][12] ( ~141 MB ) Ubuntu 18.04
|
|
||||||
- [pluie/libyaml][11] ( ~538 MB ) Vala 0.40.4 pluie-yaml-0.4
|
|
||||||
- [docker tips][5]
|
- [docker tips][5]
|
||||||
|
|
||||||
Extend pluie/alpine with __apache 2.4.25__ and __php 5.6.30__ with FPM
|
Extend pluie/alpine with __apache 2.4.23__ and __php 5.6.24__ with FPM
|
||||||
|
|
||||||
- you can use env var at container creation : __HTTP_SERVER_NAME__ (default : fpm.docker ortherwise edit app/vhost later)
|
- you can use env var at container creation : __HTTP_SERVER_NAME__ (default : fpm.docker ortherwise edit app/vhost later)
|
||||||
|
|
||||||
|
|
||||||
## Image Size
|
## Image Size
|
||||||
|
|
||||||
- image ~ 51 MB
|
- image ~ 50 MB
|
||||||
|
|
||||||
## ENV variables
|
## ENV variables
|
||||||
|
|
||||||
|
@ -101,6 +98,3 @@ $ docker exec -it afpm "httpd -h"
|
||||||
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
||||||
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
||||||
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
||||||
[10]: https://github.com/pluie-org/docker-images/tree/master/pluie/libecho
|
|
||||||
[11]: https://github.com/pluie-org/docker-images/tree/master/pluie/libyaml
|
|
||||||
[12]: https://github.com/pluie-org/docker-images/tree/master/pluie/ubuntu
|
|
||||||
|
|
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
# @app pluie/alpine-apache
|
# @app pluie/alpine-apache
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
||||||
|
|
||||||
apk add apache2 apache2-proxy apache2-proxy-html apache-mod-fcgid libxml2 \
|
apk --update 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-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 \
|
php5-opcache php5-pdo php5-json php5-curl php5-gd php5-mcrypt php5-openssl php5-dom \
|
||||||
# php-pdo_odbc php-soap php-pgsql
|
# php-pdo_odbc php-soap php-pgsql
|
||||||
|
|
|
@ -39,7 +39,6 @@ echo
|
||||||
tmpsed="/etc/php5/php.ini"
|
tmpsed="/etc/php5/php.ini"
|
||||||
sed -ir 's/expose_php = On/expose_php = Off/' $tmpsed
|
sed -ir 's/expose_php = On/expose_php = Off/' $tmpsed
|
||||||
sed -i "s|;*date.timezone =.*|date.timezone = ${TZ}|i" $tmpsed
|
sed -i "s|;*date.timezone =.*|date.timezone = ${TZ}|i" $tmpsed
|
||||||
cat $tmpsed | grep "date.timezone"
|
|
||||||
sed -i "s|;*cgi.fix_pathinfo=.*|cgi.fix_pathinfo= 0|i" $tmpsed
|
sed -i "s|;*cgi.fix_pathinfo=.*|cgi.fix_pathinfo= 0|i" $tmpsed
|
||||||
tmpsed="/etc/php5/php-fpm.conf"
|
tmpsed="/etc/php5/php-fpm.conf"
|
||||||
sed -i "s|;*daemonize\s*=\s*yes|daemonize = no|g" $tmpsed
|
sed -i "s|;*daemonize\s*=\s*yes|daemonize = no|g" $tmpsed
|
||||||
|
|
|
@ -9,9 +9,9 @@ fi
|
||||||
if [ ! -f /app/$WWW_DIR/$WWW_INDEX ]; then
|
if [ ! -f /app/$WWW_DIR/$WWW_INDEX ]; then
|
||||||
echo "<?php phpinfo();" > /app/$WWW_DIR/$WWW_INDEX
|
echo "<?php phpinfo();" > /app/$WWW_DIR/$WWW_INDEX
|
||||||
fi
|
fi
|
||||||
tmpsed=/etc/apache2/httpd.conf
|
tmpsed='s#^DocumentRoot ".*#DocumentRoot "/app/'$WWW_DIR'"#g'
|
||||||
sed -i 's#^DocumentRoot ".*#DocumentRoot "/app/'$WWW_DIR'"#g' $tmpsed
|
sed -i "$tmpsed" /etc/apache2/httpd.conf
|
||||||
sed -i 's#AllowOverride none#AllowOverride All#' $tmpsed
|
sed -i 's#AllowOverride none#AllowOverride All#' /etc/apache2/httpd.conf
|
||||||
|
|
||||||
if [ ! -z "$FIX_OWNERSHIP" ] && [ "$FIX_OWNERSHIP" -eq 1 ] && [ -d /app/$WWW_DIR ]; then
|
if [ ! -z "$FIX_OWNERSHIP" ] && [ "$FIX_OWNERSHIP" -eq 1 ] && [ -d /app/$WWW_DIR ]; then
|
||||||
chown -R 1000:apache /app/$WWW_DIR
|
chown -R 1000:apache /app/$WWW_DIR
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
tmpsed="/etc/php5/php.ini"
|
|
||||||
sed -i "s|;*date.timezone =.*|date.timezone = ${TZ}|i" $tmpsed
|
|
||||||
cat $tmpsed | grep "date.timezone"
|
|
|
@ -1,19 +1,16 @@
|
||||||
# pluie/alpine-apache-php7
|
# pluie/alpine-apache-php7
|
||||||
|
|
||||||
- [index][1]
|
- [index][1]
|
||||||
- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5
|
- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4
|
||||||
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30
|
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24
|
||||||
- [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm
|
- [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm
|
||||||
- [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2
|
- [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1
|
||||||
- [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16
|
- [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15
|
||||||
- [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16
|
- [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15
|
||||||
- [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB )
|
- [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB )
|
||||||
- [pluie/libecho][10] ( ~288 MB ) Vala 0.34.2 pluie-echo-0.2
|
|
||||||
- [pluie/ubuntu][12] ( ~141 MB ) Ubuntu 18.04
|
|
||||||
- [pluie/libyaml][11] ( ~538 MB ) Vala 0.40.4 pluie-yaml-0.4
|
|
||||||
- [docker tips][5]
|
- [docker tips][5]
|
||||||
|
|
||||||
Extend pluie/alpine with __apache 2.4.25__ and __php 7.0.16__
|
Extend pluie/alpine with __apache 2.4.25__ and __php 7.0.15__
|
||||||
|
|
||||||
- error log are attached to stdout
|
- error log are attached to stdout
|
||||||
- no need port redirection
|
- no need port redirection
|
||||||
|
@ -23,7 +20,7 @@ Extend pluie/alpine with __apache 2.4.25__ and __php 7.0.16__
|
||||||
|
|
||||||
## Image Size
|
## Image Size
|
||||||
|
|
||||||
- image ~ 45 MB
|
- image ~ 50 MB
|
||||||
|
|
||||||
## ENV variables
|
## ENV variables
|
||||||
|
|
||||||
|
@ -97,6 +94,3 @@ $ docker exec -it php7 "httpd -h"
|
||||||
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
||||||
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
||||||
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
||||||
[10]: https://github.com/pluie-org/docker-images/tree/master/pluie/libecho
|
|
||||||
[11]: https://github.com/pluie-org/docker-images/tree/master/pluie/libyaml
|
|
||||||
[12]: https://github.com/pluie-org/docker-images/tree/master/pluie/ubuntu
|
|
||||||
|
|
Binary file not shown.
|
@ -9,7 +9,7 @@
|
||||||
#~ http://alpine.gliderlabs.com/alpine/edge/main
|
#~ http://alpine.gliderlabs.com/alpine/edge/main
|
||||||
#~ http://alpine.gliderlabs.com/alpine/edge/testing
|
#~ http://alpine.gliderlabs.com/alpine/edge/testing
|
||||||
#~ " >> /etc/apk/repositories
|
#~ " >> /etc/apk/repositories
|
||||||
#~ echo "http://dl-5.alpinelinux.org/alpine/edge/community
|
echo "http://dl-5.alpinelinux.org/alpine/edge/community
|
||||||
#~ http://dl-5.alpinelinux.org/alpine/edge/main
|
http://dl-5.alpinelinux.org/alpine/edge/main
|
||||||
#~ http://dl-5.alpinelinux.org/alpine/edge/testing
|
http://dl-5.alpinelinux.org/alpine/edge/testing
|
||||||
#~ " > /etc/apk/repositories
|
" > /etc/apk/repositories
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# @app pluie/alpine-apache
|
# @app pluie/alpine-apache
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
||||||
|
|
||||||
apk add apache2 apache2-proxy \
|
apk -U upgrade && apk --update add apache2 apache2-proxy \
|
||||||
php7-apache2 php7-mbstring php7-session php7-phar php7-zlib php7-zip php7-ctype \
|
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-mysqli php7-xml php7-pdo_mysql php7-opcache php7-pdo php7-json php7-curl \
|
||||||
php7-gd php7-mcrypt php7-openssl php7-dom \
|
php7-gd php7-mcrypt php7-openssl php7-dom \
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
||||||
|
|
||||||
if [ ! -d /app/$WWW_DIR ]; then
|
if [ ! -d /app/$WWW_DIR ]; then
|
||||||
echo create dir mode
|
|
||||||
CREATE_WWW_DIR=1
|
CREATE_WWW_DIR=1
|
||||||
mkdir -p /app/$WWW_DIR
|
mkdir -p /app/$WWW_DIR
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
tmpsed="/etc/php7/php.ini"
|
|
||||||
sed -i "s|;*date.timezone =.*|date.timezone = ${TZ}|i" $tmpsed
|
|
||||||
cat $tmpsed | grep "date.timezone"
|
|
|
@ -1,19 +1,16 @@
|
||||||
# pluie/alpine-apache
|
# pluie/alpine-apache
|
||||||
|
|
||||||
- [index][1]
|
- [index][1]
|
||||||
- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5
|
- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4
|
||||||
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30
|
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24
|
||||||
- [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm
|
- [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm
|
||||||
- [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2
|
- [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1
|
||||||
- [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16
|
- [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15
|
||||||
- [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16
|
- [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15
|
||||||
- [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB )
|
- [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB )
|
||||||
- [pluie/libecho][10] ( ~288 MB ) Vala 0.34.2 pluie-echo-0.2
|
|
||||||
- [pluie/ubuntu][12] ( ~141 MB ) Ubuntu 18.04
|
|
||||||
- [pluie/libyaml][11] ( ~538 MB ) Vala 0.40.4 pluie-yaml-0.4
|
|
||||||
- [docker tips][5]
|
- [docker tips][5]
|
||||||
|
|
||||||
Extend pluie/alpine with __apache 2.4.25__ and __php 5.6.30__
|
Extend pluie/alpine with __apache 2.4.23__ and __php 5.6.24__
|
||||||
|
|
||||||
- error log are attached to stdout
|
- error log are attached to stdout
|
||||||
- no need port redirection
|
- no need port redirection
|
||||||
|
@ -97,6 +94,3 @@ $ docker exec -it apache "httpd -h"
|
||||||
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
||||||
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
||||||
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
||||||
[10]: https://github.com/pluie-org/docker-images/tree/master/pluie/libecho
|
|
||||||
[11]: https://github.com/pluie-org/docker-images/tree/master/pluie/libyaml
|
|
||||||
[12]: https://github.com/pluie-org/docker-images/tree/master/pluie/ubuntu
|
|
||||||
|
|
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
# @app pluie/alpine-apache
|
# @app pluie/alpine-apache
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
||||||
|
|
||||||
apk add apache2 apache2-proxy \
|
apk --update add apache2 apache2-proxy \
|
||||||
php5-apache2 php5-cli php5-phar php5-zlib php5-zip php5-ctype php5-mysqli php5-xml php5-pdo_mysql \
|
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 \
|
php5-opcache php5-pdo php5-json php5-curl php5-gd php5-mcrypt php5-openssl php5-dom \
|
||||||
# php-pdo_odbc php-soap php-pgsql
|
# php-pdo_odbc php-soap php-pgsql
|
||||||
|
|
|
@ -9,9 +9,9 @@ fi
|
||||||
if [ ! -f /app/$WWW_DIR/$WWW_INDEX ]; then
|
if [ ! -f /app/$WWW_DIR/$WWW_INDEX ]; then
|
||||||
echo "<?php phpinfo();" > /app/$WWW_DIR/$WWW_INDEX
|
echo "<?php phpinfo();" > /app/$WWW_DIR/$WWW_INDEX
|
||||||
fi
|
fi
|
||||||
tmpsed=/etc/apache2/httpd.conf
|
tmpsed='s#^DocumentRoot ".*#DocumentRoot "/app/'$WWW_DIR'"#g'
|
||||||
sed -i 's#^DocumentRoot ".*#DocumentRoot "/app/'$WWW_DIR'"#g' "$tmpsed"
|
sed -i "$tmpsed" /etc/apache2/httpd.conf
|
||||||
sed -i 's#AllowOverride none#AllowOverride All#' "$tmpsed"
|
sed -i 's#AllowOverride none#AllowOverride All#' /etc/apache2/httpd.conf
|
||||||
|
|
||||||
if [ ! -z "$FIX_OWNERSHIP" ] && [ "$FIX_OWNERSHIP" -eq 1 ] && [ -d /app/$WWW_DIR ]; then
|
if [ ! -z "$FIX_OWNERSHIP" ] && [ "$FIX_OWNERSHIP" -eq 1 ] && [ -d /app/$WWW_DIR ]; then
|
||||||
chown -R 1000:apache /app/$WWW_DIR
|
chown -R 1000:apache /app/$WWW_DIR
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
tmpsed="/etc/php5/php.ini"
|
|
||||||
sed -i "s|;*date.timezone =.*|date.timezone = ${TZ}|i" $tmpsed
|
|
||||||
cat $tmpsed | grep "date.timezone"
|
|
|
@ -8,9 +8,6 @@
|
||||||
- [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15
|
- [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-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-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB )
|
||||||
- [pluie/libecho][10] ( ~288 MB ) Vala 0.34.2 pluie-echo-0.2
|
|
||||||
- [pluie/ubuntu][12] ( ~141 MB ) Ubuntu 18.04
|
|
||||||
- [pluie/libyaml][11] ( ~538 MB ) Vala 0.40.4 pluie-yaml-0.4
|
|
||||||
- [docker tips][5]
|
- [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.15__
|
||||||
|
@ -97,6 +94,3 @@ $ docker exec -it php7 "httpd -h"
|
||||||
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
||||||
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
||||||
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
||||||
[10]: https://github.com/pluie-org/docker-images/tree/master/pluie/libecho
|
|
||||||
[11]: https://github.com/pluie-org/docker-images/tree/master/pluie/libyaml
|
|
||||||
[12]: https://github.com/pluie-org/docker-images/tree/master/pluie/ubuntu
|
|
||||||
|
|
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
# @app pluie/alpine-apache-php7
|
# @app pluie/alpine-apache-php7
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
||||||
#
|
#
|
||||||
#~ echo "http://dl-5.alpinelinux.org/alpine/edge/community
|
echo "http://dl-5.alpinelinux.org/alpine/edge/community
|
||||||
#~ http://dl-5.alpinelinux.org/alpine/edge/main
|
http://dl-5.alpinelinux.org/alpine/edge/main
|
||||||
#~ http://dl-5.alpinelinux.org/alpine/edge/testing
|
http://dl-5.alpinelinux.org/alpine/edge/testing
|
||||||
#~ " > /etc/apk/repositories
|
" > /etc/apk/repositories
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# @app pluie/alpine-apache
|
# @app pluie/alpine-apache
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
||||||
|
|
||||||
apk add apache2 apache2-proxy apache2-proxy-html apache-mod-fcgid php7-fpm \
|
apk --update 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-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-mysqli php7-xml php7-pdo_mysql php7-opcache php7-pdo php7-json php7-curl \
|
||||||
php7-gd php7-mcrypt php7-openssl php7-dom \
|
php7-gd php7-mcrypt php7-openssl php7-dom \
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
tmpsed="/etc/php7/php.ini"
|
|
||||||
sed -i "s|;*date.timezone =.*|date.timezone = ${TZ}|i" $tmpsed
|
|
||||||
cat $tmpsed | grep "date.timezone"
|
|
|
@ -1,19 +1,16 @@
|
||||||
# pluie/alpine-mysql
|
# pluie/alpine-mysql
|
||||||
|
|
||||||
- [index][1]
|
- [index][1]
|
||||||
- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5
|
- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4
|
||||||
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30
|
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24
|
||||||
- [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm
|
- [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm
|
||||||
- [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2
|
- [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1
|
||||||
- [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16
|
- [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15
|
||||||
- [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16
|
- [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15
|
||||||
- [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB )
|
- [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB )
|
||||||
- [pluie/libecho][10] ( ~288 MB ) Vala 0.34.2 pluie-echo-0.2
|
|
||||||
- [pluie/ubuntu][12] ( ~141 MB ) Ubuntu 18.04
|
|
||||||
- [pluie/libyaml][11] ( ~538 MB ) Vala 0.40.4 pluie-yaml-0.4
|
|
||||||
- [docker tips][5]
|
- [docker tips][5]
|
||||||
|
|
||||||
Extend pluie/alpine with mysql (MariaDb/10.1.22)
|
Extend pluie/alpine with mysql (MariaDb/10.1.14)
|
||||||
Project comes with various scripts to execute basic tasks such as :
|
Project comes with various scripts to execute basic tasks such as :
|
||||||
- dbcreate
|
- dbcreate
|
||||||
- dbdump
|
- dbdump
|
||||||
|
@ -24,7 +21,7 @@ Root access to database is only permit on localhost
|
||||||
|
|
||||||
## Image Size
|
## Image Size
|
||||||
|
|
||||||
- image ~ 181 MB
|
- image ~ 172 MB
|
||||||
|
|
||||||
## Image Volumes
|
## Image Volumes
|
||||||
|
|
||||||
|
@ -72,9 +69,8 @@ for example :
|
||||||
$ docker run --name pma -p 8080:80 --link mysql:db -d phpmyadmin/phpmyadmin
|
$ 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
|
### Existing Scripts
|
||||||
|
|
||||||
|
@ -110,7 +106,7 @@ $ docker exec -it mysql "mysql -udev -pmysql"
|
||||||
|
|
||||||
to connect to the mysql server as root :
|
to connect to the mysql server as root :
|
||||||
```
|
```
|
||||||
$ docker exec -it mysql mysql
|
$ docker exec -it mysql "mysql -uroot"
|
||||||
```
|
```
|
||||||
to connect to the mysql container as root :
|
to connect to the mysql container as root :
|
||||||
```
|
```
|
||||||
|
@ -141,6 +137,3 @@ docker run --name mycontainer --link mysql:db ...
|
||||||
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
||||||
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
||||||
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
||||||
[10]: https://github.com/pluie-org/docker-images/tree/master/pluie/libecho
|
|
||||||
[11]: https://github.com/pluie-org/docker-images/tree/master/pluie/libyaml
|
|
||||||
[12]: https://github.com/pluie-org/docker-images/tree/master/pluie/ubuntu
|
|
||||||
|
|
Binary file not shown.
|
@ -2,4 +2,4 @@
|
||||||
# @app pluie/alpine-mysql
|
# @app pluie/alpine-mysql
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
||||||
|
|
||||||
apk add mysql mysql-client pwgen \
|
apk --update add mysql mysql-client pwgen \
|
||||||
|
|
|
@ -1,16 +1,13 @@
|
||||||
# pluie/alpine-symfony-php7
|
# pluie/alpine-symfony-php7
|
||||||
|
|
||||||
- [index][1]
|
- [index][1]
|
||||||
- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5
|
- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4
|
||||||
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30
|
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24
|
||||||
- [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm
|
- [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm
|
||||||
- [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2
|
- [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1
|
||||||
- [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16
|
- [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15
|
||||||
- [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16
|
- [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15
|
||||||
- [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB )
|
- [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB )
|
||||||
- [pluie/libecho][10] ( ~288 MB ) Vala 0.34.2 pluie-echo-0.2
|
|
||||||
- [pluie/ubuntu][12] ( ~141 MB ) Ubuntu 18.04
|
|
||||||
- [pluie/libyaml][11] ( ~538 MB ) Vala 0.40.4 pluie-yaml-0.4
|
|
||||||
- [docker tips][5]
|
- [docker tips][5]
|
||||||
|
|
||||||
Extend pluie/alpine-apache-php7.
|
Extend pluie/alpine-apache-php7.
|
||||||
|
@ -20,7 +17,7 @@ the symfony framework with $SYMFONY_VERSION version on the /app directory
|
||||||
|
|
||||||
## Image Size
|
## Image Size
|
||||||
|
|
||||||
- image ~ 77 MB
|
- image ~ 82 MB
|
||||||
|
|
||||||
## ENV variables
|
## ENV variables
|
||||||
|
|
||||||
|
@ -68,11 +65,6 @@ $ docker run --name symfony -d --link=mysql:db -e HTTP_SERVER_NAME=yourServerNam
|
||||||
$ docker exec -it symfony bash
|
$ 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
|
[1]: https://github.com/pluie-org/docker-images
|
||||||
[2]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine
|
[2]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine
|
||||||
|
@ -83,6 +75,3 @@ $ docker exec -it symfony php /app/bin/console --ansi
|
||||||
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
||||||
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
||||||
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
||||||
[10]: https://github.com/pluie-org/docker-images/tree/master/pluie/libecho
|
|
||||||
[11]: https://github.com/pluie-org/docker-images/tree/master/pluie/libyaml
|
|
||||||
[12]: https://github.com/pluie-org/docker-images/tree/master/pluie/ubuntu
|
|
||||||
|
|
Binary file not shown.
|
@ -2,6 +2,6 @@
|
||||||
# @app pluie/alpine-symfony
|
# @app pluie/alpine-symfony
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
||||||
|
|
||||||
apk add php7-iconv php7-intl php7-posix
|
apk -U add php7-iconv php7-intl php7-posix
|
||||||
curl -LsS https://symfony.com/installer -o /usr/bin/symfony
|
curl -LsS https://symfony.com/installer -o /usr/bin/symfony
|
||||||
chmod +x /usr/bin/symfony
|
chmod +x /usr/bin/symfony
|
||||||
|
|
|
@ -8,7 +8,7 @@ if [ ! -z "$CREATE_WWW_DIR" ]; then
|
||||||
rm -rf /app/web
|
rm -rf /app/web
|
||||||
mv -f app/* /app/
|
mv -f app/* /app/
|
||||||
chown -R 1000:apache /app/
|
chown -R 1000:apache /app/
|
||||||
chown -R 774:apache /app/var
|
chown -R 1000:apache /app/var
|
||||||
chmod -R g+w /app
|
chmod -R g+w /app
|
||||||
CTN_IP=$(ip route | cut -d ' ' -f3 | head -n1)
|
CTN_IP=$(ip route | cut -d ' ' -f3 | head -n1)
|
||||||
sed -i "/::1/s//::1', '$CTN_IP/" /app/web/app_dev.php
|
sed -i "/::1/s//::1', '$CTN_IP/" /app/web/app_dev.php
|
||||||
|
|
|
@ -1,26 +1,23 @@
|
||||||
# pluie/alpine-symfony
|
# pluie/alpine-symfony
|
||||||
|
|
||||||
- [index][1]
|
- [index][1]
|
||||||
- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5
|
- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4
|
||||||
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30
|
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24
|
||||||
- [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm
|
- [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm
|
||||||
- [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2
|
- [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.1
|
||||||
- [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16
|
- [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15
|
||||||
- [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16
|
- [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15
|
||||||
- [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB )
|
- [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB )
|
||||||
- [pluie/libecho][10] ( ~288 MB ) Vala 0.34.2 pluie-echo-0.2
|
|
||||||
- [pluie/ubuntu][12] ( ~141 MB ) Ubuntu 18.04
|
|
||||||
- [pluie/libyaml][11] ( ~538 MB ) Vala 0.40.4 pluie-yaml-0.4
|
|
||||||
- [docker tips][5]
|
- [docker tips][5]
|
||||||
|
|
||||||
Extend pluie/alpine-apache-fpm.
|
Extend pluie/alpine-apache-fpm.
|
||||||
|
|
||||||
if __/app/$WWW_DIR__ does not exits then __pluie/alpine-symfony__ install
|
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 Size
|
||||||
|
|
||||||
- image ~ 83 MB
|
- image ~ 82 MB
|
||||||
|
|
||||||
## ENV variables
|
## ENV variables
|
||||||
|
|
||||||
|
@ -62,12 +59,6 @@ $ docker run --name symfony -d --link=mysql:db -e HTTP_SERVER_NAME=yourServerNam
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker exec -it symfony bash
|
$ 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
|
[1]: https://github.com/pluie-org/docker-images
|
||||||
|
@ -79,6 +70,3 @@ $ docker exec -it symfony php /app/bin/console --ansi
|
||||||
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
||||||
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
||||||
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
||||||
[10]: https://github.com/pluie-org/docker-images/tree/master/pluie/libecho
|
|
||||||
[11]: https://github.com/pluie-org/docker-images/tree/master/pluie/libyaml
|
|
||||||
[12]: https://github.com/pluie-org/docker-images/tree/master/pluie/ubuntu
|
|
||||||
|
|
Binary file not shown.
|
@ -2,6 +2,6 @@
|
||||||
# @app pluie/alpine-symfony
|
# @app pluie/alpine-symfony
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
||||||
|
|
||||||
apk add php5-iconv php5-intl php5-posix
|
apk -U add php5-iconv php5-intl php5-posix
|
||||||
curl -LsS https://symfony.com/installer -o /usr/bin/symfony
|
curl -LsS https://symfony.com/installer -o /usr/bin/symfony
|
||||||
chmod +x /usr/bin/symfony
|
chmod +x /usr/bin/symfony
|
||||||
|
|
|
@ -9,7 +9,6 @@ if [ ! -z "$CREATE_WWW_DIR" ]; then
|
||||||
mv -f app/* /app/
|
mv -f app/* /app/
|
||||||
chown -R 1000:apache /app/
|
chown -R 1000:apache /app/
|
||||||
chmod -R 777 /app/var
|
chmod -R 777 /app/var
|
||||||
chmod -R g+w /app
|
|
||||||
CTN_IP=$(ip route | cut -d ' ' -f3 | head -n1)
|
CTN_IP=$(ip route | cut -d ' ' -f3 | head -n1)
|
||||||
sed -i "/::1/s//::1', '$CTN_IP/" /app/web/app_dev.php
|
sed -i "/::1/s//::1', '$CTN_IP/" /app/web/app_dev.php
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# @app pluie/alpine
|
# @app pluie/alpine
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
||||||
|
|
||||||
FROM alpine:3.5
|
FROM alpine:3.4
|
||||||
|
|
||||||
MAINTAINER a-Sansara https://github.com/a-sansara
|
MAINTAINER a-Sansara https://github.com/a-sansara
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,13 @@
|
||||||
# pluie/alpine
|
# pluie/alpine
|
||||||
|
|
||||||
- [index][1]
|
- [index][1]
|
||||||
- [pluie/alpine][2] ( ~ 9 MB ) Alpine/3.5
|
- [pluie/alpine][2] ( < 10 MB ) Alpine/3.4
|
||||||
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.25 Php/5.6.30
|
- [pluie/alpine-apache][3] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24
|
||||||
- [pluie/alpine-apache-fpm][7] ( ~ 51 MB ) Apache/2.4.25 Php/5.6.30 Fpm
|
- [pluie/alpine-apache-fpm][7] ( ~ 50 MB ) Apache/2.4.23 Php/5.6.24 Fpm
|
||||||
- [pluie/alpine-symfony][6] ( ~ 83 MB ) Symfony2.8 or 3.2
|
- [pluie/alpine-symfony][6] ( ~ 82 MB ) Symfony2.8 or 3.2
|
||||||
- [pluie/alpine-apache-php7][8] ( ~ 45 MB ) Apache/2.4.25 Php/7.0.16
|
- [pluie/alpine-apache-php7][8] ( ~ 50 MB ) Apache/2.4.25 Php/7.0.15
|
||||||
- [pluie/alpine-symfony-php7][9] ( ~ 77 MB ) Symfony2.8 or 3.2 Php/7.0.16
|
- [pluie/alpine-symfony-php7][9] ( ~ 82 MB ) Symfony2.8 or 3.2 Php/7.0.15
|
||||||
- [pluie/alpine-mysql][4] ( ~181 MB ) Mysql/5.6 ( MariaDB )
|
- [pluie/alpine-mysql][4] ( ~172 MB ) Mysql/5.5.47 ( MariaDB )
|
||||||
- [pluie/libecho][10] ( ~288 MB ) Vala 0.34.2 pluie-echo-0.2
|
|
||||||
- [pluie/ubuntu][12] ( ~141 MB ) Ubuntu 18.04
|
|
||||||
- [pluie/libyaml][11] ( ~538 MB ) Vala 0.40.4 pluie-yaml-0.4
|
|
||||||
- [docker tips][5]
|
- [docker tips][5]
|
||||||
|
|
||||||
This Image provide a Linux Alpine distribution with :
|
This Image provide a Linux Alpine distribution with :
|
||||||
|
@ -19,7 +16,7 @@ This Image provide a Linux Alpine distribution with :
|
||||||
- curl
|
- curl
|
||||||
- nano as editor
|
- nano as editor
|
||||||
|
|
||||||
Base image : [alpine:3.5](https://hub.docker.com/_/alpine/)
|
Base image : [alpine:3.4] (https://hub.docker.com/_/alpine/)
|
||||||
|
|
||||||
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)
|
||||||
|
|
||||||
|
@ -30,7 +27,7 @@ apk add ca-certificates wget && update-ca-certificates
|
||||||
|
|
||||||
## Image Size
|
## Image Size
|
||||||
|
|
||||||
- very small image ~ 9 MB
|
- very small image < 10 MB
|
||||||
|
|
||||||
|
|
||||||
## Image Usage
|
## Image Usage
|
||||||
|
@ -62,13 +59,13 @@ project/
|
||||||
```
|
```
|
||||||
|
|
||||||
you can easily create your own images based on this structure.
|
you can easily create your own images based on this structure.
|
||||||
keep an eye to pluie/alpine-apache, pluie/alpine-apache-php7 & pluie/alpine-mysql wich extend pluie/alpine
|
keep an eye to pluie/alpine-apache & pluie/alpine-mysql wich extend pluie/alpine
|
||||||
|
|
||||||
|
|
||||||
## Extend pluie/alpine Image
|
## Extend pluie/alpine Image
|
||||||
|
|
||||||
RUN instructions are minimized
|
RUN instructions are minimized
|
||||||
on extended image you only need to use :
|
on extended image you can only use :
|
||||||
```
|
```
|
||||||
RUN bash /scripts/install.sh
|
RUN bash /scripts/install.sh
|
||||||
```
|
```
|
||||||
|
@ -96,7 +93,7 @@ ENV SHENV_NAME=Apache \
|
||||||
WWW_DIR=www \
|
WWW_DIR=www \
|
||||||
WWW_INDEX=index.php \
|
WWW_INDEX=index.php \
|
||||||
FIX_OWNERSHIP=1 \
|
FIX_OWNERSHIP=1 \
|
||||||
TZ=Europe/Paris
|
TZ=Europe/Paris
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
@ -112,6 +109,3 @@ RUN bash /scripts/install.sh
|
||||||
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
||||||
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
||||||
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
||||||
[10]: https://github.com/pluie-org/docker-images/tree/master/pluie/libecho
|
|
||||||
[11]: https://github.com/pluie-org/docker-images/tree/master/pluie/libyaml
|
|
||||||
[12]: https://github.com/pluie-org/docker-images/tree/master/pluie/ubuntu
|
|
||||||
|
|
Binary file not shown.
|
@ -5,6 +5,7 @@
|
||||||
if [ ! -z "$TZ" ] && [ -f "/usr/share/zoneinfo/$TZ" ]; then
|
if [ ! -z "$TZ" ] && [ -f "/usr/share/zoneinfo/$TZ" ]; then
|
||||||
echo "$TZ" > /etc/TZ
|
echo "$TZ" > /etc/TZ
|
||||||
cp "/usr/share/zoneinfo/$TZ" "/etc/localtime"
|
cp "/usr/share/zoneinfo/$TZ" "/etc/localtime"
|
||||||
|
apk del tzdata
|
||||||
if [ ! "${TZ///*/}" = "$TZ" ]; then
|
if [ ! "${TZ///*/}" = "$TZ" ]; then
|
||||||
mkdir -p "/usr/share/zoneinfo/${TZ///*/}"
|
mkdir -p "/usr/share/zoneinfo/${TZ///*/}"
|
||||||
fi
|
fi
|
||||||
|
@ -12,7 +13,6 @@ if [ ! -z "$TZ" ] && [ -f "/usr/share/zoneinfo/$TZ" ]; then
|
||||||
echo -e "\033[1;38;5;203mTIMEZONE : $TZ"
|
echo -e "\033[1;38;5;203mTIMEZONE : $TZ"
|
||||||
date
|
date
|
||||||
echo -en "\033[m"
|
echo -en "\033[m"
|
||||||
apk del tzdata
|
|
||||||
else
|
else
|
||||||
echo -e "\033[1;38;5;203mNO DEFINED TIMEZONE"
|
echo -e "\033[1;38;5;203mNO DEFINED TIMEZONE"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ "$TZ" != "Europe/Paris" ]; then
|
|
||||||
apk -U add tzdata
|
|
||||||
. /scripts/install.d/30-tz.sh
|
|
||||||
. /scripts/install.d/40-fix.sh
|
|
||||||
fi
|
|
|
@ -1,14 +0,0 @@
|
||||||
# @app pluie/alpine-apache
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
FROM pluie/alpine
|
|
||||||
|
|
||||||
MAINTAINER a-Sansara https://github.com/a-sansara
|
|
||||||
|
|
||||||
ADD files.tar /scripts
|
|
||||||
|
|
||||||
ENV SHENV_NAME=libecho \
|
|
||||||
SHENV_COLOR=32 \
|
|
||||||
TZ=Europe/Paris
|
|
||||||
|
|
||||||
RUN bash /scripts/install.sh
|
|
|
@ -1,47 +0,0 @@
|
||||||
# pluie/libecho
|
|
||||||
|
|
||||||
- [index][1]
|
|
||||||
- [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 )
|
|
||||||
- [pluie/libecho][10] ( ~288 MB ) Vala 0.34.2 pluie-echo-0.2
|
|
||||||
- [pluie/ubuntu][12] ( ~141 MB ) Ubuntu 18.04
|
|
||||||
- [pluie/libyaml][11] ( ~538 MB ) Vala 0.40.4 pluie-yaml-0.4
|
|
||||||
- [docker tips][5]
|
|
||||||
|
|
||||||
demo image demonstrating libpluie-echo, a small vala shared library managing tracing, display formatting and ansi-extended colors on stdout & stderror.
|
|
||||||
|
|
||||||
you can run a container with :
|
|
||||||
|
|
||||||
```
|
|
||||||
docker run --rm -it pluie/libecho
|
|
||||||
```
|
|
||||||
|
|
||||||
## repository
|
|
||||||
|
|
||||||
https://github.com/pluie-org/libpluie-echo
|
|
||||||
|
|
||||||
## samples
|
|
||||||
|
|
||||||

|
|
||||||

|
|
||||||

|
|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
[1]: https://github.com/pluie-org/docker-images
|
|
||||||
[2]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine
|
|
||||||
[3]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache
|
|
||||||
[4]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-mysql
|
|
||||||
[7]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-fpm
|
|
||||||
[5]: https://github.com/pluie-org/docker-images/blob/master/DOCKER.md
|
|
||||||
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
|
||||||
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
|
||||||
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
|
||||||
[10]: https://github.com/pluie-org/docker-images/tree/master/pluie/libecho
|
|
||||||
[11]: https://github.com/pluie-org/docker-images/tree/master/pluie/libyaml
|
|
||||||
[12]: https://github.com/pluie-org/docker-images/tree/master/pluie/ubuntu
|
|
|
@ -1,22 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/alpine-apache
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
Ctitle="\033[1;38;5;15;1;48;5;30m"
|
|
||||||
Citem="\033[1;38;5;36m"
|
|
||||||
Coff="\033[m"
|
|
||||||
DOCKDIR=$(dirname "$(readlink -f ${BASH_SOURCE[0]})")
|
|
||||||
DOCKBUILD=$(basename $DOCKDIR)
|
|
||||||
DOCKREPO=$(basename $(dirname $DOCKDIR))
|
|
||||||
DOCKTAG=${1:-"latest"}
|
|
||||||
TMPPWD=$(pwd)
|
|
||||||
indent=" "
|
|
||||||
cd $DOCKDIR
|
|
||||||
echo -e "\n ${Ctitle} Preparing files : ${Coff}${Citem}\n"
|
|
||||||
|
|
||||||
tar -cvf files.tar *.sh pre-init.d/ install.d/ | sed "s/^/${indent}↠ /"
|
|
||||||
|
|
||||||
echo -e "\n ${Ctitle} Proceed Dockerfile build : ${Coff}\n
|
|
||||||
"
|
|
||||||
sudo docker build --force-rm -t ${DOCKREPO}/${DOCKBUILD}:${DOCKTAG} . | sed "s/^/${indent}/"
|
|
||||||
cd $TMPPWD
|
|
Binary file not shown.
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/alpine-apache
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
apk add git vala gcc musl-dev python3 ninja \
|
|
||||||
&& pip3 install meson \
|
|
||||||
&& git clone https://github.com/pluie-org/libpluie-echo.git \
|
|
||||||
&& cd libpluie-echo/ \
|
|
||||||
&& meson --prefix=/usr ./ build \
|
|
||||||
&& ninja install -C build
|
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/libecho
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
. /scripts/common.sh
|
|
||||||
|
|
||||||
initTitle "Vala shared lib pluie-echo-0.2" "Sample"
|
|
||||||
/libpluie-echo/samples/pluie-outputFormatter
|
|
|
@ -1,2 +0,0 @@
|
||||||
cd /libpluie-echo/samples
|
|
||||||
valac --pkg pluie-echo-0.2 pluie-outputFormatter.vala \
|
|
|
@ -1,14 +0,0 @@
|
||||||
# @app pluie/libyaml
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
FROM pluie/ubuntu
|
|
||||||
|
|
||||||
MAINTAINER a-Sansara https://github.com/a-sansara
|
|
||||||
|
|
||||||
ADD files.tar /scripts
|
|
||||||
|
|
||||||
ENV SHENV_NAME=libyaml \
|
|
||||||
SHENV_COLOR=36 \
|
|
||||||
TZ=Europe/Paris
|
|
||||||
|
|
||||||
RUN /bin/bash /scripts/install.sh
|
|
|
@ -1,63 +0,0 @@
|
||||||
# pluie/libyaml
|
|
||||||
|
|
||||||
- [index][1]
|
|
||||||
- [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 )
|
|
||||||
- [pluie/libecho][10] ( ~288 MB ) Vala 0.34.2 pluie-echo-0.2
|
|
||||||
- [pluie/ubuntu][12] ( ~141 MB ) Ubuntu 18.04
|
|
||||||
- [pluie/libyaml][11] ( ~538 MB ) Vala 0.40.4 pluie-yaml-0.4
|
|
||||||
- [docker tips][5]
|
|
||||||
|
|
||||||
|
|
||||||
demo image demonstrating pluie-yaml, a shared vala library managing yaml files (v 1.2) and yaml nodes in vala language.
|
|
||||||
As json is now a valid subset of yaml, you can use this lib to load json files too
|
|
||||||
|
|
||||||
you can run a container with :
|
|
||||||
|
|
||||||
```
|
|
||||||
docker run --rm -it pluie/libyaml
|
|
||||||
```
|
|
||||||
|
|
||||||
then execute any samples :
|
|
||||||
|
|
||||||
./yaml-loader
|
|
||||||
./json-loader
|
|
||||||
./yaml-config
|
|
||||||
./yaml-traversing
|
|
||||||
./yaml-finder
|
|
||||||
./yaml-imports
|
|
||||||
./yaml-node
|
|
||||||
|
|
||||||
## repository
|
|
||||||
|
|
||||||
https://github.com/pluie-org/lib-yaml
|
|
||||||
|
|
||||||
## samples
|
|
||||||
|
|
||||||
./yaml-config source code
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
./yaml-config output
|
|
||||||
|
|
||||||

|
|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
[1]: https://github.com/pluie-org/docker-images
|
|
||||||
[2]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine
|
|
||||||
[3]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache
|
|
||||||
[4]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-mysql
|
|
||||||
[7]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-fpm
|
|
||||||
[5]: https://github.com/pluie-org/docker-images/blob/master/DOCKER.md
|
|
||||||
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
|
||||||
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
|
||||||
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
|
||||||
[10]: https://github.com/pluie-org/docker-images/tree/master/pluie/libecho
|
|
||||||
[11]: https://github.com/pluie-org/docker-images/tree/master/pluie/libyaml
|
|
||||||
[12]: https://github.com/pluie-org/docker-images/tree/master/pluie/ubuntu
|
|
|
@ -1,22 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/alpine-apache
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
Ctitle="\033[1;38;5;15;1;48;5;30m"
|
|
||||||
Citem="\033[1;38;5;36m"
|
|
||||||
Coff="\033[m"
|
|
||||||
DOCKDIR=$(dirname "$(readlink -f ${BASH_SOURCE[0]})")
|
|
||||||
DOCKBUILD=$(basename $DOCKDIR)
|
|
||||||
DOCKREPO=$(basename $(dirname $DOCKDIR))
|
|
||||||
DOCKTAG=${1:-"latest"}
|
|
||||||
TMPPWD=$(pwd)
|
|
||||||
indent=" "
|
|
||||||
cd $DOCKDIR
|
|
||||||
echo -e "\n ${Ctitle} Preparing files : ${Coff}${Citem}\n"
|
|
||||||
|
|
||||||
tar -cvf files.tar *.sh pre-init.d/ install.d/ | sed "s/^/${indent}↠ /"
|
|
||||||
|
|
||||||
echo -e "\n ${Ctitle} Proceed Dockerfile build : ${Coff}\n
|
|
||||||
"
|
|
||||||
sudo docker build --force-rm -t ${DOCKREPO}/${DOCKBUILD}:${DOCKTAG} . | sed "s/^/${indent}/"
|
|
||||||
cd $TMPPWD
|
|
Binary file not shown.
|
@ -1,14 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/libyaml
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
export DEBCONF_NONINTERACTIVE_SEEN=true
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
|
||||||
echo "Updating system..."
|
|
||||||
apt install -y glib-2.0-dev libgee-0.8-dev libyaml-dev git gcc valac meson
|
|
||||||
mkdir /home/repo; cd $_;
|
|
||||||
echo "Installing pluie-echo dependency"
|
|
||||||
git clone https://git.pluie.org/pluie/libpluie-echo.git
|
|
||||||
cd libpluie-echo
|
|
||||||
meson --prefix=/usr ./ build
|
|
||||||
ninja install -C build
|
|
||||||
pkg-config --libs pluie-echo-0.2
|
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/libyaml
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
. /scripts/common.sh
|
|
||||||
|
|
||||||
cd /home/repo/lib-yaml
|
|
||||||
echo "try any samples"
|
|
||||||
bash
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
cd /home/repo
|
|
||||||
git clone https://git.pluie.org/pluie/lib-yaml.git
|
|
||||||
cd lib-yaml
|
|
||||||
./build.sh
|
|
|
@ -1,20 +0,0 @@
|
||||||
# @app pluie/libyaml
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
FROM ubuntu:latest
|
|
||||||
|
|
||||||
MAINTAINER a-Sansara https://github.com/a-sansara
|
|
||||||
|
|
||||||
ADD files.tar /scripts
|
|
||||||
|
|
||||||
ENV TERM=xterm \
|
|
||||||
SHENV_NAME=ubuntu \
|
|
||||||
SHENV_COLOR=97 \
|
|
||||||
SHENV_CTX=LOCAL \
|
|
||||||
TZ=Europe/Paris
|
|
||||||
|
|
||||||
VOLUME /app
|
|
||||||
|
|
||||||
RUN /bin/bash /scripts/install.sh
|
|
||||||
|
|
||||||
ENTRYPOINT ["/scripts/main.sh"]
|
|
|
@ -1,105 +0,0 @@
|
||||||
# pluie/ubuntu
|
|
||||||
|
|
||||||
- [index][1]
|
|
||||||
- [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 )
|
|
||||||
- [pluie/libecho][10] ( ~288 MB ) Vala 0.34.2 pluie-echo-0.2
|
|
||||||
- [pluie/ubuntu][12] ( ~141 MB ) Ubuntu 18.04
|
|
||||||
- [pluie/libyaml][11] ( ~538 MB ) Vala 0.40.4 pluie-yaml-0.4
|
|
||||||
- [docker tips][5]
|
|
||||||
|
|
||||||
This Image provide a Linux Ubuntu LTS distribution base image.
|
|
||||||
|
|
||||||
Base image : [ubuntu](https://hub.docker.com/_/ubuntu/)
|
|
||||||
|
|
||||||
This project come with a structure to facilitate further images (like pluie/libyaml)
|
|
||||||
|
|
||||||
## Image Size
|
|
||||||
|
|
||||||
- 141 MB
|
|
||||||
|
|
||||||
|
|
||||||
## Image Usage
|
|
||||||
|
|
||||||
```
|
|
||||||
$ docker run --name ubuntu -it pluie/ubuntu
|
|
||||||
```
|
|
||||||
|
|
||||||
## Image Structure
|
|
||||||
|
|
||||||
```
|
|
||||||
project/
|
|
||||||
|
|
|
||||||
|-- install.d/ # deployed in /scripts on target container
|
|
||||||
| | # launch on docker image building process
|
|
||||||
| | # XX-name.sh - low XX are run first
|
|
||||||
| |-- 00-util.sh
|
|
||||||
| |-- 40-fix.sh
|
|
||||||
|
|
|
||||||
|-- pre-init.d/ # deployed in /scripts on target container
|
|
||||||
| | # launch on docker container running process
|
|
||||||
| |-- 50-builder.sh
|
|
||||||
|
|
|
||||||
|-- build # build docker image : ./build [TAG]
|
|
||||||
|-- common.sh # don't modify - sourced by main.sh to execute pre-init.d scripts first
|
|
||||||
|-- install.sh # don't modify - execute install.d scripts on docker building process
|
|
||||||
|-- main.sh # source common.sh then execute entry point instruction
|
|
||||||
|-- util.sh # sourced by common.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
you can easily create your own images based on this structure.
|
|
||||||
keep an eye to pluie/libyalm wich extend pluie/ubuntu
|
|
||||||
|
|
||||||
|
|
||||||
## Extend pluie/ubuntu Image
|
|
||||||
|
|
||||||
RUN instructions are minimized
|
|
||||||
on extended image you only need to use :
|
|
||||||
```
|
|
||||||
RUN bash /scripts/install.sh
|
|
||||||
```
|
|
||||||
add your packages in a script in install.d directory
|
|
||||||
keep name below 40 because install.d/40-fix.sh clean package repository
|
|
||||||
each extended image inherit install.d && pre-init.d scripts
|
|
||||||
|
|
||||||
extended images doesn't need to define ENTRYPOINT
|
|
||||||
you can keep intact build script in each extended project
|
|
||||||
manage your install & init instruction in install.d & pre-init.d directory
|
|
||||||
and write your own main.sh script
|
|
||||||
|
|
||||||
Docker file example (from pluie/libyaml)
|
|
||||||
|
|
||||||
```
|
|
||||||
# @app pluie/libyaml
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
FROM pluie:ubuntu
|
|
||||||
|
|
||||||
MAINTAINER a-Sansara https://github.com/a-sansara
|
|
||||||
|
|
||||||
ADD files.tar /scripts
|
|
||||||
|
|
||||||
ENV SHENV_NAME=libyaml \
|
|
||||||
SHENV_COLOR=36 \
|
|
||||||
TZ=Europe/Paris
|
|
||||||
|
|
||||||
RUN bash /scripts/install.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
[1]: https://github.com/pluie-org/docker-images
|
|
||||||
[2]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine
|
|
||||||
[3]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache
|
|
||||||
[4]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-mysql
|
|
||||||
[7]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-fpm
|
|
||||||
[5]: https://github.com/pluie-org/docker-images/blob/master/DOCKER.md
|
|
||||||
[6]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony
|
|
||||||
[8]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-apache-php7
|
|
||||||
[9]: https://github.com/pluie-org/docker-images/tree/master/pluie/alpine-symfony-php7
|
|
||||||
[10]: https://github.com/pluie-org/docker-images/tree/master/pluie/libecho
|
|
||||||
[11]: https://github.com/pluie-org/docker-images/tree/master/pluie/libyaml
|
|
||||||
[12]: https://github.com/pluie-org/docker-images/tree/master/pluie/ubuntu
|
|
|
@ -1,22 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/alpine-apache
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
Ctitle="\033[1;38;5;15;1;48;5;30m"
|
|
||||||
Citem="\033[1;38;5;36m"
|
|
||||||
Coff="\033[m"
|
|
||||||
DOCKDIR=$(dirname "$(readlink -f ${BASH_SOURCE[0]})")
|
|
||||||
DOCKBUILD=$(basename $DOCKDIR)
|
|
||||||
DOCKREPO=$(basename $(dirname $DOCKDIR))
|
|
||||||
DOCKTAG=${1:-"latest"}
|
|
||||||
TMPPWD=$(pwd)
|
|
||||||
indent=" "
|
|
||||||
cd $DOCKDIR
|
|
||||||
echo -e "\n ${Ctitle} Preparing files : ${Coff}${Citem}\n"
|
|
||||||
|
|
||||||
tar -cvf files.tar *.sh pre-init.d/ install.d/ | sed "s/^/${indent}↠ /"
|
|
||||||
|
|
||||||
echo -e "\n ${Ctitle} Proceed Dockerfile build : ${Coff}\n
|
|
||||||
"
|
|
||||||
sudo docker build --force-rm -t ${DOCKREPO}/${DOCKBUILD}:${DOCKTAG} . | sed "s/^/${indent}/"
|
|
||||||
cd $TMPPWD
|
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/ubuntu
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
. /scripts/util.sh
|
|
||||||
|
|
||||||
# execute any pre-init scripts wich is useful for images based on this image
|
|
||||||
# /scripts/pre-init.d/XX-name.sh
|
|
||||||
# low XX are run first
|
|
||||||
preInit "/scripts/pre-init.d"
|
|
Binary file not shown.
|
@ -1,4 +0,0 @@
|
||||||
export DEBCONF_NONINTERACTIVE_SEEN=true
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
|
||||||
apt update
|
|
||||||
apt install -y nano curl tzdata
|
|
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/alpine
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
if [ ! -f /root/.bash_ps1 ]; then
|
|
||||||
cat <<EOF >> /root/.bashrc
|
|
||||||
if [ -f ~/.bash_ps1 ]; then
|
|
||||||
. ~/.bash_ps1
|
|
||||||
fi
|
|
||||||
EOF
|
|
||||||
sed -n '1,22 p' /scripts/util.sh > /root/.bash_ps1
|
|
||||||
echo "bash_prompt" >> /root/.bash_ps1
|
|
||||||
fi
|
|
|
@ -1,17 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/alpine
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
if [ ! -z "$TZ" ] && [ -f "/usr/share/zoneinfo/$TZ" ]; then
|
|
||||||
echo "$TZ" > /etc/TZ
|
|
||||||
cp "/usr/share/zoneinfo/$TZ" "/etc/localtime"
|
|
||||||
if [ ! "${TZ///*/}" = "$TZ" ]; then
|
|
||||||
mkdir -p "/usr/share/zoneinfo/${TZ///*/}"
|
|
||||||
fi
|
|
||||||
cp /etc/localtime "/usr/share/zoneinfo/$TZ"
|
|
||||||
echo -e "\033[1;38;5;203mTIMEZONE : $TZ"
|
|
||||||
date
|
|
||||||
echo -en "\033[m"
|
|
||||||
else
|
|
||||||
echo -e "\033[1;38;5;203mNO DEFINED TIMEZONE"
|
|
||||||
fi
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/alpine
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
apt clean
|
|
||||||
chown -R root:root /scripts/
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/ubuntu
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
. /scripts/util.sh
|
|
||||||
preInit "/scripts/install.d"
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/alpine
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
. /scripts/common.sh
|
|
||||||
bash
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/ubuntu
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
echo -e "\ncontainer builded by \033[1;38;5;209mpluie.org\033[m - \033[1;38;5;32mhttps://git.pluie.org/pluie/docker-images\033[m\n"
|
|
|
@ -1,40 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# @app pluie/alpine
|
|
||||||
# @author a-Sansara https://git.pluie.org/pluie/docker-images
|
|
||||||
|
|
||||||
function bash_prompt() {
|
|
||||||
local Cenvcode="243"
|
|
||||||
if [ "$SHENV_CTX" = "INT" ]; then
|
|
||||||
local Cenvcode="202"
|
|
||||||
elif [ "$SHENV_CTX" = "PROD" ]; then
|
|
||||||
local Cenvcode="160"
|
|
||||||
fi
|
|
||||||
local Cdate="\[\033[1;33m\]"
|
|
||||||
local Cctx="\[\033[1;48;5;${Cenvcode}m\]"
|
|
||||||
local Cname="\[\033[1;48;5;${SHENV_COLOR}m\]"
|
|
||||||
local Cpath="\[\033[1;38;5;36m\]"
|
|
||||||
local Cwhite="\[\033[1;38;5;15m\]"
|
|
||||||
local Chost="\[\033[1;38;5;15m\]"
|
|
||||||
local Csymbol="\[\033[1;38;5;15m\]"
|
|
||||||
local Cuser="\[\033[1;38;5;203m\]"
|
|
||||||
local Coff="\[\033[m\]"
|
|
||||||
export PS1="${Cdate}\t ${Cwhite}${Cctx} DOCKER ${SHENV_CTX} ${Cname} ${SHENV_NAME} ${Coff} ${Cuser}\u${Chost}@\h ${Cpath}\w ${Csymbol}\$ ${Coff}"
|
|
||||||
}
|
|
||||||
|
|
||||||
function initTitle(){
|
|
||||||
local data=${1:-''}
|
|
||||||
if [ ! -z "$2" ]; then
|
|
||||||
data="$data\033[1;38;5;97m $2 "
|
|
||||||
fi
|
|
||||||
echo -e "\n\033[1;33m[[ \033[1;38;5;30m$data\033[1;33m]]\033[m"
|
|
||||||
}
|
|
||||||
|
|
||||||
function preInit(){
|
|
||||||
for i in ls $1/*.sh
|
|
||||||
do
|
|
||||||
if [ -e "${i}" ]; then
|
|
||||||
initTitle "Processing" "$i"
|
|
||||||
. "${i}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user