Matt Gowie
08/24/2021, 3:35 PM/rootfs/etc/profile.d/, which works when the container starts via a login shell, but it does not work if the container starts from within Spacelift which I assume is due to the fact that they pass a separate docker run command (makes sense).Matt Gowie
08/24/2021, 3:35 PMsdm listen --daemon command, which is necessary to connect to SDM resources within the container.Matt Gowie
08/24/2021, 3:36 PMMatt Gowie
08/24/2021, 4:48 PMErik Osterman (Cloud Posse)
08/24/2021, 4:57 PMErik Osterman (Cloud Posse)
08/24/2021, 4:58 PMErik Osterman (Cloud Posse)
08/24/2021, 4:58 PMprofile.d is meant for interactive login sessionsErik Osterman (Cloud Posse)
08/24/2021, 4:58 PMinit.d is meant for non-interactive sessionsMatt Gowie
08/24/2021, 4:59 PMinit.d. But it seems that didn’t do it either. I’m assuming because when the CMD is overwritten it then doesn’t call /usr/local/bin/init which results in not looping over /etc/init.dMatt Gowie
08/24/2021, 5:00 PMErik Osterman (Cloud Posse)
08/24/2021, 6:42 PMinit is just our "entrypoint" scriptErik Osterman (Cloud Posse)
08/24/2021, 6:42 PMJeremy G (Cloud Posse)
08/24/2021, 8:17 PMJeremy G (Cloud Posse)
08/24/2021, 8:20 PM-c boot. Boot detects whether or not there is a terminal attached, which is probably where you are seeing Spacelift diverge from running locally.
This is part of implementing some magic that makes it possible to pipe the output of Geodesic into a shell and have that cause Geodesic to install itself on the host.Jeremy G (Cloud Posse)
08/24/2021, 8:39 PMJeremy G (Cloud Posse)
08/24/2021, 9:38 PMentrypoint and cmd so you cannot get a daemon init to run via Docker config. You need to configure Spacelift to run the daemon. You can do that by including the daemon initialization in the
stack_defaults:
before_init:
configuration block in the source repo's .spacelift/config.yml . See https://docs.spacelift.io/concepts/configuration/runtime-configuration#before_-and-after_-hooksMatt Gowie
08/24/2021, 9:39 PMErik Osterman (Cloud Posse)
08/24/2021, 10:10 PMErik Osterman (Cloud Posse)
08/24/2021, 10:10 PMErik Osterman (Cloud Posse)
08/24/2021, 10:11 PMErik Osterman (Cloud Posse)
08/24/2021, 10:11 PMJeremy G (Cloud Posse)
08/24/2021, 10:12 PMErik Osterman (Cloud Posse)
08/24/2021, 10:21 PMErik Osterman (Cloud Posse)
08/24/2021, 10:21 PMErik Osterman (Cloud Posse)
08/24/2021, 10:22 PMErik Osterman (Cloud Posse)
08/24/2021, 10:22 PMMatt Gowie
08/24/2021, 10:29 PM