-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[BUG] Docker rebuilds the app every time the container is restarted #877
Comments
If you're enjoying Dashy, consider dropping us a ⭐ |
#799 is becoming very popular :) |
Also, the subtitle needs to be changed, because it's kinda funny how it says "Your new dashboard is now up and running" before it acually rebuilds the app, which can take a long time depending on the host. |
Hello, I love the app thanks a lot @Lissy93 for sharing it <3 I found this problem too but for me was related with the amount resources that the container was using in the current release (about ~500Mb RAM), that for a dashboard is quite a bit, actually is the most RAM hungry container in my lab. After checking the Dockerfile I noticed that the final run-time command for the container is I just created a PR with a Dockerfile that just init the container with |
PR has been merged so should be solved next release, meanwhile you can build your own image from Dockerfile at master |
This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days. |
I was wondering the same thing, I experimented for a while with doing just |
This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days. |
This issue was automatically closed because it has been stalled for over 6 weeks with no activity. |
Using Reverted this. |
Hi, yes you are right! |
@GGORG0 FYI in the next major version an overhaul to dashy, we will remove the need to rebuild the application for every change, then the docker container does not have to rebuild on every start. If it really bothers you I recommand changing the start command in the container settings to |
I think was caught up this is issue. My main instance of Dashy died, and I was trying to spin up a backup to get me by until I could get my main instance back up. I don't think that I need support, I'm just putting this out there in case it helps someone else with trouble getting Dashy to run. New Docker versions: Each time it started the Config File check passed.
I'm trying to get it it running again, using the suggestions from the various threads, such as GUI Build, Documentation suggests that I need to map a volume for the I confirmed read/write access from inside the containers and outside the containers. Restore from Cloudbackup worked - temporarily.. but restarting the container wasn't persistent, and even reloading the webpage wouldn't save the config. I tried save locally, it did not help make the config anymore persistent. Last thing I did was check the formatting of the conf.yml The one I was having trouble with was formatted like this (JSON?):
and if I changed it to this style which I harvested from the cloud backup (Step 1: restore backup, Step 2:download file)
Did this file format change between 2.1.1 and 2.1.2? By using the correct format for conf.yml, Dashy runs, sees the config, and is persistent. |
Hey @breeegz, There's an update coming very soon (likely this Sunday) in #1528 which will fix that. Since it will remove the need for Dashy to ever rebuild between config changes, and instead fetch the latest conf dynamically. |
Environment
Self-Hosted (Docker)
System
Raspberry Pi OS Bullseye; Docker-ce 20.10.17
Version
2.1.1
Describe the problem
Every time I start the docker container, the app rebuilds itself. I'm unable to access the interface, because my host (Raspberry Pi 4 2GB) is not powerful enough and the system crashes every time. Docker containers should build the app at image build time (in the Dockerfile, before it is published to the registry) or at least cache the build. That makes container startup instant every single time.
I'm suprised no one reported this before.
Additional info
(I normally run with compose, but here i ran it in interactive mode to show the output)
Please tick the boxes
The text was updated successfully, but these errors were encountered: