Comments (5)
意见已采纳
from skyapm-php-sdk.
FROM php:7.2-fpm
MAINTAINER sinbad "sinbad"
ENV REFRESHED_AT 2019-04-21 10:10:10
ENV INSTALL_LIB_DEP="wget zip unzip"
RUN apt-get update
RUN apt-get install -y $INSTALL_LIB_DEP
RUN apt-get install -y -q git rake ruby-ronn zlib1g-dev libcurl4-openssl-dev && apt-get clean
RUN cd /usr/local/bin && curl -sS https://getcomposer.org/installer | php
RUN cd /usr/local/bin && mv composer.phar composer
RUN pecl install grpc
#install protoc
RUN mkdir -p /tmp/protoc &&
curl -L https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip > /tmp/protoc/protoc.zip &&
cd /tmp/protoc &&
unzip protoc.zip &&
cp /tmp/protoc/bin/protoc /usr/local/bin &&
cd /tmp &&
rm -r /tmp/protoc &&
docker-php-ext-enable grpc
RUN set -ex
&& cd /opt
&& wget https://github.com/SkyAPM/SkyAPM-php-sdk/archive/master.zip -O SkyAPM.zip
&& unzip SkyAPM.zip
&& cd SkyAPM-php-sdk-master
&& phpize
&& ./configure
&& make && make install
&& wget https://github.com/SkyAPM/SkyAPM-php-sdk/releases/download/3.1.2/sky_php_agent_linux_x64
&& mv sky_php_agent_linux_x64 report_client
&& chmod +x report_client
&& cp report_client /usr/bin/
RUN apt-get install libssl-dev -y
&& rm -rf /tmp/pear
RUN apt-get update -y &&
apt-get install -y libmcrypt-dev &&
pecl install mcrypt-1.0.1 &&
docker-php-ext-enable mcrypt
RUN set -ex
&& apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
&& docker-php-ext-install -j$(nproc) gd
&& docker-php-ext-install mysqli
&& docker-php-ext-install zip
&& docker-php-ext-install pdo
&& docker-php-ext-install pdo_mysql
&& docker-php-ext-install opcache
RUN apt-get remove -y $INSTALL_LIB_DEP && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install sockets
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
WORKDIR /code
RUN chmod 777 /code
RUN chmod 777 /usr/bin/report_client
RUN usermod -u 1000 www-data
CMD ["php-fpm"]
from skyapm-php-sdk.
建议 建立一个基于 alpine-nginx-php7 的docker image,可以向java 版学习
把镜像FROM 改成这个 alpine-nginx-php7 试下,我用的是php:7.2-fpm
from skyapm-php-sdk.
from skyapm-php-sdk.
三楼 dockerfile 应该是存在问题的
FROM php:7.2-fpm 为zts版本的php-fpm
from skyapm-php-sdk.
Related Issues (20)
- centos安装成功之后前端没有数据展示 HOT 10
- hyperf(swoole) 上报数据异常,报FRAME_SIZE_ERROR HOT 4
- 关于skywalking时间的问题 HOT 5
- receive content is empty HOT 5
- sw extension compile failed at the 200th rust pkg. HOT 2
- sky-php-agent不能注册 HOT 1
- 4.2版本tars框架服务没有数据上报 HOT 9
- skywalking 9.1.0版本前端页面显示数据有延时 HOT 1
- docker部署8.9.1仪表盘显示异常 HOT 1
- 执行 php -v , php -m Segmentation fault (core dumped) HOT 3
- 数据无法上报:sky_core_report_ipc_send err message queue is fulled HOT 18
- skywalking.oap_authentication 支持这个参数吗? HOT 2
- skywakling导致php命令行终止执行 HOT 1
- 引入skywalking后,当访问增加时,进程被杀掉了
- 安装skywalking扩展后,执行php脚本报错
- sky_request_flush message_queue exNo such file or directory
- Error relocating skywalking.so: rc_dtor_func: symbol not found HOT 1
- 5.0.1 不配置 service_instance 不上报数据,配置 service_instance 上报为空
- 数据没有显现
- php skywalking 5.0.1 没有mysql和redis 等链路监控数据 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skyapm-php-sdk.