Hi,
Not sure if this is a buildah issue or perhaps a Tekton/OpenShift Pipelines
(which is driving my image build).
I have a multi-stage Dockerfile that is used in my pipeline's buildah bud
execution. Every time this runs, it fails at the first COPY step in the
second stage:
"COPY --from=compile --chown=1001:0 /work/shared /opt/ol/wlp/usr/shared/"
The failure is:
STEP 8: COPY --from=compile --chown=1001:0 /work/shared
/opt/ol/wlp/usr/shared/
error building at STEP "COPY --from=compile --chown=1001:0 /work/shared
/opt/ol/wlp/usr/shared/": error adding sources
[/var/lib/containers/storage/vfs/dir/7fe077c619b975b762ece658cf195b868b1efb81db3c839abe2110f2858bf1a5/work/shared]:
no items matching glob
"/var/lib/containers/storage/vfs/dir/7fe077c619b975b762ece658cf195b868b1efb81db3c839abe2110f2858bf1a5/work/shared"
copied (1 filtered out): no such file or directory
level=error msg="exit status 125"
This is the command being used to run the build:
buildah --storage-driver=vfs bud
'--label=io.openshift.build.commit.author=Adam Wisniewski'
--label=io.openshift.build.commit.date=2021-06-07T23:43:59-04:00 --label=
io.openshift.build.commit.id=2dd06bb00930b598c8956a73158df8856bbbff83
'--label=io.openshift.build.commit.message=update Dockerfile'
--label=io.openshift.build.commit.ref=master --format=oci
--tls-verify=false --no-cache -f ./Dockerfile -t
image-registry.openshift-image-registry.svc:5000/cicd/test-webhook-app:master-2dd06bb00930b598c8956a73158df8856bbbff83
.
The Dockerfile builds fine with Docker, so I'm assuming I'm either missing
some buildah bud option to allow for this behavior, or perhaps there is an
issue with my file system in my pipeline in OCP....
Thanks for any help!