Comments (7)
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.
@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.
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.
@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.
<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.
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.
Done as part of nix-community/nixops-gce#17 & NixOS/nixpkgs#117021
Thanks @AmineChikhaoui!
Closing,
from infra.
Related Issues (20)
- Rate limiting on hydra.nixos.org
- Clarify existing licensing and apply MIT license HOT 17
- Setup an SSO service for admin interfaces HOT 4
- Set up zrepl alerting
- Public GitHub webhooks re-broadcaster / message queue HOT 2
- Move survey.nixos.org to a less ridiculous hosting on non-critical-infra HOT 5
- Decommission eris.nixos.org HOT 1
- Monitoring data is not backed up
- Onboard ofborg onto non-critical-infra
- Fastly reads from >= two locations HOT 4
- Meeting infrastructure
- ICS links for Discourse calendars HOT 2
- Alert on continued failure of hydra-scale-equinix-metal.service
- Put hydra advances query result in a public s3 bucket somewhere on a cron job HOT 1
- Document non-critical-infra team HOT 4
- Self-hosted releases.nixos.org HOT 6
- Alert on nixos.org Matrix federation issues HOT 2
- Deprecate netboot.gsc.io ("netboot-foundation" EQM host) HOT 4
- vaultwarden: smtp credentials invalid HOT 2
- Nix manual returns 404 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infra.