!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1250 Members
NixOS Deployment tooling309 Servers

Load older messages


SenderMessageTime
26 Jul 2021
@domenkozar:matrix.orgDomen KoΕΎarπŸ‘οΈ16:16:54
@czen:honk.liCzen joined the room.17:46:42
27 Jul 2021
@dearrude:nitro.chatEbrahimHello, I'm trying to use poetry2nix to dockerize my software. The problem that I'm facing is that: Is there any way to mount a config file to docker image before running the container? Since it's all the source code are turned into a nix package, I'm gussing its files would be immutable.22:22:10
@roberthensing:matrix.orgRobert Hensing (roberth) dearrude: for mutable configs, you should use a file path outside the store. Docker will have no problem mounting a config file into such a location 22:57:28
@roberthensing:matrix.orgRobert Hensing (roberth) do you use dockerTools? 22:58:14
@dearrude:nitro.chatEbrahim
In reply to @roberthensing:matrix.org
do you use dockerTools?
Yes. Here it is:
https://github.com/DearRude/personal-bot/blob/nix-build/docker.nix
22:59:05
@roberthensing:matrix.orgRobert Hensing (roberth)ok, I've had no issues creating bind mounts into such images23:00:47
@dearrude:nitro.chatEbrahim
In reply to @roberthensing:matrix.org
ok, I've had no issues creating bind mounts into such images
But since the mount location is in a /nix/store/**** do I have to update my docker-compose every time there's a new build of my image?
23:07:43
@roberthensing:matrix.orgRobert Hensing (roberth)is the config file location not specified as an environment variable or command line option?23:09:33
@roberthensing:matrix.orgRobert Hensing (roberth)you'll want to load it from a non-store path if you need to inject it via a docker bind mount23:10:24
@roberthensing:matrix.orgRobert Hensing (roberth)alternatively, you could use arion to treat the whole docker-compose file as a nix-built unit23:11:18
@dearrude:nitro.chatEbrahim
In reply to @roberthensing:matrix.org
is the config file location not specified as an environment variable or command line option?
Oh I mean it could be. I never thought of changing how configfile be loaded. πŸ˜…
23:11:40
@roberthensing:matrix.orgRobert Hensing (roberth)env and/or option is nice if you want to support other deployment types23:12:31
@dearrude:nitro.chatEbrahim
In reply to @roberthensing:matrix.org
env and/or option is nice if you want to support other deployment types
I'll probably add an env var since it's easier to be worked with within docker. Thanks :)
23:13:43
@roberthensing:matrix.orgRobert Hensing (roberth)πŸ‘οΈ23:14:01
28 Jul 2021
@dearrude:nitro.chatEbrahim What's a decent way to push images build by dockerTools to a container registries in a pipeline (like Github actions)? 00:19:33
@infinisil:matrix.orginfinisildearrude: skopeo01:44:45
@infinisil:matrix.orginfinisildearrude: E.g. check out https://github.com/niteoweb/nix-docker-base/blob/1d1f5a46300c7af10eb33baef69f2ae970e133b4/scripts/image-update#L65-L10101:46:01
@mic92:nixos.devMic92Redacted or Malformed Event05:13:43
@likhith2003:matrix.orgLIKHITH SAI GANESH joined the room.16:08:55
29 Jul 2021
@papojari:artemislena.eupapojari πŸ³οΈβ€πŸŒˆ joined the room.12:21:52
@amine.chikhaoui:matrix.orgAmine Chikhaoui Anyone knows what happend to nixops create, what's the proper way to do nixops create -d foo foo.nix ? 15:33:24
@amine.chikhaoui:matrix.orgAmine Chikhaouiusing --network path/ seems to assume flake usage15:33:51
@amine.chikhaoui:matrix.orgAmine Chikhaoui(using nixops master branch)15:38:17
@amine.chikhaoui:matrix.orgAmine Chikhaouioh seems it needs --network path/ but with nixops.nix for "classic" deployments, though it seems to fail the eval in https://github.com/NixOS/nixops/blob/2e67d89d126af9d2bf702da13efe73fbd471a5ec/nix/eval-machine-info.nix#L53 15:42:41
@papojari:artemislena.eupapojari πŸ³οΈβ€πŸŒˆ left the room.18:48:55
30 Jul 2021
@roberthensing:matrix.orgRobert Hensing (roberth) adisbladis: how do you feel about making the state storage interface per-deployment? 14:36:44
@roberthensing:matrix.orgRobert Hensing (roberth)(nixops)14:37:22
@adis:blad.isadisbladis
In reply to @roberthensing:matrix.org
adisbladis: how do you feel about making the state storage interface per-deployment?
Could you clarify?
14:38:39
@roberthensing:matrix.orgRobert Hensing (roberth)right now the only thing you can realistically do in a plugin is copy the entire db14:39:21

Show newer messages


Back to Room ListRoom Version: 6