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

Commit

Permalink
Add PHP 7.3.0alpha2 images
Browse files Browse the repository at this point in the history
  • Loading branch information
petk committed Jun 21, 2018
1 parent e90c023 commit c603cb3
Show file tree
Hide file tree
Showing 10 changed files with 487 additions and 29 deletions.
57 changes: 30 additions & 27 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Changelog

All notable changes to this project will be documented in this file. This project
[keeps a CHANGELOG](http://keepachangelog.com/) and adheres to
[Semantic Versioning](http://semver.org/).
[keeps a CHANGELOG](http://keepachangelog.com/) based on the time changes.

## [UNREALEASED] 2018-01-01
## 2018-06-22

* PHP 7.3 images

## 2018-06-21

* Repository moved to github.com/phpearth
* PHP 7.2.4
Expand All @@ -20,33 +23,33 @@ All notable changes to this project will be documented in this file. This projec
* PHP 7.1.14
* PHP 7.2.2

## [1.2.4] 2018-02-01
## 2018-02-01

* PHP 7.0.27
* PHP 7.1.13
* PHP 7.2.1

## [1.2.3] 2018-01-03
## 2018-01-03

* Alpine 3.7
* PHP 7.2.0 stable
* Fix OpenLiteSpeed images to run the server properly
* Expose important web server ports in Docker images
* New Lighttpd web server images

## [1.2.2] 2017-11-22
## 2017-11-22

* PHP 7.2.0RC6
* PHP 7.1.12
* PHP 7.0.26
* OpenLiteSpeed 1.4.28

## [1.2.1] 2017-10-29
## 2017-10-29

* Add phar extension to all Docker images except minimal ones.
* Use PHP.earth Alpine packages with custom compiler optimization flags.

## [1.2.0] 2017-10-25
## 2017-10-25

* PHP 7.2.0RC5
* PHP 7.1.11
Expand All @@ -55,7 +58,7 @@ All notable changes to this project will be documented in this file. This projec
* Alpine repository moved to its own [location](https://github.com/php-earth/alpine)
and repository folder structure refactored

## [1.1.3] 2017-10-01
## 2017-10-01

* Refactored PHP APKBUILD files
* PHPUnit 6.3.1
Expand All @@ -71,7 +74,7 @@ All notable changes to this project will be documented in this file. This projec
* PECL Redis 3.1.4
* [Apache bug fixed](https://github.com/php-earth/docker-php/issues/4)

## [1.1.2] 2017-09-20
## 2017-09-20

* Swoole 1.9.20
* OpenLiteSpeed 1.4.27
Expand All @@ -82,7 +85,7 @@ All notable changes to this project will be documented in this file. This projec
* Composer 1.5.2
* [iconv bug fix](https://github.com/php-earth/docker-php/issues/3)

## [1.1.1] 2017-08-14
## 2017-08-14

* Refactor and fix multiple issues with Alpine repository packages
* Swoole 1.9.18
Expand All @@ -93,92 +96,92 @@ All notable changes to this project will be documented in this file. This projec
* PHP 7.0.22
* New tests

## [1.1.0] 2017-07-06
## 2017-07-06

* Debian based images removed in favor of Alpine for smallest possible sizes
* Introducing PHP.earth Alpine repository

## [1.0.5] 2017-06-20
## 2017-06-20

* Apache HTTP Server
* PHP CGI
* Refactored and stabilized Docker tags
* Improved documentation
* Tests

## [1.0.4] 2017-06-12
## 2017-06-12

* Repository location refactored
* PEAR removed
* PHP 7.2.0alpha1
* Composer installation script with optional prestissimo plugin

## [1.0.3] 2017-06-03
## 2017-06-03

* OpenLiteSpeed 1.4.26
* New tag added for OpenLiteSpeed on Alpine
* Use `-O3` optimization level for GCC when compiling PHP
* Move intl, xsl and gettext PHP extensions to installation script
* Optimize Debian images size

## [1.0.2] 2017-05-29
## 2017-05-29

* Improved script for downloading PHP extensions
* Fixed minor bug in script for downloading Composer
* Removed bash from Alpine Docker images
* Refactor Dockerfiles
* PHP GD extension moved to installation script

## [1.0.1] 2017-05-27
## 2017-05-27

* Refactored Docker tags
* Upgraded to Alpine 3.6 base images
* Installation script for Composer and Prestissimo plugin for parallel downloading
of PHP packages

## [1.0.0] 2017-05-13
## 2017-05-13

* Repository refactored
* PHP 7.1.5

## [0.0.9] 2017-04-13
## 2017-04-13

* PHP 7.1.4

## [0.0.8] 2017-04-01
## 2017-04-01

* Xdebug extension

## [0.0.7] 2017-04-01
## 2017-04-01

* Fixed OpenLiteSpeed installation dependencies

## [0.0.6] 2017-04-01
## 2017-04-01

* Added support for multiple PHP extensions
* Documentation improvements
* Composer removed from base images

## [0.0.5] 2017-03-31
## 2017-03-31

* xmlrpc support
* postgresql and pdo_pgsql support
* gmp support
* recode support

## [0.0.4] 2017-03-28
## 2017-03-28

* The imagick PECL extension support

## [0.0.3] 2017-03-27
## 2017-03-27

* The memcached extension support

## [0.0.2] 2017-03-21
## 2017-03-21

* Tidy extension support
* WDDX extension support

## [0.0.1] 2017-03-20
## 2017-03-20

* Initial release with PHP 7.1.3
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,20 @@ build-72: ## Build PHP 7.2 images
make build TAG="7.2-litespeed"
make build TAG="7.2-nginx"

build-73: ## Build PHP 7.3 images
make build TAG="7.3"
make build TAG="7.3-apache"
make build TAG="7.3-cgi"
make build TAG="7.3-cli"
make build TAG="7.3-lighttpd"
make build TAG="7.3-litespeed"
make build TAG="7.3-nginx"

build-all: ## Build all images
make build-70
make build-71
make build-72
make build-73

push-70: ## Push built PHP 7.0 images to Docker Hub
@docker push phpearth/php:7.0
Expand Down Expand Up @@ -74,10 +84,20 @@ push-72: ## Push built PHP 7.2 images to Docker Hub
@docker tag phpearth/php:7.2 phpearth/php:latest
@docker push phpearth/php:latest

push-73: ## Push built PHP 7.3 images to Docker Hub
@docker push phpearth/php:7.3
@docker push phpearth/php:7.3-apache
@docker push phpearth/php:7.3-cgi
@docker push phpearth/php:7.3-cli
@docker push phpearth/php:7.3-lighttpd
@docker push phpearth/php:7.3-litespeed
@docker push phpearth/php:7.3-nginx

push-all: ## Push all built images to Docker Hub
make push-70
make push-71
make push-72
make push-73

build-and-push-70: ## Build and push PHP 7.0 images to Docker Hub
make build-70
Expand All @@ -91,6 +111,10 @@ build-and-push-72: ## Build and push PHP 7.2 images to Docker Hub
make build-72
make push-72

build-and-push-73: ## Build and push PHP 7.3 images to Docker Hub
make build-73
make push-73

build-and-push: ## Build all images and push them to Docker Hub
make build-all
make push-all
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://img.shields.io/travis/phpearth/docker-php/master.svg?style=plastic)](https://travis-ci.org/phpearth/docker-php) [![Docker Automated build](https://img.shields.io/docker/automated/phpearth/php.svg?style=plastic)](https://hub.docker.com/r/phpearth/php/) [![MIT License](https://img.shields.io/github/license/phpearth/docker-php.svg?style=plastic "MIT License")](https://github.com/phpearth/docker-php/blob/master/LICENSE)

Carefully crafted Docker images for PHP developers with PHP 7.2, PHP 7.1, PHP 7.0, Nginx, OpenLiteSpeed, Apache HTTP Server, and Lighttpd.
Carefully crafted Docker images for PHP developers with PHP 7.3, PHP 7.2, PHP 7.1, PHP 7.0, Nginx, OpenLiteSpeed, Apache HTTP Server, and Lighttpd.

![PHP.earth](https://cdn.rawgit.com/phpearth/logo/master/svg/indigo_300x300.svg "PHP.earth")

Expand All @@ -24,6 +24,13 @@ The following list contains all current Docker tags and what is included in each

| System | Docker Tag | Features | Size |
| ------ | ---------- | -------- | ---- |
| **PHP 7.3.0alpha2**@Alpine 3.7 | [`7.3`](https://github.com/phpearth/docker-php/tree/master/docker/7.3.Dockerfile) | Small PHP CLI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.3.svg)](https://microbadger.com/images/phpearth/php:7.3 "Image size") |
| | [`7.3-cli`](https://github.com/phpearth/docker-php/tree/master/docker/7.3-cli.Dockerfile) | PHP CLI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.3-cli.svg)](https://microbadger.com/images/phpearth/php:7.3-cli "Image size") |
| | [`7.3-lighttpd`](https://github.com/phpearth/docker-php/tree/master/docker/7.3-lighttpd.Dockerfile) | Lighttpd 1.4.48 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.3-lighttpd.svg)](https://microbadger.com/images/phpearth/php:7.3-lighttpd "Image size") |
| | [`7.3-litespeed`](https://github.com/phpearth/docker-php/tree/master/docker/7.3-litespeed.Dockerfile) | OpenLiteSpeed 1.5.0 RC3 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.3-litespeed.svg)](https://microbadger.com/images/phpearth/php:7.3-litespeed "Image size") |
| | [`7.3-nginx`](https://github.com/phpearth/docker-php/tree/master/docker/7.3-nginx.Dockerfile) | Nginx 1.12.2, FPM | [![](https://images.microbadger.com/badges/image/phpearth/php:7.3-nginx.svg)](https://microbadger.com/images/phpearth/php:7.3-nginx "Image size") |
| | [`7.3-apache`](https://github.com/phpearth/docker-php/tree/master/docker/7.3-apache.Dockerfile) | Apache 2.4.33 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.3-apache.svg)](https://microbadger.com/images/phpearth/php:7.3-apache "Image size") |
| | [`7.3-cgi`](https://github.com/phpearth/docker-php/tree/master/docker/7.3-cgi.Dockerfile) | PHP CGI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.3-cgi.svg)](https://microbadger.com/images/phpearth/php:7.3-cgi "Image size") |
| **PHP 7.2.6**@Alpine 3.7 | [`latest`, `7.2`](https://github.com/phpearth/docker-php/tree/master/docker/7.2.Dockerfile) | Small PHP CLI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.2.svg)](https://microbadger.com/images/phpearth/php:7.2 "Image size") |
| | [`7.2-cli`](https://github.com/phpearth/docker-php/tree/master/docker/7.2-cli.Dockerfile) | PHP CLI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.2-cli.svg)](https://microbadger.com/images/phpearth/php:7.2-cli "Image size") |
| | [`7.2-lighttpd`](https://github.com/phpearth/docker-php/tree/master/docker/7.2-lighttpd.Dockerfile) | Lighttpd 1.4.48 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.2-lighttpd.svg)](https://microbadger.com/images/phpearth/php:7.2-lighttpd "Image size") |
Expand All @@ -50,6 +57,7 @@ Tags follow PHP release cycle and [PHP supported versions timeline](http://php.n

| PHP | Active Support Until | Security Support Until | Info |
| ------- | -------------------- | ---------------------- | ---- |
| **7.3** | TBD | TBD | Upcoming PHP release, final stable in November 2018 |
| **7.2** | 2019-11-30 | 2020-11-20 | Current recommended branch for production |
| **7.1** | 2018-12-01 | 2019-12-01 | Previous stable branch |
| **7.0** | 2017-12-03 | 2018-12-03 | Previous branch for legacy projects |
Expand Down Expand Up @@ -203,7 +211,7 @@ RUN echo "https://repos.php.earth/alpine" >> /etc/apk/repositories \
&& apk add --no-cache php7.2
```

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

## Building Images

Expand Down
69 changes: 69 additions & 0 deletions docker/7.3-apache.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
FROM alpine:3.7

ARG BUILD_DATE
ARG VCS_REF

LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/phpearth/docker-php.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.schema-version="1.0" \
org.label-schema.vendor="PHP.earth" \
org.label-schema.name="docker-php" \
org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.3, Apache, and Alpine" \
org.label-schema.url="https://github.com/phpearth/docker-php"

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="php7.3 \
php7.3-phar \
php7.3-bcmath \
php7.3-calendar \
php7.3-mbstring \
php7.3-exif \
php7.3-ftp \
php7.3-openssl \
php7.3-zip \
php7.3-sysvsem \
php7.3-sysvshm \
php7.3-sysvmsg \
php7.3-shmop \
php7.3-sockets \
php7.3-zlib \
php7.3-bz2 \
php7.3-curl \
php7.3-simplexml \
php7.3-xml \
php7.3-opcache \
php7.3-dom \
php7.3-xmlreader \
php7.3-xmlwriter \
php7.3-tokenizer \
php7.3-ctype \
php7.3-session \
php7.3-fileinfo \
php7.3-iconv \
php7.3-json \
php7.3-posix \
php7.3-apache2 \
curl \
ca-certificates \
runit \
apache2"

# PHP.earth Alpine repository for better developer experience
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

RUN set -x \
&& echo "https://repos.php.earth/alpine/v3.7" >> /etc/apk/repositories \
&& apk add --no-cache $DEPS \
&& mkdir /run/apache2 \
&& ln -sf /dev/stdout /var/log/apache2/access.log \
&& ln -sf /dev/stderr /var/log/apache2/error.log

COPY tags/apache /

EXPOSE 80

CMD ["/sbin/runit-wrapper"]
Loading

0 comments on commit c603cb3

Please sign in to comment.