-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
ENH: enable capability from command line to bind host volumes to containers #1451
Conversation
Hmm, I think I don't really understand the use case. |
conda can be a very big overhead on resolving dependencies and downloading packages. Try cloning geopandas and run act on it. Many hours just to build envs when using act then a few minutes to run tests. I've looked through all the options of https://github.com/marketplace/actions/setup-miniconda which is why I have moved to lock files for running locally. I'm trying to avoid completely restructuring actions that work fine on GitHub servers to run locally. Possibly the conda use case with complex package dependencies is too specific a use case for act. I've extended catthehacker/ubuntu:act-latest to optimise conda and then using a local docker repo to serve it up to act |
I don't know conda and I still struggle to understand why it works fine (fast) on GitHub while it's slow with act. |
It is quite difficult to get working... I haven't got it working in a satisfactory way yet. One thing I needed was a bit more flexibility to be able to mount volumes in act containers hence decided to contribute this PR back. When I have it working I can add more commentary to this PR. For now the change sitting in my fork is fine. |
Do you really need / want container isolation?
Wouldn't it make sense to add one |
That sounds like a good idea. |
I have tried
I spotted that but honestly my go knowledge is really just that I'm a computer scientist / coder, so can read code on any language. I don't have time to invest in really getting to a level in go to make this level of change. I guess the conclusion is close this PR, too specific use case to be valid.... |
I'm reffering with Seams like I forget a Yeah I reused the syntax from some other project of mine |
@rraymondgh Would #1462 work for you? e.g.
This avoids adding every docker cli option one by one, it's a mess. |
This is excellent. There is a piece of code still looking for docker. Following doesn't stop running, but more of an FYI.
|
self hosted works much better. no need for this |
See also question I raised on SO https://stackoverflow.com/questions/74516196/nektos-act-docker-containers-how-to-mount-a-volume
There are quite significant overheads with conda and act. Sharing the downloaded packages between host and containers by binding host directory of downloaded packages with act containers significantly improves situation.
This is the first time I've coded in go. I'm not really aware of things like PEP8/black/flake8 and pytest that are standard in python