docker-handbook-projects
docker-handbook-projects copied to clipboard
nginx build errors
Was just going through this tutorial and encountered errors building nginx from source:
for whatever reason apt-get couldn't find libssl1.1 using libssl1.0 worked
#5 9.014 E: Unable to locate package libssl1.1
#5 9.015 E: Couldn't find any package by glob 'libssl1.1
#5 9.015 E: Couldn't find any package by regex 'libssl1.1
------
executor failed running [/bin/sh -c apt-get update && apt-get install build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl1.1 libssl-dev -y && apt-get clean && rm -rf /var/lib/apt/lists/*]: exit code: 100
the make file for compiling nginx throws errors for deprecated code using 1.19.2 upgrading to 1.20.2 instead works.
#9 45.57 src/event/ngx_event_openssl.c:729:9: error: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
#9 45.57 729 | engine = ENGINE_by_id((char *) p);
#9 45.57 | ^~~~~~
#9 45.57 In file included from src/event/ngx_event_openssl.h:22,
#9 45.57 from src/core/ngx_core.h:84,
#9 45.57 from src/event/ngx_event_openssl.c:9:
Thanks for reporting @mkessy. I'll update the code and the handbook soon.
@mkessy I've looked into it. Turns out libss1.1 has been deprecated on the latest version of Ubuntu. I'll update the code accordingly. Thanks for reporting.
Hi @fhsinchy
I see this as closed 2 days ago but the most recent commit goes back to February of this year. I'm curious what the solution is for this as I'm going through The Docker Handbook right now and just came across this problem and can't seem to find an update in the codebase.
Thank you ahead of time for all the work you've put into this!
If anyone makes it to this thread with the same problem, for the sake of continuing through the tutorial, I updated my Dockerfile to use debian instead of ubuntu and the image built successfully.
Just update the first line in the Dockerfile to use:
from debian:latest
...
I'm not suggesting this as a solution for the original author of The Docker Handbook, merely a bandaid for those who make it this far in the meantime.