Skip to content

Commit

Permalink
update last version
Browse files Browse the repository at this point in the history
  • Loading branch information
coachmaxz committed Dec 26, 2017
1 parent 08e2c58 commit 8e734db
Show file tree
Hide file tree
Showing 11 changed files with 76 additions and 8 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM php:7.1.11-fpm
LABEL Eakkabin Jaikeawma <eakkabin@drivesoft.co.th>
FROM php:7.2.0-fpm
LABEL Eakkabin Jaikeawma <eakkabin@codestep.io>

RUN apt-get update && apt-get install -y curl git --no-install-recommends \
&& docker-php-ext-install -j$(nproc) iconv mysqli pdo pdo_mysql mbstring \
Expand All @@ -8,11 +8,10 @@ RUN apt-get update && apt-get install -y curl git --no-install-recommends \

COPY ./php7-ini/20-phalcon.ini /usr/local/etc/php/conf.d/20-phalcon.ini
COPY ./php7-ini/20-mongodb.ini /usr/local/etc/php/conf.d/20-mongodb.ini
COPY ./php7-ext/phalcon-v3.2.1.so /usr/local/lib/php/extensions/no-debug-non-zts-20160303/phalcon-v3.2.1.so
COPY ./php7-ext/mongodb-v1.2.9.so /usr/local/lib/php/extensions/no-debug-non-zts-20160303/mongodb-v1.2.9.so
COPY ./php7-ext/phalcon-v3.3.0.so /usr/local/lib/php/extensions/no-debug-non-zts-20170718/phalcon-v3.3.0.so
COPY ./php7-ext/mongodb-v1.3.4.so /usr/local/lib/php/extensions/no-debug-non-zts-20170718/mongodb-v1.3.4.so

WORKDIR /usr/share/nginx/html

EXPOSE 9000

CMD ["php-fpm"]
CMD ["php-fpm"]
15 changes: 15 additions & 0 deletions build/mongodb/Dockerfile
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"]
18 changes: 18 additions & 0 deletions build/mongodb/README.md
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
```
18 changes: 18 additions & 0 deletions build/phalcon3/Dockerfile
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"]
18 changes: 18 additions & 0 deletions build/phalcon3/README.md
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 removed php7-ext/mongodb-v1.2.9.so
Binary file not shown.
Binary file added php7-ext/mongodb-v1.3.4.so
Binary file not shown.
Binary file removed php7-ext/phalcon-v3.2.1.so
Binary file not shown.
Binary file added php7-ext/phalcon-v3.3.0.so
Binary file not shown.
2 changes: 1 addition & 1 deletion php7-ini/20-mongodb.ini
Original file line number Diff line number Diff line change
@@ -1 +1 @@
extension=mongodb-v1.2.9.so
extension=mongodb-v1.3.4.so
2 changes: 1 addition & 1 deletion php7-ini/20-phalcon.ini
Original file line number Diff line number Diff line change
@@ -1 +1 @@
extension=phalcon-v3.2.1.so
extension=phalcon.so

0 comments on commit 8e734db

Please sign in to comment.