-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 Setup #835
Comments
Nice work @bastilimbach I've thinking about an idea. It wold be cool if we can integrate an arm image like Debian + Pixel and run the test suite there integrated directly in Travis or other CI. Are you have some idea how we can do it this? |
Thanks @roramirez 😊 |
No is run the test suite in build process of container. The idea is to equals architecture and OS for "supported system", example Raspbian Jessie + Pixel. Is create a container like some arquitecture and run the test suite there like now in Travis. |
Ok but I don't get the point, why this is needed. If the OS has Docker installed, the application will work. There is just one possible event, where the application doesn't work and that's when the CPU architecture is ARM or x86 and the Docker Image uses a non ARM or x86 base os. Or what do you mean with |
I mean with "equals architecture" for example, have a Docker Image with Raspbian Jessie + Pixel and run the test suite in this defined container like as we are doing in Travis. |
Ah, I think I get it. So we create different Dockerfiles which have all different kinds of OS, right? Then we run a little test suit and see if electron is starting correctly etc. And on every new release, we run these Docker Images to test different operating systems and we can have a little "supported operation systems" section in the readme?! I think we can accomplish this within travis ci. I need to check if I'm right but I think you can have "stages" which can be executed in different docker containers. |
@roramirez Take a look at this: https://docs.travis-ci.com/user/multi-os/ |
Hi,
trying to setup docker in server only mode. Executing
docker run -d --publish 80:8080 --restart always --volume ~/magic_mirror/config:/opt/magic_mirror/config --volume ~/magic_mirror/modules:/opt/magic_mirror/modules --name magic_mirror MichMich/MagicMirror
results in
docker: Error parsing reference: "MichMich/MagicMirror" is not a valid repository/tag: repository name must be lowercase.
Next try with lowercase
docker run -d --publish 80:8080 --restart always --volume ~/magic_mirror/config:/opt/magic_mirror/config --volume ~/magic_mirror/modules:/opt/magic_mirror/modules --name magic_mirror michmich/magicmirror
results in
So where is the image to find in the docker store?
I did the build myself with
docker build -t magic_mirror .
and now I can start the container.
Two Problems:
For accessing the container with "localhost:8080" as described for the manual setup you have to change the parameter
--publish 80:8080
to--publish 8080:8080
With every start of the container the mounted files outside of the container are overwritten with the files from inside the container. This is already described in this pull request for the config-directory, same issue exists for the modules-directory.
Thanks,
Karsten.
The text was updated successfully, but these errors were encountered: