Skip to content

Commit 6a9f7b2

Browse files
committed
Initial commit
1 parent 9e29058 commit 6a9f7b2

File tree

6 files changed

+107
-3
lines changed

6 files changed

+107
-3
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Joël
3+
Copyright (c) 2018 Joël Sunier
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,58 @@
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+
```

php7.1/mysql/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

php7.1/postgresql/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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

php7.2/mysql/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

php7.2/postgresql/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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

0 commit comments

Comments
 (0)