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
a6c5ea54
Commit
a6c5ea54
authored
Apr 21, 2020
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switched to yii2 base PHP 7.4 image
parent
9313b344
Pipeline
#47952
passed with stages
in 1 minute and 44 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
80 deletions
+4
-80
.env-dist
.env-dist
+1
-1
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
Dockerfile-fpm
php/Dockerfile-fpm
+1
-77
No files found.
.env-dist
View file @
a6c5ea54
...
@@ -2,4 +2,4 @@ PHP_IMAGE_NAME=local/dmstr/php-yii2
...
@@ -2,4 +2,4 @@ PHP_IMAGE_NAME=local/dmstr/php-yii2
PHP_IMAGE_VERSION=latest
PHP_IMAGE_VERSION=latest
GITHUB_API_TOKEN=0000000000000000000000000000000000000000
GITHUB_API_TOKEN=0000000000000000000000000000000000000000
PHP_BASE_IMAGE_VERSION=7.
3
PHP_BASE_IMAGE_VERSION=7.
4
.gitlab-ci.yml
View file @
a6c5ea54
...
@@ -13,7 +13,7 @@ variables:
...
@@ -13,7 +13,7 @@ variables:
before_script
:
before_script
:
-
export ISOLATION=buildpipeline${CI_PIPELINE_ID}
-
export ISOLATION=buildpipeline${CI_PIPELINE_ID}
-
export COMPOSE_PROJECT_NAME=${ISOLATION}${CI_BUILD_NAME}
-
export COMPOSE_PROJECT_NAME=${ISOLATION}${CI_BUILD_NAME}
-
export PHP_BASE_IMAGE_VERSION=7.
3
-
export PHP_BASE_IMAGE_VERSION=7.
4
-
export PHP_IMAGE_VERSION=$(git describe --always --dirty --tags)
-
export PHP_IMAGE_VERSION=$(git describe --always --dirty --tags)
-
export STACK_PHP_IMAGE=${PHP_IMAGE_NAME}:${PHP_IMAGE_VERSION}
-
export STACK_PHP_IMAGE=${PHP_IMAGE_NAME}:${PHP_IMAGE_VERSION}
-
export REGISTRY_PHP_IMAGE=${PHP_IMAGE_NAME}:${CI_BUILD_REF_NAME}
-
export REGISTRY_PHP_IMAGE=${PHP_IMAGE_NAME}:${CI_BUILD_REF_NAME}
...
@@ -108,4 +108,4 @@ release:nginx:tags:
...
@@ -108,4 +108,4 @@ release:nginx:tags:
-
docker login --username ${REGISTRY_USER} --password ${REGISTRY_PASS} ${REGISTRY_HOST}
-
docker login --username ${REGISTRY_USER} --password ${REGISTRY_PASS} ${REGISTRY_HOST}
-
docker tag ${STACK_PHP_IMAGE}-nginx ${REGISTRY_PHP_IMAGE}-nginx
-
docker tag ${STACK_PHP_IMAGE}-nginx ${REGISTRY_PHP_IMAGE}-nginx
-
docker push ${REGISTRY_PHP_IMAGE}-nginx
-
docker push ${REGISTRY_PHP_IMAGE}-nginx
-
docker logout ${REGISTRY_HOST}
-
docker logout ${REGISTRY_HOST}
\ No newline at end of file
php/Dockerfile-fpm
View file @
a6c5ea54
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# ==============================================
# ==============================================
ARG PHP_BASE_IMAGE_VERSION
ARG PHP_BASE_IMAGE_VERSION
FROM php:${PHP_BASE_IMAGE_VERSION}-fpm
FROM
yiisoftware/yii2-
php:${PHP_BASE_IMAGE_VERSION}-fpm
# Install system packages for PHP extensions recommended for Yii 2.0 Framework
# Install system packages for PHP extensions recommended for Yii 2.0 Framework
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBIAN_FRONTEND=noninteractive
...
@@ -13,25 +13,7 @@ RUN apt-get update && \
...
@@ -13,25 +13,7 @@ RUN apt-get update && \
apt-key update && \
apt-key update && \
apt-get update && \
apt-get update && \
apt-get -y install \
apt-get -y install \
g++ \
git \
git \
bash-completion \
curl \
imagemagick \
libfreetype6-dev \
libcurl3-dev \
libicu-dev \
libfreetype6-dev \
libjpeg-dev \
libjpeg62-turbo-dev \
libmagickwand-dev \
libpq-dev \
libpng-dev \
libzip-dev \
zlib1g-dev \
default-mysql-client \
openssh-client \
libxml2-dev \
nano \
nano \
npm \
npm \
--no-install-recommends && \
--no-install-recommends && \
...
@@ -39,46 +21,6 @@ RUN apt-get update && \
...
@@ -39,46 +21,6 @@ RUN apt-get update && \
npm -g install npm@latest && \
npm -g install npm@latest && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install PHP extensions required for Yii 2.0 Framework
RUN docker-php-ext-configure gd \
--with-freetype-dir=/usr/include/ \
--with-png-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ && \
docker-php-ext-configure bcmath && \
docker-php-ext-install \
soap \
zip \
curl \
bcmath \
exif \
gd \
iconv \
intl \
mbstring \
opcache \
pdo_mysql \
pdo_pgsql
# Install PECL extensions
# see http://stackoverflow.com/a/8154466/291573) for usage of `printf`
RUN printf "\n" | pecl install \
apcu-5.1.14 \
imagick && \
docker-php-ext-enable \
apcu \
imagick
# Install xdebug
RUN cd /tmp && \
git clone git://github.com/xdebug/xdebug.git && \
cd xdebug && \
git checkout tags/2.8.0 && \
phpize && \
./configure --enable-xdebug && \
make && \
make install && \
rm -rf /tmp/xdebug
# Install less-compiler
# Install less-compiler
RUN npm install -g \
RUN npm install -g \
less \
less \
...
@@ -90,14 +32,6 @@ RUN npm install -g \
...
@@ -90,14 +32,6 @@ RUN npm install -g \
RUN curl -L https://raw.githubusercontent.com/yiisoft/yii2/master/contrib/completion/bash/yii \
RUN curl -L https://raw.githubusercontent.com/yiisoft/yii2/master/contrib/completion/bash/yii \
-o /etc/bash_completion.d/yii
-o /etc/bash_completion.d/yii
ENV PHP_USER_ID=33 \
PHP_ENABLE_XDEBUG=0 \
VERSION_COMPOSER_ASSET_PLUGIN=^1.4.3 \
VERSION_PRESTISSIMO_PLUGIN=^0.3.0 \
PATH=/app:/app/vendor/bin:/root/.composer/vendor/bin:$PATH \
TERM=linux \
COMPOSER_ALLOW_SUPERUSER=1
# Add configuration files
# Add configuration files
COPY image-files/ /
COPY image-files/ /
...
@@ -107,16 +41,6 @@ RUN chmod 700 \
...
@@ -107,16 +41,6 @@ RUN chmod 700 \
/usr/local/bin/docker-run.sh \
/usr/local/bin/docker-run.sh \
/usr/local/bin/composer
/usr/local/bin/composer
# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- \
--filename=composer.phar \
--install-dir=/usr/local/bin && \
composer global require --optimize-autoloader \
"fxp/composer-asset-plugin:${VERSION_COMPOSER_ASSET_PLUGIN}" \
"hirak/prestissimo:${VERSION_PRESTISSIMO_PLUGIN}" && \
composer global dumpautoload --optimize && \
composer clear-cache
WORKDIR /app
WORKDIR /app
# Startup script for FPM
# Startup script for FPM
...
...
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