-
Notifications
You must be signed in to change notification settings - Fork 48
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
Specify jailmaker directory irrespective of script location #238
Conversation
When creating a PR please don't break the tests we have in place. |
In light of this change, which may encourage users to create and manage multiple jailmaker directories and switch between them, I forsee some issues. Jail names should be unique. Even across multiple jailmaker dirs. You can't have multiple jails with the same name running simultaneously. The Running
If the user specifies jailmakerA and starts debian it will show up as running in |
Creating a fresh
And I can confirm calling executables placed in |
Unfortunately I don't think the install instructions you suggested work. Installing
Due to using
Now it will run
But it's quite complicated... |
Well, that's frustrating. You just threw away the client-side tooling that we'd use to preflight all aspects of code quality — and could ultimately enforce through a commit hook. |
I should probably question the premise here. 😬 As I see it, the tool "encourages" a single jailmaker directory, as does its documentation. Beyond that, neither should get in the user's way more than necessary. I agree that it is possible to trip over any named machines which the user creates outside of the currently declared jailmaker directory. But I'll remind you that this is also the current status quo. 🧐 As you were right to caveat: the rest is a balance of anecdotal probabilities. 🤷
I think it can. Your principle of No lock in states that after using For me, what naturally follows is that we should implement based on hard constraints imposed or encountered by the system, and avoid conflating that with any new conventions suggested by the tool and its documentation. So to avoid your delayed discovery scenario: Until such a change: the designated jailmaker directory is inherently just a slightly fragile convention — as it's always been. |
COOL! 😍 I'd been mulling another pestering Jira.
OK, so I think that just means changing "is not/will not" to "may not have/might not". IMO preestablished accounts (and fish, ksh, tcsh…) suggest that we shouldn't remove the general advisory. But it doesn't necessarily need to be spelled out so fully in this particular readme. More could be offloaded to a wiki or external webpage, where there's room to address more edge cases and options. If we cover the topic concisely and effectively, maybe that should be the Jira. |
Oh, wow. Yeah, for all my testing I'd still been invoking |
Moving commnet to #239 |
My bad, I shouldn't have asked you to work on this but I got carried away. All in all this reminds me that building something like this for SCALE means making compromises. Not all the sysadmin best practices apply here. Anyhow I shall keep the |
Does this have to be either/or? It seems we've cleanly solved having Original Recipe be the default, with no penalties from allowing undocumented override to those who need it. |
Per request… decoupling the jailmaker directory/dataset path from wherever the script gets installed. And taking a stab at filling related blanks in the readme.
Unfortunately you'd almost need to train people to use
sudo -E
? There are other solutions, sorting out the dotfiles under/root
, but it's such a "maze of twisty passages all alike" that I'd imagine that would (or should) make people squeamish.With that in mind, I've told it to also respect a
~/.local/share/jailmaker.conf
in the.ini
format…… which on the surface is pretty inconvenient. But it would suddenly make all the sense if you added a
jlmkr path [newpath]
command or similar. (Without the second argument it outputs the current path.) I'm not monkeying with command-line args here; I also didn't add a--dir/-D
argument. But if there were such an argument IMO it should take precedence over these other sources of truth.