-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
76 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM php:7.2.0-fpm | ||
LABEL Eakkabin Jaikeawma <eakkabin@codestep.io> | ||
|
||
RUN buildDeps='autoconf g++ gcc curl ca-certificates libc6-dev libpcre3-dev libssl-dev libcurl4-openssl-dev pkg-config make git' \ | ||
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \ | ||
&& docker-php-ext-install -j$(nproc) iconv mbstring \ | ||
&& mkdir -p /build && pecl install mongodb \ | ||
&& echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/20-mongodb.ini \ | ||
&& rm -rf /build && apt-get clean && apt-get autoremove -y \ | ||
&& rm -r /var/lib/apt/lists/* && rm -rf /tmp/* /var/tmp/* \ | ||
&& apt-get purge -y --auto-remove $buildDeps | ||
|
||
EXPOSE 9000 | ||
|
||
CMD ["php-fpm"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Build MongoDB PHP Mobule. | ||
--------------------------------------------------- | ||
|
||
``` | ||
docker build -t build/php7mongo:7.2.0 . | ||
``` | ||
|
||
|
||
``` | ||
docker run -it --name docker-php7mongo -d build/php7mongo:7.2.0 | ||
docker cp docker-php7mongo:/usr/local/etc/php/conf.d/20-mongodb.ini ./../../php7-ini/20-mongodb.ini | ||
docker cp docker-php7mongo:/usr/local/lib/php/extensions/no-debug-non-zts-20170718/mongodb.so ./../../php7-ext/mongodb.so | ||
``` | ||
|
||
|
||
``` | ||
docker stop docker-php7mongo && docker rm docker-php7mongo | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM php:7.2.0-fpm | ||
LABEL Eakkabin Jaikeawma <eakkabin@codestep.io> | ||
|
||
RUN buildDeps='autoconf g++ gcc ca-certificates libc6-dev libpcre3-dev libssl-dev libcurl4-openssl-dev pkg-config make re2c curl git' \ | ||
&& apt-get update && apt-get install -y --no-install-recommends \ | ||
&& apt-get install -y $buildDeps --no-install-recommends \ | ||
&& docker-php-ext-install -j$(nproc) iconv mbstring \ | ||
&& mkdir -p /build && cd /build \ | ||
&& git clone --depth=1 git://github.com/phalcon/cphalcon.git \ | ||
&& cd /build/cphalcon/build && ./install && echo "extension=phalcon.so" > /usr/local/etc/php/conf.d/20-phalcon.ini \ | ||
&& rm -rf /build \ | ||
&& apt-get clean && apt-get autoremove -y \ | ||
&& rm -r /var/lib/apt/lists/* && rm -rf /tmp/* /var/tmp/* \ | ||
&& apt-get purge -y --auto-remove $buildDeps | ||
|
||
EXPOSE 9000 | ||
|
||
CMD ["php-fpm"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Build PHP Mobule with Phalcon Framework v3.3.x | ||
--------------------------------------------------- | ||
|
||
``` | ||
docker build -t build/php7phalcon:7.2.0 . | ||
``` | ||
|
||
|
||
``` | ||
docker run -it --name docker-php7phalcon -d build/php7phalcon:7.2.0 | ||
docker cp docker-php7phalcon:/usr/local/etc/php/conf.d/20-phalcon.ini ./../../php7-ini/20-phalcon.ini | ||
docker cp docker-php7phalcon:/usr/local/lib/php/extensions/no-debug-non-zts-20170718/phalcon.so ./../../php7-ext/phalcon.so | ||
``` | ||
|
||
|
||
``` | ||
docker stop docker-php7phalcon && docker rm docker-php7phalcon | ||
``` |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
extension=mongodb-v1.2.9.so | ||
extension=mongodb-v1.3.4.so |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
extension=phalcon-v3.2.1.so | ||
extension=phalcon.so |