Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Commit 022e6f2

Browse files
committed
Add PHP 7.3.0
1 parent e3ecafd commit 022e6f2

3 files changed

Lines changed: 23 additions & 19 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file. This project
44
[keeps a CHANGELOG](http://keepachangelog.com/) based on the time changes.
55

6+
## 2018-12-06
7+
8+
* PHP 7.3.0
9+
610
## 2018-10-24
711

812
* PHP 7.3.0RC4

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ Tags follow PHP release cycle and [PHP supported versions timeline](http://php.n
5757

5858
| PHP | Active Support Until | Security Support Until | Info |
5959
| ------- | -------------------- | ---------------------- | ---- |
60-
| **7.3** | TBD | TBD | Upcoming PHP release, final stable in December 2018 |
61-
| **7.2** | 2019-11-30 | 2020-11-20 | Current recommended branch for production |
62-
| **7.1** | 2018-12-01 | 2019-12-01 | Previous stable branch |
63-
| **7.0** | 2017-12-03 | 2018-12-03 | Previous branch for legacy projects |
60+
| **7.3** | TBD | TBD | Current recommended branch for production |
61+
| **7.2** | 2019-11-30 | 2020-11-20 | Previous stable branch |
62+
| **7.1** | 2018-12-01 | 2019-12-01 | Previous branch for legacy projects |
63+
| **7.0** | 2017-12-03 | 2018-12-03 | Previous branch for legacy projects, not supported anymore |
6464

6565
## Quick usage
6666

@@ -69,7 +69,7 @@ Tags follow PHP release cycle and [PHP supported versions timeline](http://php.n
6969
`Dockerfile` for running Nginx HTTP server with PHP FPM:
7070

7171
```Dockerfile
72-
FROM phpearth/php:7.2-nginx
72+
FROM phpearth/php:7.3-nginx
7373
```
7474

7575
Build Docker image and run Docker container:
@@ -92,7 +92,7 @@ docker run -it --rm -v `pwd`:/usr/src/myapp -w /usr/src/myapp phpearth/php php s
9292
To install Composer:
9393

9494
```Dockerfile
95-
FROM phpearth/php:7.2-nginx
95+
FROM phpearth/php:7.3-nginx
9696

9797
RUN apk add --no-cache composer
9898
```
@@ -102,7 +102,7 @@ RUN apk add --no-cache composer
102102
To install PHPUnit:
103103

104104
```Dockerfile
105-
FROM phpearth/php:7.2-nginx
105+
FROM phpearth/php:7.3-nginx
106106

107107
RUN apk add --no-cache phpunit
108108
```
@@ -112,31 +112,31 @@ RUN apk add --no-cache phpunit
112112
To run OpenLiteSpeed web server:
113113

114114
```Dockerfile
115-
FROM phpearth/php:7.2-litespeed
115+
FROM phpearth/php:7.3-litespeed
116116
```
117117

118118
### Lighttpd
119119

120120
To run Lighttpd web server:
121121

122122
```Dockerfile
123-
FROM phpearth/php:7.2-lighttpd
123+
FROM phpearth/php:7.3-lighttpd
124124
```
125125

126126
### PHP extensions
127127

128128
To install additional PHP extensions, you can use packages from the [PHP.earth Alpine repository](https://docs.php.earth/linux/alpine):
129129

130130
```Dockerfile
131-
FROM phpearth/php:7.2-nginx
131+
FROM phpearth/php:7.3-nginx
132132

133-
RUN apk add --no-cache php7.2-sodium php7.2-intl php7.2-pdo_mysql
133+
RUN apk add --no-cache php7.3-sodium php7.3-intl php7.3-pdo_mysql
134134
```
135135

136136
or install them with `pecl`:
137137

138138
```bash
139-
apk add --no-cache php7.2-dev gcc g++
139+
apk add --no-cache php7.3-dev gcc g++
140140
pecl install {extension-name}
141141
```
142142

@@ -146,10 +146,10 @@ In case you'd need an additional extension in the PHP.earth repository, [open an
146146

147147
### Docker Stack
148148

149-
Docker Stack is way of orchestration of Docker services and simplifies running multiple services of your application. In this example we'll run an Nginx web server with PHP 7.2 FPM with `docker-compose.yml` file. In a new project directory create a `Dockerfile`:
149+
Docker Stack is way of orchestration of Docker services and simplifies running multiple services of your application. In this example we'll run an Nginx web server with PHP 7.3 FPM with `docker-compose.yml` file. In a new project directory create a `Dockerfile`:
150150

151151
```Dockerfile
152-
FROM phpearth/php:7.2-nginx
152+
FROM phpearth/php:7.3-nginx
153153
```
154154

155155
The `docker-compose.yml` file:
@@ -189,12 +189,12 @@ docker stack deploy -c docker-compose.yaml mystack
189189

190190
And there should be `phpinfo()` output visible on `http://localhost`. Make sure there isn't any other service listening on port 80 before running above command.
191191

192-
### PHP 7.0 and PHP 7.1
192+
### PHP 7.0, 7.1, PHP 7.2
193193

194-
To use PHP 7.0 or 7.1 use Docker images with `7.0` or `7.1`:
194+
To use older versions PHP 7.0, 7.1, or 7.2 use Docker images with `7.0`, `7.1`, or `7.2`:
195195

196196
```Dockerfile
197-
FROM phpearth/php:7.1-nginx
197+
FROM phpearth/php:7.2-nginx
198198
199199
RUN apk add --no-cache composer
200200
```
@@ -208,7 +208,7 @@ FROM alpine:3.8
208208
209209
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub
210210
RUN echo "https://repos.php.earth/alpine" >> /etc/apk/repositories \
211-
&& apk add --no-cache php7.2
211+
&& apk add --no-cache php7.3
212212
```
213213

214214
PHP.earth Alpine packages are prefixed with `php7.3`, `php7.2`, `php7.1`, and `php7.0`.

docker/hooks/post_push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
TAG=$(echo $IMAGE_NAME| cut -d':' -f 2)
44

5-
if [ "$TAG" == "7.2" ]; then
5+
if [ "$TAG" == "7.3" ]; then
66
docker tag $IMAGE_NAME $DOCKER_REPO:latest
77
docker push $DOCKER_REPO:latest
88
fi

0 commit comments

Comments
 (0)