Skip to content

Commit

Permalink
1.9.0 release. Update RR to 2.11.4, Update PHP versions to latest p…
Browse files Browse the repository at this point in the history
…atches. Add new extensions: grpc, event
  • Loading branch information
roquie committed Nov 13, 2022
1 parent 7367b97 commit 37ce464
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 95 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

* `grpc` extension
* `event` extension

### Changed

Expand All @@ -18,7 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Deprecated

*None*
* Spiral docker images

### Removed

Expand Down
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@ include base74.mk
include base80.mk
include base81.mk

include spiral74.mk
include spiral80.mk
include spiral81.mk

all: base74 base80 base81 spiral74 spiral80 spiral81
all: base74 base80 base81
43 changes: 24 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ Simple image with PHP, RoadRunner and pre-installed extensions:
* `spacetabio/roadrunner-alpine:8.1-base-1.9.0` <br>
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spacetabio/roadrunner-alpine/8.1-base-1.9.0?style=flat-square)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/spacetabio/roadrunner-alpine/8.1-base-1.9.0?style=flat-square)
* `spacetabio/roadrunner-alpine:7.4-spiral-1.9.0` <br>
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spacetabio/roadrunner-alpine/7.4-spiral-1.9.0?style=flat-square)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/spacetabio/roadrunner-alpine/7.4-spiral-1.9.0?style=flat-square)
* `spacetabio/roadrunner-alpine:8.0-spiral-1.9.0` <br>
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spacetabio/roadrunner-alpine/8.0-spiral-1.9.0?style=flat-square)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/spacetabio/roadrunner-alpine/8.0-spiral-1.9.0?style=flat-square)
* `spacetabio/roadrunner-alpine:8.1-spiral-1.9.0` <br>
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spacetabio/roadrunner-alpine/8.1-spiral-1.9.0?style=flat-square)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/spacetabio/roadrunner-alpine/8.1-spiral-1.9.0?style=flat-square)
* DEPRECATED:
* `spacetabio/roadrunner-alpine:7.4-spiral-1.8.0` <br>
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spacetabio/roadrunner-alpine/7.4-spiral-1.8.0?style=flat-square)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/spacetabio/roadrunner-alpine/7.4-spiral-1.8.0?style=flat-square)
* `spacetabio/roadrunner-alpine:8.0-spiral-1.8.0` <br>
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spacetabio/roadrunner-alpine/8.0-spiral-1.8.0?style=flat-square)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/spacetabio/roadrunner-alpine/8.0-spiral-1.8.0?style=flat-square)
* `spacetabio/roadrunner-alpine:8.1-spiral-1.8.0` <br>
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spacetabio/roadrunner-alpine/8.1-spiral-1.8.0?style=flat-square)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/spacetabio/roadrunner-alpine/8.1-spiral-1.8.0?style=flat-square)

With xdebug:

Expand All @@ -40,15 +41,16 @@ With xdebug:
* `spacetabio/roadrunner-alpine:8.1-base-xdebug-1.9.0` <br>
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spacetabio/roadrunner-alpine/8.1-base-1.9.0?style=flat-square)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/spacetabio/roadrunner-alpine/8.1-base-xdebug-1.9.0?style=flat-square)
* `spacetabio/roadrunner-alpine:7.4-spiral-xdebug-1.9.0` <br>
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spacetabio/roadrunner-alpine/7.4-spiral-1.9.0?style=flat-square)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/spacetabio/roadrunner-alpine/7.4-spiral-xdebug-1.9.0?style=flat-square)
* `spacetabio/roadrunner-alpine:8.0-spiral-xdebug-1.9.0` <br>
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spacetabio/roadrunner-alpine/8.0-spiral-1.9.0?style=flat-square)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/spacetabio/roadrunner-alpine/8.0-spiral-xdebug-1.9.0?style=flat-square)
* `spacetabio/roadrunner-alpine:8.1-spiral-xdebug-1.9.0` <br>
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spacetabio/roadrunner-alpine/8.1-spiral-1.9.0?style=flat-square)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/spacetabio/roadrunner-alpine/8.1-spiral-xdebug-1.9.0?style=flat-square)
* DEPRECATED:
* `spacetabio/roadrunner-alpine:7.4-spiral-xdebug-1.8.0` <br>
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spacetabio/roadrunner-alpine/7.4-spiral-1.8.0?style=flat-square)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/spacetabio/roadrunner-alpine/7.4-spiral-xdebug-1.8.0?style=flat-square)
* `spacetabio/roadrunner-alpine:8.0-spiral-xdebug-1.8.0` <br>
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spacetabio/roadrunner-alpine/8.0-spiral-1.8.0?style=flat-square)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/spacetabio/roadrunner-alpine/8.0-spiral-xdebug-1.8.0?style=flat-square)
* `spacetabio/roadrunner-alpine:8.1-spiral-xdebug-1.8.0` <br>
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/spacetabio/roadrunner-alpine/8.1-spiral-1.8.0?style=flat-square)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/spacetabio/roadrunner-alpine/8.1-spiral-xdebug-1.8.0?style=flat-square)

## Basic usage

Expand Down Expand Up @@ -87,6 +89,8 @@ As default php-extensions are pre-installed:
* `exif`
* `zip`
* `bcmath`
* `grpc`
* `event`

## Configure

Expand Down Expand Up @@ -126,7 +130,8 @@ ENV PHP_OPCACHE_FILE_CACHE_ONLY=1
Format: `{phpVersion}-{imageType}-{semverImageVersion}`

Map:
- Image tag `*-1.9.0+` contains RoadRunner `2.7.3` and Spiral binary (in separate images).
- Image tag `*-1.9.0+` contains RoadRunner `2.11.4`
- Image tag `*-1.8.0+` contains RoadRunner `2.7.3` and Spiral binary (in separate images).
- Image tag `*-1.7.0+` contains RoadRunner `2.5.6` and Spiral binary (in separate images).
- Image tag `*-1.6.0+` contains RoadRunner `2.4.2` and Spiral binary (in separate images).
- Image tag `*-1.5.0+` contains RoadRunner `2.3.3` and Spiral binary (in separate images).
Expand Down
18 changes: 6 additions & 12 deletions base-xdebug/7.4/alpine.dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
FROM php:7.4-cli-alpine AS build

RUN apk add --update --no-cache bash pcre icu yaml libuv libpq libpng libjpeg libexif libzip freetype \
&& apk add --update --no-cache --virtual build-dependencies \
autoconf g++ libtool pcre make icu-dev postgresql-dev \
postgresql-libs libsasl db yaml-dev libuv-dev freetype-dev libjpeg-turbo-dev jpeg-dev libexif-dev libpng-dev libzip-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-install -j $(nproc) pcntl opcache intl gd pdo_mysql pdo_pgsql sockets exif zip bcmath \
&& pecl install yaml \
&& docker-php-ext-enable yaml \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& apk del build-dependencies
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/

RUN chmod +x /usr/local/bin/install-php-extensions \
&& install-php-extensions gd yaml grpc opcache pcntl opcache intl gd pdo_mysql pdo_pgsql sockets exif zip bcmath event xdebug

RUN apk add --update --no-cache make

ENV ROADRUNNER_VERSION=2.11.4
RUN wget -O rr.tar.gz "https://github.com/roadrunner-server/roadrunner/releases/download/v${ROADRUNNER_VERSION}/roadrunner-${ROADRUNNER_VERSION}-linux-amd64.tar.gz" \
Expand Down
18 changes: 6 additions & 12 deletions base-xdebug/8.0/alpine.dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
FROM php:8.0-cli-alpine AS build

RUN apk add --update --no-cache bash pcre icu yaml libpq libuv libpng libjpeg libexif libzip freetype \
&& apk add --update --no-cache --virtual build-dependencies \
autoconf g++ libtool pcre make icu-dev postgresql-dev \
postgresql-libs libsasl db yaml-dev libuv-dev freetype-dev libjpeg-turbo-dev jpeg-dev libexif-dev libpng-dev libzip-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-install -j $(nproc) pcntl opcache intl gd pdo_mysql pdo_pgsql sockets exif zip bcmath \
&& pecl install yaml \
&& docker-php-ext-enable yaml \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& apk del build-dependencies
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/

RUN chmod +x /usr/local/bin/install-php-extensions \
&& install-php-extensions gd yaml grpc opcache pcntl opcache intl gd pdo_mysql pdo_pgsql sockets exif zip bcmath event xdebug

RUN apk add --update --no-cache make

ENV ROADRUNNER_VERSION=2.11.4
RUN wget -O rr.tar.gz "https://github.com/roadrunner-server/roadrunner/releases/download/v${ROADRUNNER_VERSION}/roadrunner-${ROADRUNNER_VERSION}-linux-amd64.tar.gz" \
Expand Down
19 changes: 6 additions & 13 deletions base-xdebug/8.1/alpine.dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
FROM php:8.1-cli-alpine AS build

RUN apk add --update --no-cache bash pcre icu yaml libpq libuv libpng libjpeg libexif libzip freetype \
&& apk add --update --no-cache --virtual build-dependencies \
autoconf g++ libtool pcre make icu-dev postgresql-dev \
postgresql-libs libsasl db yaml-dev libuv-dev freetype-dev libjpeg-turbo-dev jpeg-dev libexif-dev libpng-dev libzip-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-install -j $(nproc) pcntl opcache intl gd pdo_mysql pdo_pgsql sockets exif zip bcmath \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& apk del build-dependencies

# && pecl install yaml \
# && docker-php-ext-enable yaml \
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/

RUN chmod +x /usr/local/bin/install-php-extensions \
&& install-php-extensions gd yaml grpc opcache pcntl opcache intl gd pdo_mysql pdo_pgsql sockets exif zip bcmath event xdebug

RUN apk add --update --no-cache make

ENV ROADRUNNER_VERSION=2.11.4
RUN wget -O rr.tar.gz "https://github.com/roadrunner-server/roadrunner/releases/download/v${ROADRUNNER_VERSION}/roadrunner-${ROADRUNNER_VERSION}-linux-amd64.tar.gz" \
Expand Down
16 changes: 6 additions & 10 deletions base/7.4/alpine.dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
FROM php:7.4-cli-alpine AS build

RUN apk add --update --no-cache pcre icu yaml libuv libpq libpng libjpeg libexif libzip freetype \
&& apk add --update --no-cache --virtual build-dependencies \
autoconf g++ libtool pcre make icu-dev postgresql-dev \
postgresql-libs libsasl db yaml-dev libuv-dev freetype-dev libjpeg-turbo-dev jpeg-dev libexif-dev libpng-dev libzip-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-install -j $(nproc) pcntl opcache intl gd pdo_mysql pdo_pgsql sockets exif zip bcmath \
&& pecl install yaml \
&& docker-php-ext-enable yaml \
&& apk del build-dependencies
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/

RUN chmod +x /usr/local/bin/install-php-extensions \
&& install-php-extensions gd yaml grpc opcache pcntl opcache intl gd pdo_mysql pdo_pgsql sockets exif zip bcmath event

RUN apk add --update --no-cache make

ENV ROADRUNNER_VERSION=2.11.4
RUN wget -O rr.tar.gz "https://github.com/roadrunner-server/roadrunner/releases/download/v${ROADRUNNER_VERSION}/roadrunner-${ROADRUNNER_VERSION}-linux-amd64.tar.gz" \
Expand Down
16 changes: 6 additions & 10 deletions base/8.0/alpine.dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
FROM php:8.0-cli-alpine AS build

RUN apk add --update --no-cache pcre icu yaml libuv libpq libpng libjpeg libexif libzip freetype \
&& apk add --update --no-cache --virtual build-dependencies \
autoconf g++ libtool pcre make icu-dev postgresql-dev \
postgresql-libs libsasl db yaml-dev libuv-dev freetype-dev libjpeg-turbo-dev jpeg-dev libexif-dev libpng-dev libzip-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-install -j $(nproc) pcntl opcache intl gd pdo_mysql pdo_pgsql sockets exif zip bcmath \
&& pecl install yaml \
&& docker-php-ext-enable yaml \
&& apk del build-dependencies
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/

RUN chmod +x /usr/local/bin/install-php-extensions \
&& install-php-extensions gd yaml grpc opcache pcntl opcache intl gd pdo_mysql pdo_pgsql sockets exif zip bcmath event

RUN apk add --update --no-cache make

ENV ROADRUNNER_VERSION=2.11.4
RUN wget -O rr.tar.gz "https://github.com/roadrunner-server/roadrunner/releases/download/v${ROADRUNNER_VERSION}/roadrunner-${ROADRUNNER_VERSION}-linux-amd64.tar.gz" \
Expand Down
19 changes: 6 additions & 13 deletions base/8.1/alpine.dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
FROM php:8.1-cli-alpine AS build

RUN apk add --update --no-cache pcre icu yaml libuv libpq libpng libjpeg libexif libzip freetype \
&& apk add --update --no-cache --virtual build-dependencies \
autoconf g++ libtool pcre make icu-dev postgresql-dev \
postgresql-libs libsasl db yaml-dev libuv-dev freetype-dev libjpeg-turbo-dev jpeg-dev \
libexif-dev libpng-dev libzip-dev ${PHPIZE_DEPS} \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-install -j $(nproc) pcntl opcache intl gd pdo_mysql pdo_pgsql sockets exif zip bcmath \
&& pecl install yaml \
&& docker-php-ext-enable yaml \
&& pecl install grpc \
&& docker-php-ext-enable grpc \
&& apk del build-dependencies ${PHPIZE_DEPS}
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/

RUN chmod +x /usr/local/bin/install-php-extensions \
&& install-php-extensions gd yaml grpc opcache pcntl opcache intl gd pdo_mysql pdo_pgsql sockets exif zip bcmath event

RUN apk add --update --no-cache make

ENV ROADRUNNER_VERSION=2.11.4
RUN wget -O rr.tar.gz "https://github.com/roadrunner-server/roadrunner/releases/download/v${ROADRUNNER_VERSION}/roadrunner-${ROADRUNNER_VERSION}-linux-amd64.tar.gz" \
Expand Down

0 comments on commit 37ce464

Please sign in to comment.