Jazzylol commented on issue #300:
URL: 
https://github.com/apache/apisix-java-plugin-runner/issues/300#issuecomment-2301725541

   我这几天测下来是可以的,macos本地开发是困难的,但是可以本地remote debug。你这个需要打一个自定义的apisix镜像然后expose 
8000端口,同时你的pod或者cvm或者 container还需要 暴露8000端口,这样你就可以远程debug了...
   
   Dockerfile 
   
   FROM apache/apisix:3.9.0-debian
   USER root
   RUN apt-get update
   RUN apt -y install openjdk-17-jdk
   RUN apt -y install less procps
   RUN echo "alias ll='ls -alF'" >> /etc/bash.bashrc
   
   EXPOSE 5005 --> 我的debug端口
   
   
   我的docker-compose文件
   services:
     apisix:
       image: apache/apisix:self_debug  --> 自己打的debug镜像
       container_name: apisix
       environment:
         - APISIX_DEPLOYMENT_ETCD_HOST=["http://etcd:2379";]
       user: root
       ports:
         - "9080:9080"
         - "9180:9180"
         - "9443:9443"
         - "9443:9443/udp"
         - "9090:9092"
         - "9100:9100"
         - "9091:9091"
         - "9999:9999"
         - "5005:5005"  -->  暴露下debug端口
       volumes:
          - ./config.yaml:/usr/local/apisix/conf/config.yaml
          - ./ext-plugin:/usr/local/apisix/ext-plugin
          - /tmp:/tmp
       networks:
          - all


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to