-
Notifications
You must be signed in to change notification settings - Fork 5
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 running jobs with ubuntu image #95
Comments
This is likely because mounting script is macOS specific: gitlab-tart-executor/internal/commands/prepare/prepare.go Lines 214 to 216 in c778283
It should be along these lines:
We'll look into it as some point. Can I ask you why specifically use Tart for Linux jobs instead of having some executor on a Linux box with some Docker executor. Just curious to learn about your use case to have more understanding of use cases of our users. |
hi @fkorotkov , Thanks for the answer! Right now I can only define these values as parameters and they will only be read once runner is started: cmd.PersistentFlags().StringVar(&buildsDir, "builds-dir", "",
"path to a directory on host to use for storing builds, automatically mounts that directory "+
"to the guest VM, mutually exclusive with \"--guest-builds-dir\"")
cmd.PersistentFlags().StringVar(&cacheDir, "cache-dir", "",
"path to a directory on host to use for caching purposes, automatically mounts that directory "+
"to the guest VM, mutually exclusive with \"--guest-cache-dir\"")
cmd.PersistentFlags().StringVar(&guestBuildsDir, "guest-builds-dir", "",
"path to a directory in guest to use for storing builds, useful when mounting a block device "+
"via \"--disk\" command-line argument (mutually exclusive with \"--builds-dir\")")
cmd.PersistentFlags().StringVar(&guestCacheDir, "guest-cache-dir", "",
"path to a directory in guest to use for caching purposes, useful when mounting a block device "+
"via \"--disk\" command-line argument (mutually exclusive with \"--cache-dir\")") |
Thank you for details! @edigaryev should we use |
so guys, small update. I was able to run the VMs using the following setting in the But I found another bug, if I use variable here is a sample .gitlab-ci.yaml to reproduce the problem:
Here is the cut out output:
|
Hi @0xff8, Please check out the latest The only thing that you should probably keep in your CI configuration for Linux jobs is |
Hi guys,
When I run my job with any macOS image everything works as expected. But when I am trying to execute the same job using linux image - job fails. I assume the problem is in the
config_exec
step and particularly withgitlab-tart-executor config
. Is there a way to setbuild_dir
andcache_dir
via environment variables ? Or set it inconfig.toml
to some value that will work for both linux and macOS images ?.gitlab-ci.yaml configuration:
Error:
Any suggestions are welcomed :)
The text was updated successfully, but these errors were encountered: