ProgrammingLogs

docker로 Webgrind 서버 띄우기

밥먹고해요 2020. 2. 28. 14:36
$ docker run -p8124:80 -v /c:/Work/profile/:/home/profile -u root -it centos/php-73-centos7:7.3 bash
bash-4.2# yum install -y https://centos7.iuscommunity.org/ius-release.rpm
bash-4.2# yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
bash-4.2# yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
bash-4.2# yum install -y yum-utils
bash-4.2# yum install -y python36u python36u-libs python36u-devel python36u-pip graphviz
bash-4.2# pip3 install gprof2dot
bash-4.2# cd /home/
bash-4.2# git clone https://github.com/jokkedk/webgrind.git
bash-4.2# cd webgrind/
bash-4.2# make
bash-4.2# php -S 0.0.0.0:80

 

http://localhost:8124

 

※ /home/webgrind/config.php 에서 아래의 경로 부분을 원하는 경로로 변경 가능

class Webgrind_Config extends Webgrind_MasterConfig {
    ... (중략)...
    static $profilerDir = '/tmp';