-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
google-compute-image: switch to use the common make-disk-image.nix #25165
Conversation
@copumpkin, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rbvermaa, @oconnorr and @Phreedom to be potential reviewers. |
I will take a look |
rm $out/disk.raw | ||
popd | ||
''; | ||
diskImageBase = "nixos-image-${config.system.nixosLabel}-${pkgs.stdenv.system}.raw"; |
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.
One thing I noticed, is that the image name no longer includes the label and architecture. I don't know though if this is required or wanted somewhere.
The image itself is working fine. I noticed a slight increase in image size (~200mb -> 220mb; compressed), but this might be uncorrelated. |
brightbox is already addressed here: #25166 |
@domenkozar yeah, haven't had time to do Azure one yet but as @Mic92 says,
I already did Brightbox
@Mic92 thanks! I'll add the info back to the name and merge. Not sure what
the size diff is but it doesn't seem too concerning
…On Mon, Apr 24, 2017 at 06:34 Jörg Thalheim ***@***.***> wrote:
brightbox is already addressed here: #25166
<#25166>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#25165 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAKP7zlQmsB-rnS4zfg-eOnoxKFpwfUks5rzHqfgaJpZM4NFpAl>
.
|
72387fb
to
9fae0f3
Compare
@Mic92 I pushed a new revision that produces image files that look like this:
Does that seem reasonable? |
Will merge and we can adjust the name a bit if needed later. |
Motivation for this change
Let's reduce the amount of duplication and avoid the slight differences in how our systems are built.
I don't have a convenient Google set-up to test these images on a real platform, so the only thing I've done so far is make sure it still builds. I'll start adding some tests in a bit as a result of #24973, but need to factor out the common aspects from the EC2 tests first.
@Mic92 do you mind testing the image this produces? I'm happy to fix anything that's wrong
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)