sashokbg commented on issue #403:
URL: https://github.com/apache/apisix-docker/issues/403#issuecomment-1375480036

   I managed to run the plugin in "prod" mode but with lots of quirks. Here is 
what to do:
   
   1. The following config goes into *config.yaml* and not in *apisix.yaml*. 
Probably I missed a bit of documentation or it was not very clear which file 
does what.
   ```
   deployment:
     role: data_plane
     role_data_plane:
       config_provider: yaml
   
   ext-plugin:
     cmd: ["java", "-jar", "/plugins/plugin.jar"]
     #path_for_test: "/usr/local/apisix/conf/plugin.sock"
   ```
   2. Put your routes / upstream config as well as plugins config in 
*apisix.yaml*
   2. Start the docker compose (your files will be overwritten due to a bug so 
you need to go put your config in them again)
   3. Reload the config
   `docker exec -it apache-apisix apisix reload`
   4. Test with curl
   
   For "debug" mode.
   
   1. Start your plugin locally with socket path configured
   2. Mount the socket file using a docker compose volume
   3. Put the below config in *config.yaml* 
   ```
   ext-plugin:
     path_for_test: "/usr/local/apisix/conf/plugin.sock"
   ```
   4. Reload config
   5. Test with curl


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