-
Notifications
You must be signed in to change notification settings - Fork 53
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
Externals not mounted in DIND from Runner #321
Comments
hmmmm gonna try an init container to copy the externals to an emptydir mount... |
So using an init container totally worked. I created an emptyDir, mounted to an init container as /_externals, rsync'd /home/runner/externals, then mounted that volume in the runner and DIND and its now available. I am still not sure how anyone else is using this successfully given the above limitation. Am I missing something? |
I believe I am hitting this same issue on checkout.
|
@developerdino yep that is the exact error. You can see if you hop into the container that the externals folder has the node bin on the |
Thanks @bioshazard for all the hints as to how to fix this. I've managed to get everything working again based on your info by just creating the mounts for the externals, I'll create a PR for the example file so anyone else coming across this will be able to solve it easily. I'm also wondering if this is a recent addition to the actions-runner deployment by Github and that is why we haven't seen this until only recently! |
I am running into a complication where the mount of
/home/runner/externals
yields an empty folder in my jobs.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
anddocker
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 performactions/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 itsexternals
folder to DIND? Or is there some of other sync activity I am missing? Currently searching around for a clever way to expose the existingrunner
folder onto DIND, but I am starting to think I will rather need to copy thenode12
folder to DIND to make it available when the mount is performed.The text was updated successfully, but these errors were encountered: