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 custom modules is not successful #911

Closed
yjiangi opened this issue Aug 1, 2024 · 5 comments
Closed

Adding custom modules is not successful #911

yjiangi opened this issue Aug 1, 2024 · 5 comments

Comments

@yjiangi
Copy link

yjiangi commented Aug 1, 2024

I want to add nginx VTS module nginx mirror, this is what I use dockerfile address: https://raw.githubusercontent.com/nginxinc/docker-nginx/master/modules/Dockerfile, but I finished building After completion, I found that there was no module I wanted
image
image

@yjiangi
Copy link
Author

yjiangi commented Aug 1, 2024

docker build --build-arg ENABLED_MODULES="cachepurge" -t my-nginx-with-cachepurge:v3 . This is the command I built

@thresheek
Copy link
Collaborator

Hi @yjiangi !

The module will be built as a package separate to the main nginx binary? Check /etc/nginx/modules/ if it's there?

@yjiangi
Copy link
Author

yjiangi commented Aug 2, 2024

I don't see this module
image

@thresheek
Copy link
Collaborator

It should be there if the image build had succeeded. Please provide the full log of a build, e.g.:

docker build --progress=plain --build-arg ENABLED_MODULES="cachepurge" -t my-nginx-with-cachepurge:v3 .

@yjiangi
Copy link
Author

yjiangi commented Aug 5, 2024

I think I know what the problem is, thanks for your guidance, through the --progress=plain parameter I found that I need to load the ngx_http_vhost_traffic_status_module.so module in /etc/nginx/nginx.conf, thanks

@yjiangi yjiangi closed this as completed Aug 6, 2024
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