!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

199 Members
57 Servers

Load older messages


SenderMessageTime
9 Jan 2024
@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
@samasaur:matrix.orgsamasaurah damn i think ur right01:46:16
@samasaur:matrix.orgsamasaur the shebang is /usr/bin/env bash and there is no /usr/bin/env 01:46:31
@julia:the-apothecary.club@julia:the-apothecary.clubprobably want to add the patchshebangs hook to your package build then01:47:06
@samasaur:matrix.orgsamasauris that a thing I can do?01:47:22
@samasaur:matrix.orgsamasaurI was just going to change the little script to point to the bash package01:47:31
@julia:the-apothecary.club@julia:the-apothecary.clubyeah that'll automatically rewrite the shebangs to point to nix store paths01:47:35
@julia:the-apothecary.club@julia:the-apothecary.club * yeah that'll automatically rewrite the shebangs to point to nix store paths, which means your script can work on-not-nix as well01:47:51
@samasaur:matrix.orgsamasaurwon't it work anyway if I point it to the nix bash01:48:24
@samasaur:matrix.orgsamasaur * won't it work anyway if I point it to the nix bash?01:48:25
@julia:the-apothecary.club@julia:the-apothecary.clubit'd work, just not if you don't have nix? which you may or may not care about01:49:04
@samasaur:matrix.orgsamasaurit should work, i think. because either you are building the package from the nix definition, in which case you have nix, or you are using this docker image, which will have that nix bash in it01:49:53
@julia:the-apothecary.club@julia:the-apothecary.clubok01:50:14
@samasaur:matrix.orgsamasauri guess it wouldn't work if you built it using npm normally but if you do that then you wouldn't have the script at all01:50:15
@samasaur:matrix.orgsamasaurokay well it did NOT work01:53:49
@samasaur:matrix.orgsamasaurhowever01:53:51

Show newer messages


Back to Room ListRoom Version: 6