Giter Site home page Giter Site logo

Comments (7)

garbas avatar garbas commented on May 31, 2024

What if we setup a GitHub actions workflow to do this (example only when nixpkgs-channels gets updated?

This would allow us to have this images always up to date. And I assume we could do the same for EC2 and Azume images.

What we would have to change is the location of channels -> latest images mapping (gce-images.nix, ec2-amis.nix, azure-images, ...). It never made sense to me that we are keeping this information in nixpkgs anyway. I think having this mappings as part of the artifacts of each evaluation would make much more sense.

from infra.

AmineChikhaoui avatar AmineChikhaoui commented on May 31, 2024

@tewfik-ghariani building the image involves a nix-build as well which maybe we can do in hydra like we do for AWS now.

@garbas I think Github actions run in containers ? so a VM build will likely not work I think but if this is prebuilt in hydra like for amazon images then it would be just pull the latest build and create an image out of it. Maybe also we can test the image as part of the Github action by spinning up a vm, making sure it boots correctly then tearing it down.

from infra.

AmineChikhaoui avatar AmineChikhaoui commented on May 31, 2024

Oh wait I just saw the example link @garbas , looks like they do a docker build in the action so that probably doesn't run inside a container.

What we would have to change is the location of channels -> latest images mapping (gce-images.nix, ec2-amis.nix, azure-images, ...). It never made sense to me that we are keeping this information in nixpkgs anyway. I think having this mappings as part of the artifacts of each evaluation would make much more sense.

I didn't get this part, what do you mean by keeping the mapping out of nixpkgs, where exactly would that be instead ?

from infra.

garbas avatar garbas commented on May 31, 2024

@AmineChikhaoui currently we have in nixpkgs a few attribute sets which map from "nixos version" to "uploaded image" (gce-images.nix, ec2-amis.nix, azure-images.nix, ...). We would have to update this each time we upload new images. I think it would be nicer to have this somewhere else. Having them right next to the evaluation artifacts would be where I would put them (eg. in some json file or something like that).

And how https://channels.nixos.org is setup right now you could easily access latest evaluation and thus latest ids of uploaded images.

We would also need to change how we handle this in https://nixos.org/download.html but this are minor fixes we have to do.

from infra.

garbas avatar garbas commented on May 31, 2024

<dreaming>
We could also generate and upload all of other images for other cloud (or non-cloud) services. Taking the work that nixos-generators did and show it on the nixos website.
</dreaming>

from infra.

tewfik-ghariani avatar tewfik-ghariani commented on May 31, 2024

Hello, can you please share the exact process to build/spin up GCE Images using the latest nixpkgs version as well as the encountered issues?

Will there be a need to make some changes to the create-gce.sh script in nixpkgs?

from infra.

tewfik-ghariani avatar tewfik-ghariani commented on May 31, 2024

Done as part of nix-community/nixops-gce#17 & NixOS/nixpkgs#117021

Thanks @AmineChikhaoui!

Closing,

from infra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.