| 26 Jul 2021 |
Domen KoΕΎar | ποΈ | 16:16:54 |
| Czen joined the room. | 17:46:42 |
| 27 Jul 2021 |
Ebrahim | Hello,
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 |
Robert 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 |
Robert Hensing (roberth) | do you use dockerTools? | 22:58:14 |
Ebrahim | 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 |
Robert Hensing (roberth) | ok, I've had no issues creating bind mounts into such images | 23:00:47 |
Ebrahim | 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 |
Robert Hensing (roberth) | is the config file location not specified as an environment variable or command line option? | 23:09:33 |
Robert Hensing (roberth) | you'll want to load it from a non-store path if you need to inject it via a docker bind mount | 23:10:24 |
Robert Hensing (roberth) | alternatively, you could use arion to treat the whole docker-compose file as a nix-built unit | 23:11:18 |
Ebrahim | 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 |
Robert Hensing (roberth) | env and/or option is nice if you want to support other deployment types | 23:12:31 |
Ebrahim | 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 |
Robert Hensing (roberth) | ποΈ | 23:14:01 |
| 28 Jul 2021 |
Ebrahim | 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 | dearrude: skopeo | 01:44:45 |
infinisil | dearrude: E.g. check out https://github.com/niteoweb/nix-docker-base/blob/1d1f5a46300c7af10eb33baef69f2ae970e133b4/scripts/image-update#L65-L101 | 01:46:01 |
Mic92 | Redacted or Malformed Event | 05:13:43 |
| LIKHITH SAI GANESH joined the room. | 16:08:55 |
| 29 Jul 2021 |
| papojari π³οΈβπ joined the room. | 12:21:52 |
Amine 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 | using --network path/ seems to assume flake usage | 15:33:51 |
Amine Chikhaoui | (using nixops master branch) | 15:38:17 |
Amine Chikhaoui | oh 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 π³οΈβπ left the room. | 18:48:55 |
| 30 Jul 2021 |
Robert Hensing (roberth) | adisbladis: how do you feel about making the state storage interface per-deployment? | 14:36:44 |
Robert Hensing (roberth) | (nixops) | 14:37:22 |
adisbladis | 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 |
Robert Hensing (roberth) | right now the only thing you can realistically do in a plugin is copy the entire db | 14:39:21 |