-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Adding first shot at new features (x11 and fake home) #444
Conversation
this first commit will add a new feature, x11, which will be null by default. If the value is True, we default to binding ~/.Xauthority. if it is found to be a string, we use that instead. This means if there needs to be some custom bind like ~/.special-Xauthority TO the ~/.Xauthority, both of those need to be represented in the single string. Signed-off-by: vsoch <vsoch@users.noreply.github.com>
10c6a51
to
3e22f72
Compare
Hi @vsoch , here I am! :-)
Edit: for the |
Yes!
Yes.
The default is null, but also false can be set (and it's the same as null, no flag added) |
... and I just realised, that very same setup can be used for the 'home' feature, too. With True defaulting to $HOME. |
Wait, so which one is not needed? Can you be more explicit so I know what to update (remove, add change)? |
For the Home feature only, to get the host directory mounted as home there seem to be 2 options in Singularity (alternative path/flag syntaxes omitted for brevity):
So if you use flag 1. for the Home feature, you don't need flag 2. |
Yes correct! I was planning on implementing 1., does that work? |
Yes, I confirm it works! |
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
okey doke, fake home is added to the PR! We probably could better document feat it we at this point, e.g gpu and x11 are only singularity. Maybe a simple table? |
Tables are a great idea! Some comments:
|
Singularity already defaults to binding $HOME to the container home, so this would not be necessary (or would be weirdly redundant).
Ack totally forgot about that! I'll update the PR this evening. |
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
okay added a table of just features to the developer guide! a37281a |
Oh you're right -- I am biased here because we disable default home binding in our HPC clusters. |
okay added a table of just features to the developer guide! a37281a. Sorry wrote this but it didn't post! |
Hi @vsoch , I have done some testing using Singularity for both x11 and home : all good for me! A couple of comments:
|
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
All set! 48515de |
Cool! Can't wait to deploy on our upcoming Supercomputer ;) |
Ready for merge and release then? |
I'd say so! :) |
this first commit will add a new feature, x11, which will be null by default. If the value is True, we default to binding ~/.Xauthority. if it is found to be a string, we use that instead. This means if there needs to be some custom bind like ~/.special-Xauthority TO the ~/.Xauthority, both of those need to be represented in the single string.
This will close #433
@marcodelapierre I wanted to just do this one first in case its implementation influences our decision making for the fake home. I also had a few questions about the fake home:
--home
and the bind, if I understand you correctly?<source>:<dest>
for the bind instead.I also added some weird syntax that basically says "if the type of the value specified is within one we know to allow (e.g., "~/.my-custom-Xauthority is a string and str is in the features lookup for x11:
AND if the value is
[use-self]
in that lookup, just use the original string. This also gives us a little wiggle room for custom parsing of strings provided by the user to indicate some value. I'm hoping we don't need to get more complicated than this though, e.g., "if I find a string for x11, just use it"Signed-off-by: vsoch vsoch@users.noreply.github.com