You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.
I'm trying to generate a docker image to host Circular with limited success. PHP isn't my language of choice, so I'm possibly doing something silly - or it might be because the code depends on the deprecated mongo driver, rather than the new one?
Anyway, this might be helpful to someone - or perhaps someone can help me get this working?
Dockerfile
FROM composer/composer
##### Add mongodb support to PHP
RUN apt-get update
RUN apt-get install libcurl4-openssl-dev pkg-config libssl-dev
RUN pecl install mongodb
RUN cp /usr/local/lib/php/extensions/no-debug-non-zts-20151012/mongodb.so /usr/lib/php5/20131226/
RUN echo 'extension=mongodb.so' > /usr/local/etc/php/conf.d/mongodb.ini
##### Clone Circular repo (inc. submodules)
WORKDIR /app
RUN git clone --recursive https://github.com/julien-c/Circular.git
WORKDIR /app/Circular/api
##### Default Configuration
RUN cp /app/Circular/api/config.php.sample /app/Circular/api/config.php
##### Installation all dependencies
RUN composer install
##### Run the daemon
WORKDIR /app/Circular
RUN Daemon/run.php
I've got two problems when I try to start the daemon with Daemon/run.php:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/mongodb.so' - /usr/lib/php5/20131226/mongodb.so: undefined symbol: __zend_calloc in Unknown on line 0
For a reference point, the hosted version runs under ubuntu 16.04 with PHP 5.6.11-1ubuntu3.4 (cli) and a mongo driver version of 1.6.10 (which I probably installed doing sudo apt-get install php5-mongo)
I'm trying to generate a docker image to host Circular with limited success. PHP isn't my language of choice, so I'm possibly doing something silly - or it might be because the code depends on the deprecated mongo driver, rather than the new one?
Anyway, this might be helpful to someone - or perhaps someone can help me get this working?
Dockerfile
I've got two problems when I try to start the daemon with
Daemon/run.php
:PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/mongodb.so' - /usr/lib/php5/20131226/mongodb.so: undefined symbol: __zend_calloc in Unknown on line 0
PHP Fatal error: require_once(): Failed opening required 'MongoClient.php'
The text was updated successfully, but these errors were encountered: