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
b1e34638
Commit
b1e34638
authored
Feb 09, 2019
by
Lan Phan
Committed by
Shao Yu-Lung (Allen)
Feb 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix php-fpm AMQP build for 5.6, 7.0 and 7.1 (#1965)
parent
913abc54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
Dockerfile
php-fpm/Dockerfile
+20
-3
No files found.
php-fpm/Dockerfile
View file @
b1e34638
...
...
@@ -221,7 +221,16 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
ARG
INSTALL_AMQP=false
RUN if
[
${
INSTALL_AMQP
}
=
true
]
;
then
\
apt-get
install
librabbitmq-dev
-y
&&
\
# download and install manually, to make sure it's compatible with ampq installed by pecl later
# install cmake first
apt-get update && apt-get -y install cmake && \
curl -L -o /tmp/rabbitmq-c.tar.gz https://github.com/alanxz/rabbitmq-c/archive/master.tar.gz && \
mkdir -p rabbitmq-c && \
tar -C rabbitmq-c -zxvf /tmp/rabbitmq-c.tar.gz --strip 1 && \
cd rabbitmq-c/ && \
mkdir _build && cd _build/ && \
cmake .. && \
cmake --build . --target install && \
# Install the amqp extension
pecl install amqp && \
docker-php-ext-enable amqp && \
...
...
@@ -550,7 +559,11 @@ RUN if [ $INSTALL_PHALCON = true ]; then \
ARG
INSTALL_APCU=false
RUN if
[
${
INSTALL_APCU
}
=
true
]
;
then
\
pecl
install
apcu
&&
\
if
[
$(
php
-r
"echo PHP_MAJOR_VERSION;"
)
=
"5"
]
;
then
\
pecl
install
-a
apcu-4.0.11
;
\
else
\
pecl
install
apcu
;
\
fi
&&
\
docker-php-ext-enable apcu
\
;
fi
...
...
@@ -564,7 +577,11 @@ ARG INSTALL_YAML=false
RUN if
[
${
INSTALL_YAML
}
=
true
]
;
then
\
apt-get
install
libyaml-dev
-y
;
\
pecl
install
yaml
;
\
if
[
$(
php
-r
"echo PHP_MAJOR_VERSION;"
)
=
"5"
]
;
then
\
pecl
install
-a
yaml-1.3.2
;
\
else
\
pecl
install
yaml
;
\
fi
&&
\
docker-php-ext-enable yaml
\
;
fi
...
...
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