Open duttonw opened 3 days ago
I do see the directory /docker-entrypoint.d/
in ckan/ckan-dev:2.9-v20241125
, even though the mkdir
command is an https://github.com/ckan/ckan-docker-base/blob/main/ckan-2.9/Dockerfile#L126 ONBUILD RUN
command which IIUC is a trigger that is only supposed to be run by downstream images.
I'm not sure why we didn't create this directory with a normal RUN
command and make it part of the image instead of using this ONBUILD
trigger feature but it seems that both are happening for some reason and causing this error.
So we can either:
/docker-entrypoint.d/
directory ( @amercader could this be related to using DOCKER_BUILDKIT=1
now?)ONBUILD
, ormkdir -p
like https://github.com/ckan/ckan-docker-base/pull/94What do you think @duttonw ?
I bet is this buildkit bug: https://github.com/moby/buildkit/issues/5486
Any of the options you mention sounds good to me
I like option 2. If removing ONBUILD
fixes the issue then that gets us a simpler Dockerfile at the same time.
its all magic sauce and the use here does not fit the normal usecase given in the docs. https://docs.docker.com/reference/dockerfile/#onbuild
I'd say remove ONBUILD, but still leave in mkdir -p for safety.
Something outside of this repo's version control has occurred and now we have failing cicd builds:
Our cicd jobs extend the image and is now having issues which it did not have yesterday. Nothing has been changed in our repo/workflows and I was able to retrigger it on a passing run which is less than 24hours old.
Passing (Triggered via push 18 hours ago) : https://github.com/qld-gov-au/ckanext-ytp-comments/actions/runs/12005390429/attempts/1
5 [ckan 1/10] FROM docker.io/ckan/ckan-dev:2.10@sha256:4f8f8a27f72ddc4509e3fc1c8c29b6615b205d04d12922019629e98acbec124c
Failing: https://github.com/qld-gov-au/ckanext-ytp-comments/actions/runs/12005390429
5 [ckan 1/10] FROM docker.io/ckan/ckan-dev:2.10@sha256:4117dd652dac492431d0c932642c5724882294ea042ec782dc7909ec96f4c45a
2.10
2.11
Below is the current point in time details of the tag's and hashes as of this momenet this ticket is created https://hub.docker.com/r/ckan/ckan-dev/tags
TAG
2.9-v20241125
Last pushed 11 hours ago by amercader