-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Consider publishing the docker BUILD stage as a separate image? #9824
Comments
I'm not totally sure if it is a good idea:
Despite all the above, if you want to build upon the build stages, wouldn't just copying the build recipees and adapting them for your needs do the job? |
@rouault thanks for the reply. The rocker stack is based on Ubuntu LTS releases, (with gpu part of the stack building on nvidia-based images derived from the ubuntu base). I appreciate the suggestion but we don't support the Alpine based images, so the APK binaries are not a good option for us. I completely understand that you build these images as end products. My goal is to provide containerized environments supporting an R / python community, where as you know there is a considerable ecosystem of packages in each language that bind your GDAL libraries as part of larger software environment that is in a predominantly Ubuntu (deb) based system. So while the current docker images serve an important purpose as "end products", there is a substantial user base that could potentially benefit from being able to extend those images. For instance, compare to the Nvidia cuda docker stack, that provides a suite of runtime and devel images meant to be extended by other projects seeking to build upon their libraries rather than use them merely as an 'end product'. None of the three things you mention are substantial barriers in this context -- (a) it's common to use source-based installs with care not to conflict with binary versions from the repos, we already share the same base image and it's straight forward to verify this dynamically if necessary, though presumably would be included in the tag of the dev build. We can definitely just duplicate the source based builds you have here, effectively creating a fork of this little part of the larger gdal repo, and try to keep it in sync with your work. I just thought it would be proper to touch base with you first to see if it made more sense for such an image to be here where it could more easily be discovered by the many other developers who build software stacks on top of gdal in this manner. |
@cboettig If you want to pursue this and enhance our Docker building script(s), I have no opposition in you doing so. But that might be complicated by our use of That said if |
Feature description
Would you consider publishing the build stage of your docker builds as a separate image, such that downstream projects could
COPY --from
the build image like so https://github.com/OSGeo/gdal/blob/master/docker/ubuntu-small/Dockerfile#L256 but without having to duplicate the multi-stage build?Context: I co-maintain the https://rocker-project.org Docker stacks for geospatial work, where we are really keen to be able to offer users access to the latest versions of GDAL.
The text was updated successfully, but these errors were encountered: