Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
53b3ad0f
Commit
53b3ad0f
authored
Aug 31, 2017
by
Eugene Kirdzei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Php Redis extension installation
parent
fdcf9117
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
2 deletions
+17
-2
docker-compose.yml
docker-compose.yml
+1
-0
env-example
env-example
+1
-0
Dockerfile-71
php-fpm/Dockerfile-71
+1
-1
Dockerfile-71
workspace/Dockerfile-71
+14
-1
No files found.
docker-compose.yml
View file @
53b3ad0f
...
...
@@ -19,6 +19,7 @@ services:
-
INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
-
INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP}
-
INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO}
-
INSTALL_PHPREDIS=${WORKSPACE_INSTALL_PHPREDIS}
-
INSTALL_MSSQL=${WORKSPACE_INSTALL_MSSQL}
-
INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
-
INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
...
...
env-example
View file @
53b3ad0f
...
...
@@ -32,6 +32,7 @@ PHP_INTERPRETER=php-fpm
WORKSPACE_INSTALL_XDEBUG=false
WORKSPACE_INSTALL_SOAP=false
WORKSPACE_INSTALL_MONGO=false
WORKSPACE_INSTALL_PHPREDIS=false
WORKSPACE_INSTALL_MSSQL=false
WORKSPACE_INSTALL_NODE=false
WORKSPACE_INSTALL_YARN=false
...
...
php-fpm/Dockerfile-71
View file @
53b3ad0f
...
...
@@ -84,7 +84,7 @@ RUN if [ ${INSTALL_XDEBUG} = false -a ${INSTALL_BLACKFIRE} = true ]; then \
ARG INSTALL_PHPREDIS=false
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
# Install Php Redis Extension
pecl install -o -f redis \
p
rintf "\n" | p
ecl install -o -f redis \
&& rm -rf /tmp/pear \
&& docker-php-ext-enable redis \
;fi
...
...
workspace/Dockerfile-71
View file @
53b3ad0f
...
...
@@ -186,11 +186,24 @@ ARG INSTALL_MONGO=false
ENV INSTALL_MONGO ${INSTALL_MONGO}
RUN if [ ${INSTALL_MONGO} = true ]; then \
# Install the mongodb extension
pecl install mongodb && \
pecl
-q
install mongodb && \
echo "extension=mongodb.so" >> /etc/php/7.1/mods-available/mongodb.ini && \
ln -s /etc/php/7.1/mods-available/mongodb.ini /etc/php/7.1/cli/conf.d/30-mongodb.ini \
;fi
#####################################
# PHP REDIS EXTENSION FOR PHP 7
#####################################
ARG INSTALL_PHPREDIS=false
ENV INSTALL_PHPREDIS ${INSTALL_PHPREDIS}
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
# Install Php Redis extension
printf "\n" | pecl -q install -o -f redis && \
echo "extension=redis.so" >> /etc/php/7.1/mods-available/redis.ini && \
phpenmod redis \
;fi
#####################################
# Drush:
#####################################
...
...
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