You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, thanks for creating the most complete developer environment I've found that runs fully in the web browser.
I've created a quite modified docker container that adds the go programming language, the helix text editor, nu shell, and the lf terminal file explorer to the environment. The code is here, and the live environment is here. My image also uses alpine linux instead of debian since alpine has more and newer packages (helix does not exist in the debain repos, nushell does not exist in the debian repos, and go has an older version in debain repos). 2nd note: I'm happy to break these into separate issues if you want.
Below is a list of issues that I'm having in order of importance. Note that everything below seems to work fine when I run the docker container locally with the command sudo docker build . --file dockerfiles/debian_mini --tag "debian_mini"; sudo docker run -it debian_mini.
Go, gopls (the language server for go), and lf do not work
I think that this is caused by part of the go startup code, since all of these tools are at least partially written in go.
Nushell does not start
When I try to start nushell with the nu command, after being prompted about wether I should create the default configs in my config directory, I get the error written repeated forever in the console:
These things don't affect me, although they still seem to be inconsistencies between how the container works when it is ran with webvm compared to when it is ran with docker.
USER root
Adding USER root in the dockerfile changes the user of the startup shell to root in docker, but doesn't appear to do anything in webvm (whoami still outputs user).
Doas
Setting up doas, and running doas sh in the container allows an unprivileged shell to get superuser privileges in docker, but creates the following error in webvm:
doas: Operation not permitted
Sudo
Setting up sudo and running sudo sh in the container allows an unprivileged shell to get superuser privileges in docker, but in webvm, it just asks for the user password, and then creates the following error:
sudo: error in event loop: Function not implemented
sudo: unexpected child termination condition: 0
The text was updated successfully, but these errors were encountered:
godalming123
changed the title
Go and lf executable do not work when installed from the alpine linux
Go code, root access, and nushell do not work in an alpine linux container I've created
Jan 18, 2025
Thanks for getting in touch, another member of our team will be in touch about the various bugs. Please understand that it might take a while for all these issues to be identified and solved.
godalming123
changed the title
Go code, root access, and nushell do not work in an alpine linux container I've created
Go code, and nushell do not work in an alpine linux container I've created
Jan 18, 2025
Accessing root, on the other hand, is an easy fix. Just use su.
Thanks, turns out that /bin/su doesn't have setuid on by default in alpine linux, so this just needs me to add 1 line to the dockerfile to fix: RUN chmod +s /bin/su
Firstly, thanks for creating the most complete developer environment I've found that runs fully in the web browser.
I've created a quite modified docker container that adds the go programming language, the helix text editor, nu shell, and the lf terminal file explorer to the environment. The code is here, and the live environment is here. My image also uses alpine linux instead of debian since alpine has more and newer packages (helix does not exist in the debain repos, nushell does not exist in the debian repos, and go has an older version in debain repos). 2nd note: I'm happy to break these into separate issues if you want.
Below is a list of issues that I'm having in order of importance. Note that everything below seems to work fine when I run the docker container locally with the command
sudo docker build . --file dockerfiles/debian_mini --tag "debian_mini"; sudo docker run -it debian_mini
.Go, gopls (the language server for go), and lf do not work
All of these programs fail with the same error:
I think that this is caused by part of the go startup code, since all of these tools are at least partially written in go.
Nushell does not start
When I try to start nushell with the
nu
command, after being prompted about wether I should create the default configs in my config directory, I get the error written repeated forever in the console:Things that don't affect me
These things don't affect me, although they still seem to be inconsistencies between how the container works when it is ran with webvm compared to when it is ran with docker.
USER root
Adding
USER root
in the dockerfile changes the user of the startup shell to root in docker, but doesn't appear to do anything in webvm (whoami
still outputsuser
).Doas
Setting up doas, and running
doas sh
in the container allows an unprivileged shell to get superuser privileges in docker, but creates the following error in webvm:Sudo
Setting up sudo and running
sudo sh
in the container allows an unprivileged shell to get superuser privileges in docker, but in webvm, it just asks for the user password, and then creates the following error:The text was updated successfully, but these errors were encountered: