| 9 Jan 2024 |
samasaur | well nix build . && ./result/bin/remote-text-web-client runs fine | 01:32:16 |
@julia:the-apothecary.club | is this purely on linux? | 01:32:33 |
samasaur | yeah | 01:32:38 |
@julia:the-apothecary.club | idk what docker's "exec format error" means but is there a nix store in the docker image? | 01:32:51 |
samasaur | i think so | 01:33:00 |
@julia:the-apothecary.club | cause my guess would be it's probably looking for the dynamic linker in the nix store | 01:33:03 |
@julia:the-apothecary.club | * cause my guess would be it's probably looking for the dynamic linker in the nix store which might not exist | 01:33:08 |
samasaur | i am also not super confident with docker, and I don't know how to get the file out of docker | 01:33:16 |
@julia:the-apothecary.club | * cause my guess would be it's probably looking for the dynamic linker in the nix store which might not exist in the docker image | 01:33:18 |
@julia:the-apothecary.club | can you run bash inside of docker? | 01:33:30 |
@julia:the-apothecary.club | * can you run bash inside of docker, and then run file on it there? | 01:35:19 |
samasaur | my understanding is that i would run `docker run -it remote-text-web-client:j15za80qwaiq7nla41fln3sxn4rcrbaz | 01:36:08 |
samasaur | * my understanding is that i would run `docker run -it remote-text-web-client:j15za80qwaiq7nla41fln3sxn4rcrbaz` to launch a terminal, but that gives the exec format error before a shell opens | 01:36:21 |
samasaur | * my understanding is that i would run docker run -it remote-text-web-client:j15za80qwaiq7nla41fln3sxn4rcrbaz to launch a terminal, but that gives the exec format error before a shell opens | 01:36:37 |
samasaur | maybe i can prevent it from running the configured Cmd | 01:36:52 |
@julia:the-apothecary.club | I think docker run -it <imagename> /bin/sh should do that | 01:37:06 |
samasaur | ah so the other issue is that /bin/sh and /bin/bash don't exist in this container | 01:38:30 |
samasaur | okay here's what's in the docker image | 01:41:41 |
samasaur |  Download image.png | 01:41:51 |
@julia:the-apothecary.club | 201B seems very... small? | 01:44:10 |
samasaur | yeah it's just a little script | 01:44:42 |
samasaur | that runs pnpm run start or something | 01:44:54 |
@julia:the-apothecary.club | what's the shebang point to | 01:44:58 |
samasaur | checking now, i have managed to get into a bash shell in the docker image with coreutils on my path | 01:45:27 |
samasaur | ah damn i think ur right | 01:46:16 |
samasaur | the shebang is /usr/bin/env bash and there is no /usr/bin/env | 01:46:31 |
@julia:the-apothecary.club | probably want to add the patchshebangs hook to your package build then | 01:47:06 |
samasaur | is that a thing I can do? | 01:47:22 |
samasaur | I was just going to change the little script to point to the bash package | 01:47:31 |
@julia:the-apothecary.club | yeah that'll automatically rewrite the shebangs to point to nix store paths | 01:47:35 |