!VhbWwlUdjHkamKnfrK:nixos.org

Nix: Cloud Native

259 Members
57 Servers

Load older messages


SenderMessageTime
30 Jan 2022
@arianvp:matrix.orgArianas it builds on top of istio and all... which is already a massive abstraction sinkhole13:31:46
@arianvp:matrix.orgArianThough I think these days you can run it without istio13:32:31
3 Feb 2022
@lewo:matrix.orglewo joined the room.21:44:43
7 Feb 2022
@corbin:matrix.orgCorbinUgh. I think I can't avoid setting up an internal container registry. I'm on k3s. I found a tutorial (https://llimon.github.io/post/k3s-registry/) but is there a recommended way to do this?01:19:13
9 Feb 2022
@corbin:matrix.orgCorbinI ended up deploying a Helm chart: https://artifacthub.io/packages/helm/twuni/docker-registry I wonder whether it would be worthwhile to have k3s automatically set up some extra Helm charts when it's configured as a service.02:11:38
10 Feb 2022
@asymmetric:matrix.dapp.org.uk@asymmetric:matrix.dapp.org.uk so how do i stream a docker image built with streamLayeredImage to something like skopeo? 11:53:01
@asymmetric:matrix.dapp.org.uk@asymmetric:matrix.dapp.org.uk i tried $(nix build .#container) | gzip --fast but it seems like the new nix command doesn't stream the image to stdout 11:54:36
@lewo:matrix.orglewo asymmetric: I also tried to stream an streamLayeredImage image to Skopeo but I didn't succeed (it however worked with | docker load). Note I didn't try to figure out what's going on! 16:37:31
@lewo:matrix.orglewo

BTW, with nix2container, you could easily stream an image to Skopeo ;)

nix run github:nlewo/nix2container#examples.bash.copyTo SKOPEO-DEST-TRANSPORT
16:41:33
@asymmetric:matrix.dapp.org.uk@asymmetric:matrix.dapp.org.uk ./result | gzip --fast | skopeo inspect docker-archive:/dev/stdin 16:47:09
@asymmetric:matrix.dapp.org.uk@asymmetric:matrix.dapp.org.ukthis seems to work16:47:17
@asymmetric:matrix.dapp.org.uk@asymmetric:matrix.dapp.org.uk you could do $(nix build .#foo) | ... 16:47:30
@asymmetric:matrix.dapp.org.uk@asymmetric:matrix.dapp.org.ukunless you're using fish 😠16:47:44
@asymmetric:matrix.dapp.org.uk@asymmetric:matrix.dapp.org.uk
In reply to @asymmetric:matrix.dapp.org.uk
you could do $(nix build .#foo) | ...
no this does not work
16:48:38
@asymmetric:matrix.dapp.org.uk@asymmetric:matrix.dapp.org.uk nix build --no-link --json .#container | $(jq -r .[0].outputs.out) | gzip --fast | skopeo inspect docker-archive:/dev/stdin 16:49:16
@asymmetric:matrix.dapp.org.uk@asymmetric:matrix.dapp.org.uk^ this does16:49:20
12 Feb 2022
@colemickens:matrix.org@colemickens:matrix.org(random drive by account but I did use virtiofsd to share a dir into qemu and it worked, not sure if virtiofsd+kata is a harder scenario for some reason)23:18:22
14 Feb 2022
@mic92:nixos.dev@mic92:nixos.devDoes docker also support zstd compression instead of gzip? That should make nix2container even faster06:06:37
@lewo:matrix.orglewo Mic92: yep, it does! 08:00:35
@lewo:matrix.orglewohttps://github.com/opencontainers/image-spec/blob/main/layer.md#image-layer-filesystem-changeset08:01:03
@lewo:matrix.orglewo Mic92: Regarding the CI, do you know if it would be possible to run Docker container from a github action? 08:31:58
@mic92:nixos.dev@mic92:nixos.dev
In reply to @lewo:matrix.org
Mic92: Regarding the CI, do you know if it would be possible to run Docker container from a github action?
Yes. this is a feature.
08:32:16
@mic92:nixos.dev@mic92:nixos.devI don't have a concrete example to point you to, but I have seen this08:32:34
@lewo:matrix.orglewoI meant, building all example and running them from a Github action.08:32:46
@lewo:matrix.orglewo * I meant, building all examples and running them from a Github action.08:32:52
@mic92:nixos.dev@mic92:nixos.devI think there was a docker daemon running as well?08:33:10
@lewo:matrix.orglewoI don't have any idea since i rarely use github actions08:33:43
@mic92:nixos.dev@mic92:nixos.devYou can also push containers to github's registry and than pull them in the next step08:33:46
@mic92:nixos.dev@mic92:nixos.dev zimbatm: might know this. 08:34:02
@lewo:matrix.orglewo Mic92: yep, that would actually be possible 08:34:09

Show newer messages


Back to Room ListRoom Version: 6