zlhgo commented on issue #6184:
URL: https://github.com/apache/apisix/issues/6184#issuecomment-1023019300


   @spacewander @starsz @tzssangglass @leslie-tsang 各位大佬好。
   我已经基于 apache/apisix:2.12.0-centos 重新打包了。并只保留了上面的 `ky-ngx-vars` 
插件。以下是我打包运行相关代码。
   
   Dockerfile
   ```dockerfile
   FROM apache/apisix:2.12.0-centos
   
   # COPY conf/opentracing.json.tpl /usr/local/apisix/conf/opentracing.json
   COPY plugins/ky-ngx-vars.lua 
/usr/local/apisix/extra/apisix/plugins/ky-ngx-vars.lua
   COPY run.sh /usr/local/apisix/run.sh
   
   ENTRYPOINT ["sh", "/usr/local/apisix/run.sh"]
   ```
   
   run.sh
   ```bash
   #!/bin/bash
   
   mkdir -p /home/logs/applog/
   mkdir -p /home/logs/projectLog/
   mkdir -p /usr/local/apisix/logs
   
   cd /usr/local/apisix/
   
   # JAEGER_SAMPLER_PARAM=${JAEGER_SAMPLER_PARAM:-0.1}
   # sed -i -e "s/#JAEGER_SAMPLER_PARAM/$JAEGER_SAMPLER_PARAM/g" 
/usr/local/apisix/conf/opentracing.json
   # sed -i -e "s/#JAEGER_HOST/$JAEGER_HOST/g" 
/usr/local/apisix/conf/opentracing.json
   
   # /usr/bin/apisix init
   /usr/bin/apisix init_etcd
   
   exec /usr/local/openresty/bin/openresty -p /usr/local/apisix -g 'daemon off;'
   ```
   
   我先观察几天看看。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to