-
-
Save wapcrazut/b657b0607bf514fd2e0375b7e2477be0 to your computer and use it in GitHub Desktop.
Laradock Worskpace and PHP-FPM file parts for adding ZMQ (ONLY FOR PHP 7.2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### WORKSPACE ############################################# | |
WORKSPACE_INSTALL_ZMQ=true | |
### PHP_FPM ############################################### | |
PHP_FPM_INSTALL_ZMQ=true | |
### APACHE ################################################ | |
APACHE_HOST_ZMQ_PORT=5555 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################################################### | |
# ZMQ | |
########################################################################### | |
ARG INSTALL_ZMQ=false | |
RUN if [ ${INSTALL_ZMQ} = true ]; then \ | |
apt-get update -yqq && \ | |
apt-get install -y build-essential libtool autoconf pkg-config libsodium-dev libzmq3-dev && \ | |
echo '' | pecl install -o -f zmq-beta && rm -rf /tmp/pear && \ | |
docker-php-ext-enable zmq \ | |
;fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################################################### | |
# ZMQ | |
########################################################################### | |
ARG INSTALL_ZMQ=false | |
RUN if [ ${INSTALL_ZMQ} = true ]; then \ | |
apt-get update -yqq && \ | |
apt-get install -y build-essential libtool autoconf pkg-config libsodium-dev libzmq3-dev && \ | |
echo '' | pecl install -o -f zmq-beta && rm -rf /tmp/pear && \ | |
echo "extension=zmq.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/zmq.ini && \ | |
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/zmq.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/70-zmq.ini \ | |
;fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment