-
Notifications
You must be signed in to change notification settings - Fork 75
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
Docker: minimize build context when building Docker Images #1231
Comments
It looks like the build context can't be set for the automated builds Docker Hub. A possible workaround is to add lookup table in hooks/build. Currently the build context is hardcoded as '.' in that script. |
This works locally, but it is not obvious how Docker hub handles this.
Issue #1231: Tentatively change into scripts/nginx before building.
The build context can be set in the automated build GUI. For some reason I must have overlooked it. That setting is available as The idea is to backport this to rel-10_0, as the directory structure hasn't really changed. The only thing to keep in mind is that hooks/build must be updated when an automated build from before 10.0.12 is needed. |
As stolen from otobo.nginx.dockerfile.
Minimised the build context:
|
Ran the test suite, with activated Elasticsearch, with the devel-rel-10_0 images taken from hub.docker.com. The test results looked fine. Closing this issue. |
Just a small optimization. Not all images need the full otobo dir as build context.
The text was updated successfully, but these errors were encountered: