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

Installing extra modules #12

Open
zacharynevin opened this issue Feb 17, 2016 · 2 comments
Open

Installing extra modules #12

zacharynevin opened this issue Feb 17, 2016 · 2 comments

Comments

@zacharynevin
Copy link

How would I install extra modules. For example, I want to install the http_geoip module on top of this (http://nginx.org/en/docs/http/ngx_http_geoip_module.html).

I tried:

RUN cd / \
  && ./configure --with-http_geoip_module

But that threw an error saying ./configure: not found

@skozin
Copy link
Member

skozin commented Feb 18, 2016

This won't work, as configure is a part of NginX/Openresty sources, and source files don't get included into the resulting image: they are removed after compilation. To add another module, you'll need to modify the Dockerfile(s) and add the module here.

Probably the best option is to fork this repo and make any modifications you need. I try to keep ficusio/openresty as small as possible. But, if the resulting increase in the image size is negligible, I can add http_geoip_module into this repo.

Could you please try to add --with-http_geoip_module into the alpine/Dockerfile, build the image and see what "virtual size" Docker reports when you run docker images?

@zacharynevin
Copy link
Author

I made a pull request for this, with the nginx stub status module that I think would be useful to include: #19

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