!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

209 Members
59 Servers

Load older messages


SenderMessageTime
9 Jan 2024
@julia:the-apothecary.club@julia:the-apothecary.club
In reply to @samasaur:matrix.org
nix build . --sandbox still works on Darwin, so I think that's not it

actually, is this with a clean nix store / new build

because npmDepsHash implies to me the npm deps get put to the store separately; it's not gonna try redownload if it's specified already.
(not 100% on certain that's how it works, but I'd be surprised if it wasn't)

01:26:24
@julia:the-apothecary.club@julia:the-apothecary.club
In reply to @samasaur:matrix.org
nix build . --sandbox still works on Darwin, so I think that's not it
*

actually, is this with a clean nix store / new build?

because npmDepsHash implies to me the npm deps get put to the store separately; it's not gonna try redownload if it's specified already.
(not 100% on certain that's how it works, but I'd be surprised if it wasn't)

01:26:29
@samasaur:matrix.orgsamasauroh true01:26:49
@samasaur:matrix.orgsamasaur also despite it building on Linux, when i put it in a Docker image and tried to run the docker image, I still got exec format error 01:27:17
@samasaur:matrix.orgsamasaurso something else is wrong01:27:30
@julia:the-apothecary.club@julia:the-apothecary.club not particularly certain with docker things, what does file report? 01:31:11
@samasaur:matrix.orgsamasaur well nix build . && ./result/bin/remote-text-web-client runs fine 01:32:16
@julia:the-apothecary.club@julia:the-apothecary.clubis this purely on linux?01:32:33
@samasaur:matrix.orgsamasauryeah01:32:38
@julia:the-apothecary.club@julia:the-apothecary.clubidk what docker's "exec format error" means but is there a nix store in the docker image?01:32:51
@samasaur:matrix.orgsamasauri think so01:33:00
@julia:the-apothecary.club@julia:the-apothecary.clubcause my guess would be it's probably looking for the dynamic linker in the nix store01:33:03
@julia:the-apothecary.club@julia:the-apothecary.club * cause my guess would be it's probably looking for the dynamic linker in the nix store which might not exist01:33:08
@samasaur:matrix.orgsamasauri am also not super confident with docker, and I don't know how to get the file out of docker01:33:16
@julia:the-apothecary.club@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 image01:33:18
@julia:the-apothecary.club@julia:the-apothecary.clubcan you run bash inside of docker?01:33:30
@julia:the-apothecary.club@julia:the-apothecary.club * can you run bash inside of docker, and then run file on it there? 01:35:19
@samasaur:matrix.orgsamasaurmy understanding is that i would run `docker run -it remote-text-web-client:j15za80qwaiq7nla41fln3sxn4rcrbaz01:36:08
@samasaur:matrix.orgsamasaur * 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:matrix.orgsamasaur * 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:matrix.orgsamasaur maybe i can prevent it from running the configured Cmd 01:36:52
@julia:the-apothecary.club@julia:the-apothecary.club I think docker run -it <imagename> /bin/sh should do that 01:37:06
@samasaur:matrix.orgsamasaur ah so the other issue is that /bin/sh and /bin/bash don't exist in this container 01:38:30
@samasaur:matrix.orgsamasaurokay here's what's in the docker image01:41:41
@samasaur:matrix.orgsamasaurimage.png
Download image.png
01:41:51
@julia:the-apothecary.club@julia:the-apothecary.club201B seems very... small?01:44:10
@samasaur:matrix.orgsamasauryeah it's just a little script01:44:42
@samasaur:matrix.orgsamasaur that runs pnpm run start or something 01:44:54
@julia:the-apothecary.club@julia:the-apothecary.clubwhat's the shebang point to01:44:58
@samasaur:matrix.orgsamasaurchecking now, i have managed to get into a bash shell in the docker image with coreutils on my path01:45:27

Show newer messages


Back to Room ListRoom Version: 6