Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Third Party Modules to Debian Images Utilizing the ".deb" Installation #245

Open
michohl opened this issue Jan 24, 2024 · 1 comment

Comments

@michohl
Copy link

michohl commented Jan 24, 2024

I'm attempting to transition our openresty images from Alpine to Debian currently. However, we have a single module, NAXSI, that we load into our image which we were historically adding as part of the compile step as a dynamic module.

The new debian images are no longer doing the compile in the Dockerfile but are instead expecting the user to use opm to install additional modules. However, the module I'm attempting to install does not have an opm package of their module: wargio/naxsi#114

In other versions of the Dockerfile it seems that this could be done through something like REST_CONFIG_OPTIONS_MORE

ARG RESTY_CONFIG_OPTIONS_MORE=""

which is no longer available in the Debian images as far as I can tell.

What would be the best way to go about building a Docker image that has a third party package installed without utilizing opm?

@neomantra
Copy link
Member

neomantra commented Oct 23, 2024

Really sorry I took so long to reply to you on this. With respect to Debian, we have not had "built-from-source" flavors for a long time (if ever?). Instead that has been focused on Ubuntu. The Debian flavors are "built-from-upstream", so there is no compilation. These built-from-source are the ones that you must use to build custom dynamic modules.

I am not sure if the "deb" package would work here. Even if you built the Naxsi Debian source package for Ubuntu, because the OpenResty vs default Nginx paths are different? It would have to be installed from source, rather than Debian package (during the image build).

We only support Ubuntu vs Debian for build-from-source simply because there's way too many to have both for and Ubuntu moves faster than Debian (e.g. we have OpenResty Noble images before upstream OpenResty does).

So, you might be able to install that Naxos module from source using the Ubuntu flavor build argument variables (like RESTY_CONFIG_OPTIONS_MORE, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants