未验证 提交 e3c94845 编写于 作者: 何延龙 提交者: GitHub

Merge pull request #200 from SkyAPM/develop

Add Dockerfile
FROM php:7.4-fpm
ARG SKYWALKING=3.2.7
RUN set -ex \
&& apt-get update && apt-get install -y curl libcurl4-openssl-dev golang git \
&& mkdir -p /tmp/skywalking && cd /tmp/skywalking \
&& curl -L -o skywalking.tar.gz https://github.com/SkyAPM/SkyAPM-php-sdk/archive/${SKYWALKING}.tar.gz \
&& tar zxvf skywalking.tar.gz && cd SkyAPM-php-sdk-${SKYWALKING} \
&& phpize && ./configure && make && make install \
&& cp php.ini /usr/local/etc/php/conf.d/ext-skywalking.ini \
&& ./build-sky-php-agent.sh \
&& cp sky-php-agent-* /usr/local/bin/
\ No newline at end of file
...@@ -217,7 +217,7 @@ func (t *Agent) doRegister(r *register) { ...@@ -217,7 +217,7 @@ func (t *Agent) doRegister(r *register) {
for _, ip := range ip4s() { for _, ip := range ip4s() {
properties = append(properties, &common.KeyStringValuePair{ properties = append(properties, &common.KeyStringValuePair{
Key: "ipV4s", Key: "ipv4s",
Value: ip, Value: ip,
}) })
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
[skywalking] [skywalking]
extension=skywalking.so
skywalking.app_code = hello_skywalking skywalking.app_code = hello_skywalking
skywalking.enable = 0 skywalking.enable = 1
skywalking.version = 6 skywalking.version = 6
skywalking.sock_path = /var/run/sky-agent.sock \ No newline at end of file
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册