File tree Expand file tree Collapse file tree 6 files changed +107
-3
lines changed
Expand file tree Collapse file tree 6 files changed +107
-3
lines changed Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2018 Joël
3+ Copyright (c) 2018 Joël Sunier
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 1- # docker-php7.1-symfony
2- Docker image to test
1+ # jsunier/php-symfony-test
2+
3+ Docker image to run PHPUnit with Symfony on PHP7.1.
4+
5+ The image is published on the [ Docker Hub] ( https://hub.docker.com ) at this address : https://hub.docker.com/r/jsunier/php-symfony-test .
6+
7+ This image contains multiple versions available for testing your code with PHPUnit and Symfony.
8+
9+ # Usage
10+
11+ ## Informations
12+
13+ For now, there is only two available database adapters for he available PHP versions:
14+
15+ * PostgreSQL
16+ * MySQL/MariaDB
17+
18+ Every images include the latest version of [ composer] ( https://getcomposer.org ) .
19+
20+ List of PHP extensions installed:
21+
22+ * mbstring
23+ * zip
24+ * iconv
25+ * opcache
26+ * bcmath
27+ * pdo
28+ * imagick
29+
30+ ## PHP7.1
31+
32+ ### PostgreSQL
33+
34+ Use ` jsunier/php-symfony-test:7.1-postgresql `
35+
36+ ### MySQL/MariaDB
37+
38+ Use ` jsunier/php-symfony-test:7.1-mysql ` or ` jsunier/php-symfony-test:7.1-mariadb `
39+
40+ ## PHP7.2
41+
42+ ### PostgreSQL
43+
44+ Use ` jsunier/php-symfony-test:7.2-postgresql `
45+
46+ ### MySQL/MariaDB
47+
48+ Use ` jsunier/php-symfony-test:7.1-mysql ` or ` jsunier/php-symfony-test:7.1-mariadb `
49+
50+ # Build
51+
52+ To build these images, just go into the folder of you choice and run ` docker build . -t <your-image-name:your-tag> ` .
53+
54+ Example:
55+ ```
56+ # cd php7.1/postgresql
57+ # docker build . -t my-awesome-phpunit-image
58+ ```
Original file line number Diff line number Diff line change 1+ FROM php:7.1-cli
2+
3+ MAINTAINER Joël Sunier <
[email protected] >
4+
5+ 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 && \
6+ docker-php-ext-install mbstring pdo pdo_mysql zip iconv opcache bcmath && \
7+ pecl install imagick && \
8+ docker-php-ext-enable imagick && \
9+ apt-get clean
10+
11+ RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
Original file line number Diff line number Diff line change 1+ FROM php:7.1-cli
2+
3+ MAINTAINER Joël Sunier <
[email protected] >
4+
5+ 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 && \
6+ docker-php-ext-install mbstring pdo_pgsql zip iconv opcache bcmath && \
7+ docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql && \
8+ docker-php-ext-install pdo pdo_pgsql pgsql && \
9+ pecl install imagick && \
10+ docker-php-ext-enable imagick && \
11+ apt-get clean
12+
13+ RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
Original file line number Diff line number Diff line change 1+ FROM php:7.2-cli
2+
3+ MAINTAINER Joël Sunier <
[email protected] >
4+
5+ 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 && \
6+ docker-php-ext-install mbstring pdo pdo_mysql zip iconv opcache bcmath && \
7+ pecl install imagick && \
8+ docker-php-ext-enable imagick && \
9+ apt-get clean
10+
11+ RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
Original file line number Diff line number Diff line change 1+ FROM php:7.2-cli
2+
3+ MAINTAINER Joël Sunier <
[email protected] >
4+
5+ 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 && \
6+ docker-php-ext-install mbstring pdo_pgsql zip iconv opcache bcmath && \
7+ docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql && \
8+ docker-php-ext-install pdo pdo_pgsql pgsql && \
9+ pecl install imagick && \
10+ docker-php-ext-enable imagick && \
11+ apt-get clean
12+
13+ RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
You can’t perform that action at this time.
0 commit comments