-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating packages at first run leads to startup failures in air gapped environment #255
Comments
Hi, I'm absolutely with you when you say
but unfortunately this is not the (ioBroker) reality. The idea of implementing the auto package update at the very first start of a new container is, that I wanted to make sure the container launches with the newest versions of depending linux packages included in the ioBroker Docker image. Back to your issue, I will do some tests to figure out where the problems are when ioBroker is running without a internet connection. I always thought it will simply skip the package updates when there is no internet connection available.
If you mean the implemented startup scripts this will not work as the scripts are called within the last step of the startup script. This will be way to late. Regards, |
Hey @buanet ! I like upstream projects like yours and so I try to avoid building own images. Maybe you will a prober solution somedays. Actually it is not that important to me. Anyway, thanks for sharing this image! Regards, Martin |
I added a ENV Regards, |
The image creates the file /opt/.firstrun during build. Later on when starting the image the corresponding start script triggers the package update.
I think that this behaviour is not expected when working with containers as per default a container is stateless unless you mount some volumes. If the user wants the latest packages to be installed then he should request a new image build.
When working in air gapped environments the situation is even worse. IOBroker won't start when the container get's killed and restarted.
What do you thing about this? Are there any reasons for this feature that I haven't considered?
My idea is to workaround this with a custom startup script which removes the /opt/.firstrun file.
The text was updated successfully, but these errors were encountered: