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

nginx and njs version #2

Open
joh-klein opened this issue May 5, 2021 · 2 comments
Open

nginx and njs version #2

joh-klein opened this issue May 5, 2021 · 2 comments

Comments

@joh-klein
Copy link

Hi,
we just had the issue, that we were still using nginx 1.18.0 in our tests startNginx({ version: '1.10.0'}) but in the nginx.conf we were using js_var – a feature, that should not have worked with the njs version that was packaged with nginx 1.18.0. But the tests stayed green. Only when we deployed it, did it fail.
How can we avoid this in the future?

Thanks again for this great tool!

@jirutka
Copy link
Owner

jirutka commented May 5, 2021

Hi,
that’s because I always build nginx with the latest modules and dependencies at the time. njs is a separate module, it’s not shipped within the nginx tarball, so what do you mean by “njs version that was packaged with nginx 1.18.0”? This depends on particular distribution.

You can find the exact versions of modules and other dependencies the binary was built with in index.json (see IndexEntry). If you need some specific version, you can try to find it in history of the binaries branch.

@joh-klein
Copy link
Author

OK – thanks for the explanation. I always just use the official nginx docker image (stable version) and don't do anything to the container after that.
So what I would find super helpful is a possibility to separately specify which njs version should be used in the tests. Would that even be possible?

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