Description
I am running into a complication where the mount of /home/runner/externals
yields an empty folder in my jobs.
runner@runner-pool2-pod-4cj8m:~$ ls -la externals/total 16
drwxr-xr-x 4 runner 121 4096 Aug 30 17:28 .
drwxr-xr-x 1 runner 121 4096 Sep 1 12:01 ..
drwxr-xr-x 6 runner 121 4096 Aug 30 17:28 node12
drwxr-xr-x 3 runner 121 4096 Aug 30 17:28 node12_alpine
runner@runner-pool2-pod-4cj8m:~$ docker run --rm -it -v /home/runner/externals:/_externals --entrypoint bash centos:7
[root@b2aec0c0ed67 /]# ls -la /_externals/
total 8
drwxr-xr-x 2 root root 4096 Sep 1 12:25 .
drwxr-xr-x 1 root root 4096 Sep 1 12:25 ..
I have traced the issue down to DIND taking in that mount from its own container rather than mounting remotely from the runner as is apparently the expected function. I believe one could share a mount between runner
and docker
container to make it available on the DIND side of things, but out of the box, I do not see how any users are able to perform actions/checkout@v2
due to the missing /__e/node12/bin/node
as the mount is empty.
Is anyone else's experience that the runner
container can remotely mount its externals
folder to DIND? Or is there some of other sync activity I am missing? Currently searching around for a clever way to expose the existing runner
folder onto DIND, but I am starting to think I will rather need to copy the node12
folder to DIND to make it available when the mount is performed.