-
Notifications
You must be signed in to change notification settings - Fork 42
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
Refactor host OS CI scripts to allow running them locally #2557
Conversation
-F optever=0.21 \ | ||
-P /work/gz/root \ | ||
-B | ||
# TODO: Consider importing zones here too? |
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.
A little redundant with the comment on line 66?
# Extract the trampoline global zone tarball into a tmp_gz directory | ||
if ! tmp_gz=$(mktemp -d); then | ||
exit 1 | ||
fi | ||
trap 'cd /; rm -rf "$tmp_gz"' EXIT | ||
|
||
echo "Extracting trampoline gz packages into $tmp_gz" | ||
ptime -m tar xvzf $TRAMPOLINE_PATH -C $tmp_gz |
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.
I suspect we'll want to package zone tarballs into the OS image at some point, which will probably end up changing this a little bit? IDK if we just want to pass an "already unpacked" directory to this script, or to make it a separate argument to pass files that should not be unpacked before getting thrown to the -P
flag below.
@jgallagher is not back until Friday and said this was ok to merge with @smklein's approval. I'll leave post-hoc changes to him for now unless I get to them while playing around. |
This creates a new
./tools/build-host-image.sh
script which is extracted from the existing CI jobs to build host and trampoline images; those CI jobs now call this script (after doing some buildomat-specific setup).Marking this as a draft until it passes in CI to make sure I didn't break anything there.