Skip to content

Commit ed7fa72

Browse files
committed
Added PHP7.3 images
* Replaced maintainer directive by a label * Added a default workdir, volume and CMD directive on all images * Updated README.md
1 parent 0187b4d commit ed7fa72

File tree

7 files changed

+101
-7
lines changed

7 files changed

+101
-7
lines changed

README.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# jsunier/php-symfony-test
22

3-
Docker image to run PHPUnit with Symfony on PHP7.1/PHP7.2.
3+
Docker image to run PHPUnit with Symfony on PHP `7.1`/`7.2`/`7.3`.
44

55
The image is published on the [Docker Hub](https://hub.docker.com) at this address : https://hub.docker.com/r/jsunier/php-symfony-test.
66

@@ -27,7 +27,19 @@ List of PHP extensions installed:
2727
* pdo
2828
* imagick
2929
* sockets
30-
* xdebug (2.6.1)
30+
* xdebug (2.6.1 for PHP 7.1 and 7.2 / 2.7.1 for PHP 7.3)
31+
32+
### Workdir
33+
34+
The default workdir is `/app`
35+
36+
### Volumes
37+
38+
The default volume is `/app`
39+
40+
### CMD
41+
42+
The default command instruction is `/app/bin/console`
3143

3244
### Architectures available
3345

@@ -53,7 +65,17 @@ Use `jsunier/php-symfony-test:7.2-postgresql`
5365

5466
### MySQL/MariaDB
5567

56-
Use `jsunier/php-symfony-test:7.1-mysql` or `jsunier/php-symfony-test:7.1-mariadb`
68+
Use `jsunier/php-symfony-test:7.2-mysql` or `jsunier/php-symfony-test:7.2-mariadb`
69+
70+
## PHP7.3
71+
72+
### PostgreSQL
73+
74+
Use `jsunier/php-symfony-test:7.3-postgresql`
75+
76+
### MySQL/MariaDB
77+
78+
Use `jsunier/php-symfony-test:7.3-mysql` or `jsunier/php-symfony-test:7.3-mariadb`
5779

5880
# Build
5981

php7.1/mysql/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM php:7.1-cli
22

3-
MAINTAINER Joël Sunier <jsunier@stogon.io>
3+
LABEL maintainer="Joël Sunier <jsunier@stogon.io>" \
4+
php.version="7.1" \
5+
php.pdo_connector="PostgreSQL"
46

57
RUN apt-get update && apt-get install -yqq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev libxml2-dev libmagickwand-dev libpq-dev unzip && \
68
docker-php-ext-install mbstring pdo pdo_mysql zip iconv opcache bcmath sockets && \
@@ -9,3 +11,9 @@ RUN apt-get update && apt-get install -yqq git curl libmcrypt-dev libjpeg-dev li
911
apt-get clean
1012

1113
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
14+
15+
WORKDIR /app
16+
17+
VOLUME [ "/app" ]
18+
19+
CMD [ "/app/bin/console" ]

php7.1/postgresql/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM php:7.1-cli
22

3-
MAINTAINER Joël Sunier <jsunier@stogon.io>
3+
LABEL maintainer="Joël Sunier <jsunier@stogon.io>" \
4+
php.version="7.1" \
5+
php.pdo_connector="PostgreSQL"
46

57
RUN apt-get update && apt-get install -yqq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev libxml2-dev libmagickwand-dev libpq-dev unzip && \
68
docker-php-ext-install mbstring pdo_pgsql zip iconv opcache bcmath sockets && \
@@ -11,3 +13,9 @@ RUN apt-get update && apt-get install -yqq git curl libmcrypt-dev libjpeg-dev li
1113
apt-get clean
1214

1315
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
16+
17+
WORKDIR /app
18+
19+
VOLUME [ "/app" ]
20+
21+
CMD [ "/app/bin/console" ]

php7.2/mysql/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM php:7.2-cli
22

3-
MAINTAINER Joël Sunier <jsunier@stogon.io>
3+
LABEL maintainer="Joël Sunier <jsunier@stogon.io>" \
4+
php.version="7.2" \
5+
php.pdo_connector="MySQL"
46

57
RUN apt-get update && apt-get install -yqq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev libxml2-dev libmagickwand-dev libpq-dev unzip && \
68
docker-php-ext-install mbstring pdo pdo_mysql zip iconv opcache bcmath sockets && \
@@ -9,3 +11,9 @@ RUN apt-get update && apt-get install -yqq git curl libmcrypt-dev libjpeg-dev li
911
apt-get clean
1012

1113
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
14+
15+
WORKDIR /app
16+
17+
VOLUME [ "/app" ]
18+
19+
CMD [ "/app/bin/console" ]

php7.2/postgresql/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM php:7.2-cli
22

3-
MAINTAINER Joël Sunier <jsunier@stogon.io>
3+
LABEL maintainer="Joël Sunier <jsunier@stogon.io>" \
4+
php.version="7.2" \
5+
php.pdo_connector="PostgreSQL"
46

57
RUN apt-get update && apt-get install -yqq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev libxml2-dev libmagickwand-dev libpq-dev unzip && \
68
docker-php-ext-install mbstring pdo_pgsql zip iconv opcache bcmath sockets && \
@@ -11,3 +13,9 @@ RUN apt-get update && apt-get install -yqq git curl libmcrypt-dev libjpeg-dev li
1113
apt-get clean
1214

1315
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
16+
17+
WORKDIR /app
18+
19+
VOLUME [ "/app" ]
20+
21+
CMD [ "/app/bin/console" ]

php7.3/mysql/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM php:7.3-cli
2+
3+
LABEL maintainer="Joël Sunier <jsunier@stogon.io>" \
4+
php.version="7.3" \
5+
php.pdo_connector="MySQL"
6+
7+
RUN apt-get update && apt-get install -yqq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev libxml2-dev libmagickwand-dev libpq-dev libzip-dev unzip && \
8+
docker-php-ext-install mbstring pdo pdo_mysql zip iconv opcache bcmath sockets && \
9+
pecl install imagick xdebug-2.7.1 && \
10+
docker-php-ext-enable imagick xdebug && \
11+
apt-get clean
12+
13+
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
14+
15+
WORKDIR /app
16+
17+
VOLUME [ "/app" ]
18+
19+
CMD [ "/app/bin/console" ]

php7.3/postgresql/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM php:7.3-cli
2+
3+
LABEL maintainer="Joël Sunier <jsunier@stogon.io>" \
4+
php.version="7.3" \
5+
php.pdo_connector="PostgreSQL"
6+
7+
RUN apt-get update && apt-get install -yqq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev libxml2-dev libmagickwand-dev libpq-dev libzip-dev unzip && \
8+
docker-php-ext-install mbstring pdo_pgsql zip iconv opcache bcmath sockets && \
9+
docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql && \
10+
docker-php-ext-install pdo pdo_pgsql pgsql && \
11+
pecl install imagick xdebug-2.7.1 && \
12+
docker-php-ext-enable imagick xdebug && \
13+
apt-get clean
14+
15+
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
16+
17+
WORKDIR /app
18+
19+
VOLUME [ "/app" ]
20+
21+
CMD [ "/app/bin/console" ]

0 commit comments

Comments
 (0)