Merge pull request #2660 from rtrzebinski-usc/add-rdkafka-to-workspace
Add rdkafka to workspace
This commit is contained in:
commit
5465f96267
|
@ -2198,6 +2198,32 @@ YAML PHP extension allows you to easily parse and create YAML structured data. I
|
|||
4 - Re-build the container `docker-compose build php-fpm`<br>
|
||||
|
||||
|
||||
<br>
|
||||
<a name="Install-RDKAFKA-php"></a>
|
||||
## Install RDKAFKA extension in php-fpm
|
||||
|
||||
1 - Open the `.env` file
|
||||
<br>
|
||||
2 - Search for the `PHP_FPM_INSTALL_RDKAFKA` argument under the PHP-FPM container
|
||||
<br>
|
||||
3 - Set it to `true`
|
||||
<br>
|
||||
4 - Re-build the container `docker-compose build php-fpm`<br>
|
||||
|
||||
|
||||
<br>
|
||||
<a name="Install-RDKAFKA-workspace"></a>
|
||||
## Install RDKAFKA extension in workspace
|
||||
|
||||
This is needed for 'composer install' if your dependencies require Kafka.
|
||||
|
||||
1 - Open the `.env` file
|
||||
<br>
|
||||
2 - Search for the `WORKSPACE_INSTALL_RDKAFKA` argument under the WORKSPACE container
|
||||
<br>
|
||||
3 - Set it to `true`
|
||||
<br>
|
||||
4 - Re-build the container `docker-compose build workspace`<br>
|
||||
|
||||
|
||||
<br>
|
||||
|
|
|
@ -132,6 +132,7 @@ services:
|
|||
- INSTALL_FSWATCH=${WORKSPACE_INSTALL_FSWATCH}
|
||||
- INSTALL_AST=${WORKSPACE_INSTALL_AST}
|
||||
- INSTALL_YAML=${WORKSPACE_INSTALL_YAML}
|
||||
- INSTALL_RDKAFKA=${WORKSPACE_INSTALL_RDKAFKA}
|
||||
- INSTALL_MAILPARSE=${WORKSPACE_INSTALL_MAILPARSE}
|
||||
- INSTALL_GIT_PROMPT=${WORKSPACE_INSTALL_GIT_PROMPT}
|
||||
- INSTALL_XMLRPC=${WORKSPACE_INSTALL_XMLRPC}
|
||||
|
|
|
@ -159,6 +159,7 @@ WORKSPACE_INSTALL_SSHPASS=false
|
|||
WORKSPACE_INSTALL_INOTIFY=false
|
||||
WORKSPACE_INSTALL_FSWATCH=false
|
||||
WORKSPACE_INSTALL_YAML=false
|
||||
WORKSPACE_INSTALL_RDKAFKA=false
|
||||
WORKSPACE_INSTALL_MAILPARSE=false
|
||||
WORKSPACE_INSTALL_XMLRPC=false
|
||||
WORKSPACE_PUID=1000
|
||||
|
|
|
@ -1277,6 +1277,20 @@ RUN if [ ${INSTALL_YAML} = true ]; then \
|
|||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/yaml.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/35-yaml.ini \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
# RDKAFKA:
|
||||
###########################################################################
|
||||
|
||||
ARG INSTALL_RDKAFKA=false
|
||||
|
||||
RUN if [ ${INSTALL_RDKAFKA} = true ]; then \
|
||||
apt-get install -y librdkafka-dev && \
|
||||
pecl install rdkafka && \
|
||||
echo "extension=rdkafka.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/rdkafka.ini && \
|
||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/rdkafka.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-rdkafka.ini \
|
||||
&& php -m | grep -q 'rdkafka' \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
# FFMpeg:
|
||||
###########################################################################
|
||||
|
|
Loading…
Reference in New Issue