Skip to content
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

Merged
merged 8 commits into from
Mar 16, 2023

Conversation

jgallagher
Copy link
Contributor

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.

@jgallagher jgallagher marked this pull request as ready for review March 14, 2023 23:46
@jgallagher jgallagher requested a review from smklein March 14, 2023 23:46
-F optever=0.21 \
-P /work/gz/root \
-B
# TODO: Consider importing zones here too?
Copy link
Collaborator

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?

Comment on lines +71 to +78
# 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
Copy link
Collaborator

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.

@andrewjstone andrewjstone merged commit 65bc4f7 into main Mar 16, 2023
@andrewjstone andrewjstone deleted the build-recovery-image-locally branch March 16, 2023 04:00
@andrewjstone
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants