nginxinc / docker-nginx

Official NGINX Dockerfiles
BSD 2-Clause "Simplified" License
3.26k stars 1.73k forks source link

Building NGINX docker from source code of NGINX #606

Open bkannadassan opened 2 years ago

bkannadassan commented 2 years ago

Hi All,

I am trying to build NGINX docker image from http://nginx.org/download/ source code. But when I did go through the makefile I see the same using https://hg.nginx.org/pkg-oss/. When exploring the same looks like this does download a specific version and builds. If that is the case should we tweak the entries in here so that this is locally built and we do maintain the tar file locally ?. Any help on the same is much appreciated.

rgds Balaji

thresheek commented 2 years ago

Hi @bkannadassan. I don't really understand the issue. Can you elaborate on a problem you're trying to solve?

bkannadassan commented 2 years ago

@thresheek we are trying to modify the code in http://nginx.org/download/ and build the docker image to be used in K8s with CRD's of nginx Transportserver/Globalconfiguration. I am looking for some documentation that would help me to follow end to end. As per my exploration what I understood is -> Build the docker image of modified nginx -> Use this docker image as a base to build the kubernetes-ingress to add the CRD's support If above is correct, I couldn't find resource which would help me on the same.

thresheek commented 2 years ago

OK, it's a bit more clear now.

Indeed, this image will use pkg-oss when no package sources are available to fetch and build nginx packages. You may clone pkg-oss somewhere, edit it for your need and edit a fork of this repository to point to the new pkg-oss location. I don't think there is any document describing it, too.

edek37 commented 11 months ago

docker pull fthomas/scala-steward