Skip to content

Commit 7d2711c

Browse files
committed
fix xhprof, crop php configs
1 parent 8d1aabc commit 7d2711c

File tree

7 files changed

+92
-4184
lines changed

7 files changed

+92
-4184
lines changed

build/php/Dockerfile

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ RUN apt-get install -y php-pear php7.1-common php7.1-cli php7.1-dev php7.1-mbstr
2525
zlib1g-dev libicu-dev libpq-dev libxml2-dev libmagickwand-dev graphviz
2626

2727
RUN pecl channel-update pecl.php.net && pecl install redis apcu imagick mongodb
28-
# && echo "extension=mongodb.so" >> /usr/local/etc/php/conf.d/mongodb.ini
2928

3029
# XHProf
31-
#RUN mkdir /tmp/xhprof && mkdir -p /var/www && cd /var/www && git clone https://github.com/longxinH/xhprof \
32-
# && cd xhprof/extension && phpize && ./configure && make && make install
30+
RUN mkdir /tmp/xhprof && mkdir -p /var/www && cd /var/www && git clone https://github.com/longxinH/xhprof \
31+
&& cd xhprof/extension && phpize && ./configure && make && make install
3332

3433
# Nginx && Supervisor
3534
RUN apt-get -y install nginx supervisor
@@ -42,14 +41,6 @@ RUN mkdir -p /var/run/php
4241
# composer
4342
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
4443

45-
# phpunit
46-
RUN wget https://phar.phpunit.de/phpunit.phar \
47-
&& chmod +x phpunit.phar && mv phpunit.phar /usr/local/bin/phpunit
48-
49-
# codeception
50-
RUN curl -LsS http://codeception.com/codecept.phar -o /usr/local/bin/codecept \
51-
&& chmod +x /usr/local/bin/codecept
52-
5344
# Clean all
5445
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
5546

config/php/cli.ini

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
; General settings
2+
3+
date.timezone = UTC
4+
5+
memory_limit = 768M
6+
7+
; Error reporting
8+
9+
display_errors = On
10+
display_startup_errors = On
11+
error_reporting = E_ALL
12+
13+
[xhprof]
14+
extension = xhprof.so
15+
xhprof.output_dir = /tmp
16+
17+
[mongo]
18+
extension=mongodb.so

0 commit comments

Comments
 (0)