-
Notifications
You must be signed in to change notification settings - Fork 19
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
Unable to install on Docker nginx image #30
Comments
Hi @bmerigan ! We're removing the sources.list entry when we finalize the dockerfile: https://github.com/nginxinc/docker-nginx/blob/master/mainline/debian/Dockerfile#L95 To install the otel module, you'd need to re-add the sources.list entry for the repo (no need for a key). |
Ah, I see. I guess that's to keep sizes down and unlikely to change. |
To be fair we didnt have any other request to change this behaviour, so yeah, unlikely to change. In any case, I plan to have the official otel-enabled image published soon, so this issue will be fixed properly. |
With the nudge in the right direction I have replaced the missing file and it installed ok. |
Here is the Dockerfile which successfully installs
|
I spent several hours on this already, would be nice to include this to the readme |
FYI I've started a process to include the I'll let you know when it's accepted & available. |
DockerHub image is live. See https://hub.docker.com/_/nginx, namely "nginx:otel" and "nginx:alpine-otel" for the current tags. |
Nice work @thresheek |
Describe the bug
Cannot install this module into the official Docker nginx images.
Have tried both
nginxinc/nginx-unprivileged:1.25.3
andnginx:1.25.3
Receive error message
Unable to locate package nginx-module-otel
when trying to build the Docker container, as shown below.To reproduce
Steps to reproduce the behavior:
Try to install this otel module in an official nginx Docker container using the most basic Dockerfile.
Dockerfile:
docker-compose up -d gateway --build
Expected behavior
I expect the module to install.
Your environment
nginx official docker image 1.25.3
https://hub.docker.com/layers/library/nginx/1.25.3/images/sha256-161ef4b1bf7effb350a2a9625cb2b59f69d54ec6059a8a155a1438d0439c593c?context=explore
Additional context
The text was updated successfully, but these errors were encountered: