yaakua opened a new issue, #257:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/257

   ### Issue description
   <img width="2243" alt="image" 
src="https://github.com/apache/apisix-java-plugin-runner/assets/1543846/f243ab98-729b-41e2-9dc1-69527c0be09d";>
   
   
   
   ### Environment
   use docker-compose start apisix\etcd\dashboard
   I have build a base docker image from apache/apisix:latest ,the Dockefile is:
   
   docker image tag is 192.168.0.118:5001/yaakua/apisix-jdk11:latest
   ``` Dockerfile
   FROM apache/apisix:latest
   
   ADD openjdk-11.0.2_linux-x64_bin.tar.gz /usr/local/java
   
   ENV JAVA_HOME /usr/local/java/jdk-11.0.2
   ENV JRE_HOME $JAVA_HOME/jre
   ENV CLASSPATH 
$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib:$CLASS_PATH
   
   ENV PATH $JAVA_HOME/bin:$PATH
   
   ```
   
   then build a runtime docker image ,the Dockerfile is:
   
   docker image tag is ccr.ccs.tencentyun.com/mychatdata/gateway:latest
   ``` Dockerfile
   FROM 192.168.0.118:5001/yaakua/apisix-jdk11
   LABEL authors="yangkui"
   #
   #RUN apt-get update && apt-get install -y openjdk-11-jdk
   
   COPY target/mychatdata-gateway-0.0.1-SNAPSHOT.jar 
/app/apisix/mychatdata-gateway-0.0.1-SNAPSHOT.jar
   ```
   
   
   the docker-compose.yaml is:
   ``` yaml
   
   
   version: "3"
   
   services:
     dashboard:
       image: "apache/apisix-dashboard:latest"
       restart: always
       volumes:
         - ./dashboard-conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml:ro
       depends_on:
         - etcd
       ports:
         - "9100:9100/tcp"
       networks:
         - apisix
   
     etcd:
       image: bitnami/etcd:3.4.9
       user: root
       restart: always
       volumes:
         - ./etcd_data:/etcd_data
       environment:
         ETCD_DATA_DIR: /etcd_data
         ETCD_ENABLE_V2: "true"
         ALLOW_NONE_AUTHENTICATION: "yes"
         ETCD_ADVERTISE_CLIENT_URLS: "http://etcd:2379";
         ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379";
       ports:
         - "2379:2379/tcp"
       networks:
         - apisix
     apisix:
       #image: "apache/apisix:latest"
       image: "ccr.ccs.tencentyun.com/mychatdata/gateway:latest"
       restart: always
       volumes:
         - ./apisix-conf.yaml:/usr/local/apisix/conf/config.yaml:ro
       depends_on:
         - etcd
       ports:
         - "9180:9180/tcp"
         - "9080:9080/tcp"
         - "9092:9091/tcp"
         - "9443:9443/tcp"
         - "9090:9090/tcp"
       networks:
         - apisix
   
   networks:
     apisix:
       driver: bridge
   ```
   
   
   apisix-config.yaml
   <img width="1622" alt="image" 
src="https://github.com/apache/apisix-java-plugin-runner/assets/1543846/43bfa93c-6113-4e0f-b765-aef6aadc82c7";>
   
   
   * your apisix-java-plugin-runner version
   


-- 
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