-
Notifications
You must be signed in to change notification settings - Fork 46
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
Access EFS storage from within container #360
Comments
Hi @WinstonN. Thank you for your interest in SCAR. We are very happy to see that you are undertaking this proof of concept ahead. Unfortunately, we could not allocate time to look into this, so far. We would be delighted if you keep us posted with your findings and very happy if you contribute to SCAR with your developments. |
Hi @gmolto I can make a PR, no problem but here's what I see,
but it doesn't seem to be the right place. Can you simply tell me which udocker.py file you use (the one that ends up in Thanks! |
@gmolto I saw that there is a faas layer created. I removed it, and recreated it, but I still don't see my changes
Is it
I'm thinking it's number 2 above? |
Ping @srisco |
mmm I downloaded the layer, edited it locally, to include the /mnt dir, uploaded it and created a revision. When I run the function I get the error
|
Hi @WinstonN, as you have noticed, faas-supervisor is the code executed in the lambda function in order to run the container. The problem is that the EFS in lambda is not automatically mounted in the container and you cannot see it. Your approach editing the supervisor's layer should work, please let me know what files have you edited (you could open a PR in faas-supervisor) and I'll try to help you. For a PR in SCAR the idea is provide an option in function configuration files to create and mount EFS file systems. Thank you for your work! |
I got it! I'll try and make this configurable via env vars, with a fallback to default
I struggled a bit because I was not sure which part of the code is used where, but I'm getting used to the code flow now The result is beautiful efs share
Thanks for all the help! |
@WinstonN PR? This functionality would be awesome |
@carlreiser2 you can try just making the change I made above (see the diff in my previous comment) - that might work
The zip is located https://github.com/grycap/faas-supervisor/tree/master/extra I didn't setup a PR, because even though the code is stable on my local, I need much more time to make it PR ready
You can see why I didn't make a PR....... |
I would really like to see some of the necessary changes made to add this feature to the main branch. The necessary changes for this include:
In the meantime, this can be done by forking
|
Hello
With EFS available in Lambda I want to use this storage
I have setup EFS, and inside the lambda I can see it. To do this I just import the OS module, and print a listdir
Inside the logs I can see my "efs" storage
But when I send the command
df -h
as documented here: https://scar.readthedocs.io/en/latest/advanced_usage.html#executing-custom-commands-and-argumentsI don't see this storage, or inside
/mnt
Can you point me in the right direction please?
Thanks!
The text was updated successfully, but these errors were encountered: