!VhbWwlUdjHkamKnfrK:nixos.org

Nix: Cloud Native

248 Members
56 Servers

Load older messages


SenderMessageTime
14 Feb 2022
@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
@mic92:nixos.dev@mic92:nixos.devBut maybe do some research. I think there are tons of example easily available.08:34:32
@mic92:nixos.dev@mic92:nixos.devIt's a quite common use case08:34:42
@mic92:nixos.dev@mic92:nixos.devI recently also added podman as an unprivileged services in one ci system. 08:36:10
@mic92:nixos.dev@mic92:nixos.devI needed it for docker-compose08:36:17
@mic92:nixos.dev@mic92:nixos.devThere are also nix-shell envs available for this08:36:27
@mic92:nixos.dev@mic92:nixos.devThis would be nice for local testing as well08:36:34
@mic92:nixos.dev@mic92:nixos.dev * I recently also added podman as an unprivileged service in one ci system.08:36:56
@mic92:nixos.dev@mic92:nixos.devhttps://gist.github.com/adisbladis/187204cb772800489ee3dac4acdd9947 08:37:31
@lewo:matrix.orglewowow, cool!08:39:30
@zimbatm:numtide.com@zimbatm:numtide.com lewo: each "job" in Github Actions spawns an ephemeral VM, with a ton of stuff pre-installed on it. Part of that already includes docker and docker-compose. Each "step" in a job is just a command that's running in this machine. So you can have one step building all your containers, and then a step that docker load -i and runs docker-compose or whatever afterwards. 09:21:07
@lewo:matrix.orglewo zimbatm: thx for the explanation!
This should then be quite easy to run all example containers ;)
09:27:33
@test:boba.best@test:boba.best changed their display name from Tseb to Tseb (Old).12:52:32
18 Feb 2022
@test:boba.best@test:boba.best removed their profile picture.11:29:13
@test:boba.best@test:boba.best removed their display name Tseb (Old).11:55:30
@test:boba.best@test:boba.best left the room.13:08:16
23 Feb 2022
@lewo:matrix.orglewoFYI, a small PR to fix the OpenStack image: https://github.com/NixOS/nixpkgs/pull/16138813:25:58
@arianvp:matrix.orgArianhttps://twitter.com/ProgrammerDude/status/149620340436804403413:32:11
2 Mar 2022
@phaer:matrix.orgphaer set a profile picture.13:09:04
@phaer:matrix.orgphaer changed their display name from phaer to Paul Haerle.13:09:34
3 Mar 2022
@colemickens:matrix.org@colemickens:matrix.org changed their display name from colemickens 🏳️‍🌈 to colemickens.07:13:25
4 Mar 2022
@vika:fireburn.ruVika (she/her) joined the room.20:31:26

Show newer messages


Back to Room ListRoom Version: 6