Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
docker-php-yii2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dmstr
docker-php-yii2
Commits
a041eb51
Commit
a041eb51
authored
Sep 04, 2017
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use build ARG for PHP base image version
parent
53713467
Pipeline
#25519
passed with stages
in 9 minutes and 53 seconds
Changes
4
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
.gitlab-ci.yml
.gitlab-ci.yml
+1
-0
docker-compose.yml
docker-compose.yml
+4
-0
Dockerfile-fpm
php/Dockerfile-fpm
+2
-1
Dockerfile-fpm-alpine
php/Dockerfile-fpm-alpine
+2
-1
No files found.
.gitlab-ci.yml
View file @
a041eb51
...
...
@@ -13,6 +13,7 @@ variables:
PHP_IMAGE_NAME
:
dmstr/php-yii2
before_script
:
-
export PHP_BASE_IMAGE_VERSION=7.2.0RC1
-
export PHP_IMAGE_VERSION=$(git describe --always --dirty)
-
export STACK_PHP_IMAGE=${PHP_IMAGE_NAME}:${PHP_IMAGE_VERSION}
-
export REGISTRY_PHP_IMAGE=${PHP_IMAGE_NAME}:${CI_BUILD_REF_NAME}
...
...
docker-compose.yml
View file @
a041eb51
...
...
@@ -5,6 +5,8 @@ services:
build
:
dockerfile
:
Dockerfile-fpm
context
:
'
php'
args
:
-
PHP_BASE_IMAGE_VERSION=${PHP_BASE_IMAGE_VERSION}
image
:
${PHP_IMAGE_NAME}:${PHP_IMAGE_VERSION}
environment
:
-
GITHUB_API_TOKEN=${GITHUB_API_TOKEN}
...
...
@@ -25,6 +27,8 @@ services:
build
:
dockerfile
:
Dockerfile-fpm-alpine
context
:
'
php'
args
:
-
PHP_BASE_IMAGE_VERSION=${PHP_BASE_IMAGE_VERSION}
image
:
${PHP_IMAGE_NAME}:${PHP_IMAGE_VERSION}-alpine
volumes
:
-
./test:/test
...
...
php/Dockerfile-fpm
View file @
a041eb51
# PHP Docker image for Yii 2.0 Framework runtime
# ==============================================
FROM php:7.2.0beta3-fpm
ARG PHP_BASE_IMAGE_VERSION
FROM php:${PHP_BASE_IMAGE_VERSION}-fpm
# Install system packages for PHP extensions recommended for Yii 2.0 Framework
ENV DEBIAN_FRONTEND=noninteractive
...
...
php/Dockerfile-fpm-alpine
View file @
a041eb51
# PHP Docker image for Yii 2.0 Framework runtime
# ==============================================
FROM php:7.2.0beta3-fpm-alpine
ARG PHP_BASE_IMAGE_VERSION
FROM php:${PHP_BASE_IMAGE_VERSION}-fpm-alpine
# Install system packages & PHP extensions required for Yii 2.0 Framework
RUN apk --update --virtual build-deps add \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment