Skip to content

Commit bbcdfff

Browse files
author
sioomy
committed
docker
1 parent 8c9694c commit bbcdfff

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

‎tutorial/Dockerfile

+33-1
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,42 @@ RUN yum -y install python-devel
1212
RUN yum -y install openssl
1313
RUN yum -y install openssl-devel
1414
RUN yum -y install wget
15+
RUN yum -y install freetype-devel
16+
RUN yum -y install libjpeg-devel
17+
RUN yum -y install freetds-devel
18+
RUN yum -y install unixODBC-devel
19+
RUN yum -y install libpng-devel
20+
RUN yum -y install aspell-devel
21+
RUN yum -y install libwebp-devel
22+
RUN yum -y install systemtap-sdt-devel
23+
RUN yum -y install bzip2 bzip2-devel
24+
RUN yum -y install curl-devel
25+
RUN yum -y install gdbm-devel
26+
RUN yum -y install libicu-devel
27+
RUN yum -y install openldap-devel
28+
RUN yum -y install libmcrypt-devel
29+
RUN yum -y install libxslt-devel
30+
RUN yum -y install libzip-devel
31+
RUN yum -y install libedit-devel
32+
RUN yum -y install postgresql-devel
33+
RUN yum -y install gcc-c++
34+
35+
36+
1537
RUN cd /data/soft/ && wget http://mirrors.tuna.tsinghua.edu.cn/epel/epel-release-latest-7.noarch.rpm
1638
RUN cd /data/soft/ && rpm -ivh epel-release-latest-7.noarch.rpm
1739
RUN yum -y install supervisor
1840

41+
RUN cd /data/soft/ && wget http://nih.at/libzip/libzip-1.2.0.tar.gz
42+
RUN cd /data/soft/ && tar zxvf libzip-1.2.0.tar.gz && cd libzip-1.2.0 && ./configure && make && make install
43+
RUN cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h
44+
45+
RUN ln -s /usr/lib64/libsybdb.so /usr/lib/lib/libsybdb.so
46+
#RUN ln -s /usr/lib64/libgdbm.so /usr/lib/libgdbm.so
47+
RUN ln -s /usr/lib64/libldap.so /usr/lib/libldap.so
48+
RUN ln -s /usr/lib64/liblber* /usr/lib/
49+
50+
1951
RUN cd /data/soft/ && git clone http://.com/phpcoro/php-fpm-coro.git
2052
RUN cd /data/soft/ && git clone http://.com/libevent/libevent.git
2153
RUN cd /data/soft/ && git clone http://.com/GNOME/libxml2.git
@@ -24,7 +56,7 @@ RUN cd /data/soft/ && tar zxf nginx-1.14.0.tar.gz
2456

2557
RUN cd /data/soft/libevent && sh autogen.sh && ./configure && make && make install
2658
RUN cd /data/soft/libxml2 && sh autogen.sh && ./configure && make && make install
27-
RUN cd /data/soft/php-fpm-coroutine && sh buildconf --force && ./configure --prefix=/usr/local/php7 --enable-fpm --enable-coro_http --with-openssl --enable-maintainer-zts && make && make install
59+
RUN cd /data/soft/php-fpm-coro && sh buildconf --force && ./configure --prefix=/usr/local/php7 --enable-fpm --enable-coro_http --enable-mysqlnd --enable-zip --with-pdo-mysql --with-openssl --enable-maintainer-zts --enable-opcache-file --with-curl --enable-bcmath --enable-calendar --enable-dtrace --enable-exif --enable-ftp --enable-mbregex --enable-mbstring --enable-pcntl --enable-phpdbg --enable-phpdbg-webhelper --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-bz2 --with-iconv --with-pic --with-xmlrpc --with-mhash --with-mysql-sockunixunix=/tmp/mysql.sock --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-kerberos --with-layout=GNU --with-mcrypt=/usr/include --with-gd --with-jpeg-dir=/usr/include --with-png-dir=/usr/include --with-webp-dir=/usr/include --with-freetype-dir=/usr/include --with-icu-dir=/usr --with-pspell --with-xsl --with-libzip --enable-zip --with-zlib --with-pdo-dblib --with-pdo-odbc=unixODBC,/usr --with-unixODBC=/usr --with-libedit --enable-dba --with-ldap --with-ldap-sasl --with-pdo-pgsql --with-pgsql --with-gdbm --enable-intl && make && make install
2860
RUN cd /data/soft/nginx-1.14.0 && ./configure && make && make install
2961

3062
ADD ./conf/nginx.conf /usr/local/nginx/conf/

‎tutorial/maketest.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
#########################################################################
77
#!/bin/bash
88
#./configure --enable-debug --prefix=/usr/local/php7 --enable-fpm && make && make install && sudo killall php-fpm&& sudo /usr/local/php7/sbin/php-fpm
9-
./configure --prefix=/usr/local/php7 --enable-fpm --enable-coro_http --enable-mysqlnd --enable-zip --with-pdo-mysql --with-openssl=/usr/local/Cellar/openssl/1.0.2o_2/ --enable-maintainer-zts --enable-opcache-file && make && make install && sudo /usr/local/php7/sbin/php-fpm
9+
#./configure --prefix=/usr/local/php7 --enable-fpm --enable-coro_http --enable-mysqlnd --enable-zip --with-pdo-mysql --with-openssl=/usr/local/Cellar/openssl/1.0.2o_2/ --enable-maintainer-zts --enable-opcache-file --with-curl && make && make install && sudo /usr/local/php7/sbin/php-fpm
10+
#完整版mac
11+
./configure --prefix=/usr/local/php7 --with-iconv=/usr/local/ --enable-fpm --enable-coro_http --enable-mysqlnd --enable-zip --with-pdo-mysql --with-openssl=/usr/local/Cellar/openssl/1.0.2o_2/ --enable-maintainer-zts --enable-opcache-file --with-curl --enable-bcmath --enable-calendar --enable-dba --enable-dtrace --enable-exif --enable-ftp --enable-intl --enable-mbregex --enable-mbstring --enable-pcntl --enable-phpdbg --enable-phpdbg-webhelper --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-zip --with-bz2 --with-freetype-dir=/usr/local/Cellar/freetype/2.9.1/ --with-gd --with-icu-dir=/usr/local/Cellar/icu4c/62.1/ --with-jpeg-dir=/usr/local/Cellar/jpeg/9c/ --with-kerberos --with-layout=GNU --with-ldap --with-ldap-sasl --with-libedit --with-libzip --with-mcrypt=/usr/local/Cellar/mcrypt/2.6.8/ --with-mhash --with-mysql-sockunixunix=/tmp/mysql.sock --with-mysqli=mysqlnd --with-ndbm --with-pdo-dblib=/usr/local/Cellar/freetds/1.00.92/ --with-pdo-mysql=mysqlnd --with-pdo-odbc=unixODBC,/usr/local/Cellar/unixodbc/2.3.6/ --with-pdo-pgsql=/usr/local/Cellar/libpq/10.4/ --with-pgsql=/usr/local/Cellar/libpq/10.4/ --with-pic --with-png-dir=/usr/local/Cellar/libpng/1.6.34/ --with-pspell=/usr/local/Cellar/aspell/0.60.6.1_1/ --with-unixODBC=/usr/local/Cellar/unixodbc/2.3.6/ --with-webp-dir=/usr/local/Cellar/webp/1.0.0/ --with-xmlrpc --with-xsl --with-zlib && make && make install && sudo /usr/local/php7/sbin/php-fpm
12+
#完整版docker
13+
14+
./configure --prefix=/usr/local/php7 --enable-fpm --enable-coro_http --enable-mysqlnd --enable-zip --with-pdo-mysql --with-openssl --enable-maintainer-zts --enable-opcache-file --with-curl --enable-bcmath --enable-calendar --enable-dtrace --enable-exif --enable-ftp --enable-mbregex --enable-mbstring --enable-pcntl --enable-phpdbg --enable-phpdbg-webhelper --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-bz2 --with-iconv --with-pic --with-xmlrpc --with-mhash --with-mysql-sockunixunix=/tmp/mysql.sock --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-kerberos --with-layout=GNU --with-mcrypt=/usr/include --with-gd --with-jpeg-dir=/usr/include --with-png-dir=/usr/include --with-webp-dir=/usr/include --with-freetype-dir=/usr/include --with-icu-dir=/usr --with-pspell --with-xsl --with-libzip --enable-zip --with-zlib --with-pdo-dblib --with-pdo-odbc=unixODBC,/usr --with-unixODBC=/usr --with-libedit --enable-dba --with-ldap=shared --with-ldap-sasl --with-pdo-pgsql --with-pgsql --with-gdbm --enable-intl && make && make install && sudo /usr/local/php7/sbin/php-fpm
1015
#./configure --enable-debug --prefix=/usr/local/php7 --enable-fpm && make && make install && sudo gdb /usr/local/php7/sbin/php-fpm
1116
#./configure CFLAGS="-ggdb3" CXXFLAGS="-ggdb3" --prefix=/usr/local/php7 --enable-fpm --enable-coro_http --with-openssl --enable-maintainer-zts && make && make install && sudo gdb /usr/local/php7/sbin/php-fpm

‎tutorial/test2.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
echo "libevent 终于OK了,,ssss";
33
$a = 1;
4-
//phpinfo();
4+
phpinfo();
55

66
$b = array("1","2");
77
var_dump($b);

0 commit comments

Comments
 (0)