-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Tycmd doesn’t work in docker container #91
Comments
I was also just trying to get this to work but with no luck. I'm not sure what tytools needs access to under the hood to work properly. If we could get some help making this work, it would be awesome! |
Hi, I don't use docker. Can you give me a step-by-step procedure to make a container with tytools? Regards, Niels |
Quick and dirty, this should get you to the point at which I left it: Install Docker
Docker should now be installed, look at the output, you may need to run something like Make a new folder, create a file inside called
This describes how the image is built. It should install tytools and platformio. You can then build the image by entering that new folder and running:
The image should build, and you should be able to launch a container with:
The The other bits you may need to add are: Obviously there's something that tytools is relying on that those 2 additional arguments didn't seem to be doing for me. Appreciate you looking into this! I guess I'll also add a quick comment on why docker integration is useful. Docker images contain and isolate all of the dependencies needed for some function/service. In an environment when you're constantly starting with fresh machines, installing dependencies and tools on the base OS can potentially have conflicts with other things. Docker allows any docker-compatible host to run a tool/service without having to worry about any potential conflicts, dependencies, etc. |
Thanks for the instructions :) I'll look into this over the weekend. |
Did you end up getting a chance to look into this? I'm happy to run some additional tests. Since Docker is running in a containerized environment, I'm hoping it's just some service / log / directory that needs to be passed into the container to make it work. If you have any ideas, pass them on and I can try them out! I think it may be something related to libhs, since it seems like tytools relies on it? |
@zerotohero That works for me. |
@1saeed Thanks for figuring that out! Awesome! |
@1saeed I realized that when I do this, I still need to mount
On the base OS, this works fine. Is there still some additional mount that is necessary, in addition to |
In case it helps with debugging, I notice what ends up in This is
And this is
When the reset is issued from the host, it looks like the device disconnects, reconnects, and then disconnects again before finally becoming available. From the container, there is only 1 device disconnect. The dmesg log is the same in the container and on the host, btw. |
Even though tycmd works at the computer which host the docker container, it doesn’t work in the docker container.
I am able to see the device in the docker container using
ls -l /dev/
.I have included the 00.teensy udev rules.
Any thoughts on this?
The text was updated successfully, but these errors were encountered: