-
Notifications
You must be signed in to change notification settings - Fork 55
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
docker-entrypoint.sh didn't copy the config file #49
Comments
docker-entrypoint.sh
didn't copy the config file
|
@Legion2 maybe I am wrong But the problem here is, the script end up didn't copy the |
I think it checks if there are files in the config directory by using |
Exactly! But MagicMirror repository already created the folder, therefore this checking will always return false (because |
|
Yes May I highlight several things
|
Ok I didn't know that. This breaks the check you can open a pr and propose a different method to check. But I don't know if it will be merged soon (see #48). |
yes, but if you start the container with
this will map But if you have any file in your host-dir, the copy will not run. It would be better to check if |
Also in docker-entrypoint.sh have other two checks, I am not sure if it would be better if it check the existence of the file rather than the emptiness of the folder. |
No. The first check copies the default-modules if the mapped directory from the host is empty, that's o.k. |
@khassel Yeah you are right 🤔 I didn't start docker in that way. I just copied the dockerfile into my environment start the docker. But I still wonder why the script |
The
|
Thanks However the checking is still invalid because the config folder exist in the original repository (it is for the special case) |
In docker-entrypoint.sh there is line that place the config file before the MagicMirror starts
But when the docker image is built
config.js
didn't appear. Therefore I guess thedocker-entrypoint.sh
didn't work as intended.The text was updated successfully, but these errors were encountered: