You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "amyrprv (via GitHub)" <gi...@apache.org> on 2025/02/03 12:20:00 UTC

[I] help request: How to Add New Luarocks Dependencies in APISIX Docker Environment? [apisix]

amyrprv opened a new issue, #11945:
URL: https://github.com/apache/apisix/issues/11945

   ### Description
   
   I want to use additional dependencies from Luarocks while running APISIX in a Docker environment using the official images. What is the best way to install and include these dependencies?
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.9.1 debian docker
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --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: notifications-unsubscribe@apisix.apache.org.apache.org

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


Re: [I] help request: How to Add New Luarocks Dependencies in APISIX Docker Environment? [apisix]

Posted by "amyrprv (via GitHub)" <gi...@apache.org>.
amyrprv commented on issue #11945:
URL: https://github.com/apache/apisix/issues/11945#issuecomment-2636074102

   @Revolyssup I'm creating a custom plugin to transform SOAP upstream into JSON. I'm currently using the body-transformer plugin, but I've encountered issues in production: the upstream response isn't converted to JSON, and the template-based approach isn't very convenient. I’m looking for a more reliable solution to handle the SOAP-to-JSON transformation.


-- 
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-unsubscribe@apisix.apache.org

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


Re: [I] help request: How to Add New Luarocks Dependencies in APISIX Docker Environment? [apisix]

Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #11945:
URL: https://github.com/apache/apisix/issues/11945#issuecomment-2635993017

   @amyrprv Try installing `libexpat1-dev` or `expat` with the package manager. The C library is missing. Btw what is your exact use case? Why do you want to install this library ?


-- 
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-unsubscribe@apisix.apache.org

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


Re: [I] help request: How to Add New Luarocks Dependencies in APISIX Docker Environment? [apisix]

Posted by "bzp2010 (via GitHub)" <gi...@apache.org>.
bzp2010 commented on issue #11945:
URL: https://github.com/apache/apisix/issues/11945#issuecomment-2676368140

   @amyrprv 
   
   The debian package repository contains dependencies that are not always up-to-date (for some libraries, the version may be locked), so you must download the source package and compile it in-place.
   
   You can prevent the APISIX image from getting too big by installing the toolchain with the help of a multi-stage Dockerfile.
   
   


-- 
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-unsubscribe@apisix.apache.org

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


Re: [I] help request: How to Add New Luarocks Dependencies in APISIX Docker Environment? [apisix]

Posted by "amyrprv (via GitHub)" <gi...@apache.org>.
amyrprv closed issue #11945: help request: How to Add New Luarocks Dependencies in APISIX Docker Environment?
URL: https://github.com/apache/apisix/issues/11945


-- 
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-unsubscribe@apisix.apache.org

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


Re: [I] help request: How to Add New Luarocks Dependencies in APISIX Docker Environment? [apisix]

Posted by "mikyll (via GitHub)" <gi...@apache.org>.
mikyll commented on issue #11945:
URL: https://github.com/apache/apisix/issues/11945#issuecomment-2631176828

   One way to do so is to write a **custom Docker image** which inherits from an official image, and then run `luarocks install <rock_name>`.
   
   Example (based on [apache/apisix:3.11.0-debian](https://hub.docker.com/layers/apache/apisix/3.11.0-debian/images/sha256-6607b87587f7714c38a23159962d30baebb01f2f46f115c42740ffb7c0e6722a)):
   
   ```docker
   FROM apache/apisix:3.11.0-debian
   
   USER root
   
   # Install luarocks (and/or whatever additional tool you need)
   RUN apt-get update && apt-get install -y luarocks
   
   RUN luarocks install <rock_name>
   
   EXPOSE 9080 9443
   
   ENTRYPOINT ["/docker-entrypoint.sh"]
   
   CMD ["docker-start"]
   
   STOPSIGNAL SIGQUIT
   ```


-- 
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-unsubscribe@apisix.apache.org

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


Re: [I] help request: How to Add New Luarocks Dependencies in APISIX Docker Environment? [apisix]

Posted by "amyrprv (via GitHub)" <gi...@apache.org>.
amyrprv commented on issue #11945:
URL: https://github.com/apache/apisix/issues/11945#issuecomment-2633656826

   I am trying to install [LuaSOAP](https://tomasguisasola.github.io/luasoap/manual.html#installation) I get the below error, It seems the library is dependent on luaexpat, and installing luaexpat will fail.
   
   ```
   root@98955587e0ca:/usr/local/apisix# luarocks install luasoap
   Installing https://luarocks.org/luasoap-4.0.2-1.rockspec
   Missing dependencies for luasoap 4.0.2-1:
      luaexpat >= 1.1.0-3 (not installed)
      luasocket >= 2.0.2-1 (not installed)
      http-digest >= 1.2.2-1 (not installed)
   
   luasoap 4.0.2-1 depends on luaexpat >= 1.1.0-3 (not installed)
   Installing https://luarocks.org/luaexpat-1.5.2-1.src.rock
   
   Error: Failed installing dependency: https://luarocks.org/luaexpat-1.5.2-1.src.rock - Could not find header file for EXPAT
     No file expat.h in /usr/local/include
     No file expat.h in /usr/include
   You may have to install EXPAT in your system and/or pass EXPAT_DIR or EXPAT_INCDIR to the luarocks command.
   Example: luarocks install luaexpat EXPAT_DIR=/usr/local
   ```


-- 
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-unsubscribe@apisix.apache.org

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