Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PHP 7.1 as a kind #2415

Merged
merged 13 commits into from Jul 24, 2017
6 changes: 6 additions & 0 deletions ansible/group_vars/all
Expand Up @@ -83,6 +83,12 @@ runtimesManifest:
attachmentType: "application/java-archive"
sentinelledLogs: false
requireMain: true
php:
- kind: "php:7.1"
default: true
deprecated: false
image:
name: "action-php-v7.1"
blackboxes:
- name: "dockerskeleton"

Expand Down
50 changes: 50 additions & 0 deletions core/php7.1Action/Dockerfile
@@ -0,0 +1,50 @@
FROM php:7.1-alpine

RUN \

apk update && apk upgrade && \

# install dependencies
apk add \
postgresql-dev \
icu \
icu-libs \
icu-dev \
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
libxml2-dev \

&& \

# install useful PHP extensions
docker-php-ext-install \
opcache \
mysqli \
pdo_mysql \
pdo_pgsql \
intl \
bcmath \
zip \
gd \
soap \

&& \

# install Composer
cd /tmp && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer

# create src directory to store action files
RUN mkdir -p /action/src

# install Composer dependencies
COPY composer.json /action
RUN cd /action && /usr/bin/composer install --no-plugins --no-scripts --prefer-dist --no-dev -o && rm composer.lock

# copy required files
COPY router.php /action
COPY runner.php /action

# Run webserver on port 8080
EXPOSE 8080
CMD [ "php", "-S", "0.0.0.0:8080", "-d", "expose_php=0", "-d", "html_errors=0", "-d", "error_reporting=E_ALL", "/action/router.php" ]
2 changes: 2 additions & 0 deletions core/php7.1Action/build.gradle
@@ -0,0 +1,2 @@
ext.dockerImageName = 'action-php-v7.1'
apply from: '../../gradle/docker.gradle'
11 changes: 11 additions & 0 deletions core/php7.1Action/composer.json
@@ -0,0 +1,11 @@
{
"config": {
"platform": {
"php": "7.1"
}
},
"require": {
"guzzlehttp/guzzle": "^6.3",
"ramsey/uuid": "^3.6"
}
}