-
Notifications
You must be signed in to change notification settings - Fork 170
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
README: add coreos-assembler bash function, overhaul docs #290
Conversation
example of executing using the function:
|
Isn't this what the |
This would break the symmetry that today one can invoke e.g. Why specifically did you choose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 this is REALLY helpful!
I actually never checked that file until this comment. It does look like it. |
@jlebon yeah, although it's somewhat orthogonal; there's nothing that says you should use bottlecap and nothing that says you shouldn't. Really we should have two sections, one with bottlecap and one without. There are some difference with this approach (bottlecap runs |
I've always used an alias since
WDYT? |
pushed a fixup for the minor things |
I'd vote for that and circle back to the naming/typing issue as a separate PR. It's a bit ironic because I find rpm-ostree annoying to type and have been advocating a rename partially based on that but you're on the other side there 😉 (I'm fine with |
pushed fixup ^^ |
opened #291 to discuss abbreviation. working on the dir permissions change now. |
ok should have addressed all comments now and rebased/squashed everything so it should be ready for merge if everything looks good. side note: if someone could answer this question that would be great. |
Overall this looks good...I just wanted to get a chance to test it myself and haven't been at a place with good enough Internet to pull the latest cosa container. I should be able to do so tomorrow; if someone else beats me to it and tests this they should feel free to merge too! |
This replaces #263 right? |
👍 - no rush - i want some of the other people who had comments to sign off too
Not exactly. I think @jlebon was trying to document how to use rootless podman to run a build. While we technically can run in a rootless container (assuming you provide /dev/kvm) I haven't found the rootless podman builds/runs to work for me reliably yet, so I don't think we should document that flow. All of the commands in this documentation still use |
Tried the Setup section, and works well overall! Ran into a couple of problems, which could be specific to my environment. I needed to set
|
One other thing, after
Not sure if the unit not getting in could be related to running unpriv then priv, or if it's something with my environment - will check on laptop too tomorrow. |
I've seen this before and am attempting to fix this in #294
haven't seen that myself - might have to do some investigation after this merges if you still see it. |
Just to follow up on the second issue (MOTD), |
set -x # so we can see what command gets run | ||
sudo podman run --rm -ti -v ${PWD}:/srv/ --userns=host --device /dev/kvm --name coreos-assembler \ | ||
${COREOS_ASSEMBLER_PRIVILEGED:+--privileged} \ | ||
${COREOS_ASSEMBLER_CONFIG_GIT:+-v $COREOS_ASSEMBLER_CONFIG_GIT:/srv/src/config/:ro} \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be a bit nicer if we did something like auto-detect the case where this is a symlink and did a the bind mount over it or so. But not necessary to do in this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be a bit nicer if we did something like auto-detect the case where this is a symlink and did a the bind mount over it or so.
yeah, hadn't thought of that before. now that we're using a function and not an alias we could do that
But not necessary to do in this change.
is that a +1 for merge?
anything else outstanding for this review? |
Just one minor thing I commented above |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! (Though I haven't tested it).
This adds a bash function, which brings support for various environment variables to tweak functionality at runtime. Having this functionality allows us to overhaul the rest of the documentation to use it instead of adding new aliases in various places.
Determined in code review that it wasn't necessary any longer. #290 (comment)
Thanks. I removed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
A minor detail, just seeing this now: should the paths /srv/coreos
be updated to ./srv-coreos
? There are 3 instances under Initializing (https://github.com/coreos/coreos-assembler/blob/99be52d3491c35bbf6e5ebe8032c001332e24a6d/README.md#initializing) and Performing a build.
fixed this in a new commit, I changed the paths to be relative to the host directory PWD |
Rather than reference the absolute path in the assembler container let's reference the relative path to PWD on the host.
👍 all LGTM, good to merge. |
ok going to merge this now since I've got three 👍 . I would appreciate comments/votes over in #291 regarding the convenience discussion (could be a naming discussion depending on how you look at it). |
This adds the cosa bash function, which brings support for various
environment variables to tweak functionality at runtime. Having this
functionality allows us to overhaul the rest of the documentation to
use it instead of adding new aliases in various places.