just-containers / s6-overlay

s6 overlay for containers (includes execline, s6-linux-utils & a custom init)
Other
3.73k stars 212 forks source link

How to create something similar like cont-init if this one is deprecated ? #560

Closed asquel closed 9 months ago

asquel commented 9 months ago

Hi,

Before the new version of s6 and the bundles it was possible to have a "fix" script that would run at the beginning no matter what. Now, is it possible to add script into the base bundle ? (Cannot find doc about that anywhere sorry). (I have a docker base image for multiple teams and I this script would be in the docker base image, so they would not see it, but they need to depend on it)

Thx in advance for your help !

skarnet commented 9 months ago

Maybe you could have looked just a bit harder?

asquel commented 9 months ago

It was not meant as an offense, I took the time to read the entire manual of the s6-rc, so I looked hard :) (I changed the title, maybe my translation was wrong) In french i would have written you "Pas vraiment de remplacement pour cont-init ?" maybe it's less offending. I saw the cont-init is deprecated and this is why I didn't want to use it, because it would disapear one day ... And in the S6_STAGE2_HOOk, you said "use only if you understand really what is happening".

Thx for the answer.

skarnet commented 9 months ago

cont-init is deprecated in that it's not the recommended way of doing things anymore and we're not going to expand on it, but it's not going anywhere, we're not going to delete it. If it's what you need, use it to your heart's content. 😉