theia-ide / theia-apps

Theia applications examples - docker images, desktop apps, packagings
Apache License 2.0
1.04k stars 346 forks source link

[rust] Rust image runs as root. #335

Closed jchv closed 4 years ago

jchv commented 4 years ago

theia-full does not seem to run as root, fixed apparently in #56. So it seems likely that it should be possible to get theia-rust to run as a normal user.

jchv commented 4 years ago

Ah, I am at least partially mistaken, as it appears that in the case of the Rust image, there is some custom scaffolding going on that lets you use a user optionally. It is documented, though I am still a bit confused. Is it expected that the images may vary quite a bit in operation?

vince-fugnitto commented 4 years ago

Ah, I am at least partially mistaken, as it appears that in the case of the Rust image, there is some custom scaffolding going on that lets you use a user optionally. It is documented, though I am still a bit confused. Is it expected that the images may vary quite a bit in operation?

You make take a look at the rust readme and more specifically the section how it works where it describes setting up the user.

marcdumais-work commented 4 years ago

Is it expected that the images may vary quite a bit in operation?

Indeed, there is a fair amount of variation between the images. The Rust image might be the one that stands-out the most, having quite a bit of helper scripts around it. The biggest problem wioth this image is that it has not being building consistently for about 6 months now: https://github.com/theia-ide/theia-apps/issues/253 , apparently because of a weird toolchain issue. It did build for a little while a couple of months ago.

stale[bot] commented 4 years ago

This contribution has been automatically marked as stale due to inactivity, and it will be closed if no further activity occurs. Thank you for contributing to Theia!