-
Notifications
You must be signed in to change notification settings - Fork 124
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
Error when trying to build a docker image with self-hosted github runner #24
Comments
Hello, The error you're getting indicates that a Dockerfile can't be found. Could you double check the location of the Dockerfile in your repository ? Also, I'm not sure, but it seems that VaultVulp/gp-docker-action is using a Docker based action, meaning that it will spin-up a container to run the build and push commands. However, as you are already running the runner inside Docker, this might also be an issue. |
Hi! I think there is no problem with the dockerfile. It is in the root and works with Githubs own runner. Domyou Guys use this project to build docker images? Do you have a action that works with this project? PS. I got the same error message with the official docker action. |
Hello, Although it runs on shared runners and not self-hosted runners, the following I can't investigate further your issue at the moment, but I'm almost sure that it's because the gp-docker-action is an action spinning up a new Docker image. |
Hi. I experienced a similar issue with another action. What's happening is that your repo is checked out inside the github-runner container, and your action is starting a different container where the repo and Dockerfile don't exist. In my case, my action was looking for a file in Hope it's the right solution and it helps |
Is there a way to avoid using the Host OS you think? Possibly with volumes? I guess we can't control how the runner's logic about mounting containers works though? Context: I'd like to have multiple runners on the same box, but they all can't share |
When using the config bellow to try and build a docker image I get an error that the Dockerfile can't be found. Be when running the same script in a Github runner from Github it runs. I've mounted the volume to the container of the self-hosted Github runner:
The error message:
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /github/workspace/Dockerfile: no such file or directory
Any thoughts?
The text was updated successfully, but these errors were encountered: