Skip to content

Commit aa00422

Browse files
authored
Merge pull request #7 from grimzy/php-7.3
Added PHP 5.3 and made it latest
2 parents a218557 + e6163c4 commit aa00422

File tree

5 files changed

+25
-17
lines changed

5 files changed

+25
-17
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ This project adheres to [Semantic Versioning][semver].
88

99
Refer to master branch
1010

11+
## \[v1.1.3\] - 2019-10-19
12+
13+
### PHP version 7.3:
14+
- Added PHP version 7.3
15+
- Set new latest default to PHP 7.3
16+
1117
## \[v1.1.2\] - 2019-10-19
1218

1319
### Refactor Hooks into Functions:

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ SOURCE_BRANCH:=$(shell git rev-parse --abbrev-ref HEAD)
44
DOCKER_REPO=jestefane/php-dev
55
DOCKER_TAG=
66

7-
# Possible PHP versions: 5.5, 5.6, 7.0, 7.1, 7.2
8-
PHP_VERSIONS=5.5 5.6 7.0 7.1 7.2
7+
# Possible PHP versions: 5.5, 5.6, 7.0, 7.1, 7.2, 7.3
8+
PHP_VERSIONS=5.5 5.6 7.0 7.1 7.2 7.3
99

1010
# Possible PHP variants: cli, fpm
1111
PHP_VARIANTS=cli fpm

README.md

+15-13
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
> Super simple Docker images for PHP development.
66
7-
**PHP Versions:** `5.5`, `5.6`, `7.0`, `7.1`, `7.2`
7+
**PHP Versions:** `5.5`, `5.6`, `7.0`, `7.1`, `7.2`, `7.3`
88

99
**PHP Variants:** `cli`, `fpm`
1010

@@ -26,7 +26,7 @@ $ docker pull jestefane/php-dev
2626
**Pull a specific version:**
2727

2828
```sh
29-
$ docker pull jestefane/php-dev:7.2-cli
29+
$ docker pull jestefane/php-dev:7.3-cli
3030
```
3131

3232
Pick between the various [images provided in this repository][images].
@@ -53,6 +53,7 @@ For convenience, the latest stable version/variant is also tagged as:
5353

5454
**Images names**:
5555

56+
- `jestefane/php-dev:7.3-cli`
5657
- `jestefane/php-dev:7.2-cli`
5758
- `jestefane/php-dev:7.1-cli`
5859
- `jestefane/php-dev:7.0-cli`
@@ -74,18 +75,19 @@ $ php-7.2-cli hello-world.php
7475

7576
**Images names**:
7677

77-
- `jestefane/php-dev:5.5-fpm`
78-
- `jestefane/php-dev:5.6-fpm`
79-
- `jestefane/php-dev:7.0-fpm`
80-
- `jestefane/php-dev:7.1-fpm`
78+
- `jestefane/php-dev:7.3-fpm`
8179
- `jestefane/php-dev:7.2-fpm`
80+
- `jestefane/php-dev:7.1-fpm`
81+
- `jestefane/php-dev:7.0-fpm`
82+
- `jestefane/php-dev:5.6-fpm`
83+
- `jestefane/php-dev:5.5-fpm`
8284

8385
**Shortcuts**: [`php-fpm`][php-fpm-ref]
8486

8587
**Example**:
8688

8789
```bash
88-
$ docker run jestefane/php-dev:7.2-fpm hello-world.php
90+
$ docker run jestefane/php-dev:7.3-fpm hello-world.php
8991

9092
# or using one of the provided shortcuts
9193
$ php-7.2-fpm hello-world.php
@@ -148,23 +150,23 @@ For more info on the `scripts` task [Makefile command reference][scripts-make].
148150

149151
Images: [All respective versions of the PHP CLI variant][cli]
150152

151-
Shortcuts: `php-5.5-cli`, `php-5.6-cli`, `php-7.0-cli`, `php-7.1-cli`, `php-7.2-cli`
153+
Shortcuts: `php-5.5-cli`, `php-5.6-cli`, `php-7.0-cli`, `php-7.1-cli`, `php-7.2-cli`, `php-7.3-cli`
152154

153155
Script template: [template/php.template][php-template]
154156

155157
#### PHP FPM
156158

157159
Images: [All respective versions of the PHP FPM variant][fpm]
158160

159-
Shortcuts: `php-5.5-fpm`, `php-5.6-fpm`, `php-7.0-fpm`, `php-7.1-fpm`, `php-7.2-fpm`
161+
Shortcuts: `php-5.5-fpm`, `php-5.6-fpm`, `php-7.0-fpm`, `php-7.1-fpm`, `php-7.2-fpm`, `php-7.3-cli`
160162

161163
Script template: [template/php.template][php-template]
162164

163165
#### Composer
164166

165167
Images: [All respective versions of `jestefane/php-dev` images][images] ([Composer][composer] is installed on every image)
166168

167-
Shortcuts: `composer-5.5`, `composer-5.6`, `composer-7.0`, `composer-7.1`, `composer-7.2`
169+
Shortcuts: `composer-5.5`, `composer-5.6`, `composer-7.0`, `composer-7.1`, `composer-7.2`, `composer-7.3`
168170

169171
Script template: [template/composer.template][composer-template]
170172

@@ -177,17 +179,17 @@ Script template: [template/composer.template][composer-template]
177179
| `SOURCE_BRANCH` | Appended to the image name.<br />[Docker Cloud variable][docker-cloud-variable] | Current Git branch: `git rev-parse --abbrev-ref HEAD` | Any `string` value |
178180
| `DOCKER_REPO` | The Dockerhub repository to perform the tasks against<br />[Docker Cloud variable][docker-cloud-variable] | `jestefane/php-dev` | A Dockerhub repository |
179181
| `DOCKER_TAG` | A combinaison of one PHP version and one PHP variant to perform a task only one image (for example `7.1-cli`)<br />[Docker Cloud variable][docker-cloud-variable] | Empty | Any `PHP_VERSION`-`PHP_VARIANT` combinaison |
180-
| `PHP_VERSIONS` | Space separated list of PHP versions to perform a task on. | `5.5 5.6 7.0 7.1 7.2` | Any combination from `5.5`, `5.6`, `7.0`, `7.1`, `7.2` |
182+
| `PHP_VERSIONS` | Space separated list of PHP versions to perform a task on. | `5.5 5.6 7.0 7.1 7.2 7.3` | Any combination from `5.5`, `5.6`, `7.0`, `7.1`, `7.2`, `7.3` |
181183
| `PHP_VARIANTS` | Space separated list of Docker build variants to perform a task on | `cli fpm` | `cli`, `fpm` |
182184
| `BIN_DIR` | Directory in your `PATH` where you would like to symlink the scripts | `/usr/local/bin` | Any path on your system. Preferaby one already in your `PATH` |
183185
| `SCRIPTS_DIR` | Directory where the scripts are generated (or removed). Relative to the repository's root | `scripts` | Any path on your system |
184186

185187
> **Note**: When overriding space separated values from the CLI, you have to escape spaces. For example in `bash` you can use `\` or wrap your values in `"`:
186188
>
187189
> ```sh
188-
> $ make build PHP_VERSIONS=7.0\ 7.1\ 7.2 PHP_VARIANTS=cli\ fpm
190+
> $ make build PHP_VERSIONS=7.0\ 7.1\ 7.2\ 7.3 PHP_VARIANTS=cli\ fpm
189191
> # or
190-
> $ make build PHP_VERSIONS="7.0 7.1 7.2" PHP_VARIANTS="cli fpm"
192+
> $ make build PHP_VERSIONS="7.0 7.1 7.2 7.3" PHP_VARIANTS="cli fpm"
191193
> ```
192194
193195
### Tasks

build/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# PHP version and variant to build (defaults are latest)
2-
ARG BUILD_PHP_VERSION=7.2
2+
ARG BUILD_PHP_VERSION=7.3
33
ARG BUILD_PHP_VARIANT=cli
44

55
FROM php:$BUILD_PHP_VERSION-$BUILD_PHP_VARIANT

build/hooks/post_push

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function isRelease() {
4747
}
4848

4949
function isLatest() {
50-
local latest_version=7.2
50+
local latest_version=7.3
5151
local latest_variant=cli
5252
[ "$php_version" == "$latest_version" ] && [ "$php_variant" == "$latest_variant" ]
5353
}

0 commit comments

Comments
 (0)