wernight / docker-codiad

Web-based cloud IDE and code editor with minimal footprint and requirements.
https://hub.docker.com/r/wernight/codiad/
8 stars 4 forks source link

WIP: Upgrading to Alpine 3.6 + Adding back the UID/GID capability #4

Closed dduportal closed 7 years ago

dduportal commented 7 years ago

Signed-off-by: Damien DUPORTAL damien.duportal@gmail.com

Hello there!

I'm using your docker image for Codiad, and I had the need to move to the alpine, AND having to use GUI/UID tuning.

So please find here a 1st version with a full upgrade to alpine Linux 3.6, released recently, and the commands usermod and groupmod are now installed (package shadow introduced in 3.6 repo).

Work to DO:

wernight commented 7 years ago

Instead of tini, may use dumb-init which works on Alpine (see my images as some use it).

wernight commented 7 years ago

Looks good so far.

dduportal commented 7 years ago

Hello !

I propose to manage the init reaper subject on another PR, to go step by step if you agree ?

FYI, tini already exists in APK repository since Alpine 3.4 (ref. https://pkgs.alpinelinux.org/packages?name=tini&branch=&repo=&arch=&maintainer=), but dumb-init is also a good fit (never used it, so happy to try and learn:) ).

I need to update doc then, in order to make this PR mergable.

wernight commented 7 years ago

Noting that tini is also a good fit:

@hakre I believe the dumb-init folks were not aware of Tini when they wrote it, so it's not like they found something fundamentally wrong with Tini that they wanted to fix with dumb-init :). There are a few feature differences between the two. For example they support signal rewriting and Tini doesn't, but Tini supports subreapers and they don't. Overall, though, if you're looking for zombie reaping and that's it, either will do.