Replies: 3 comments 4 replies
-
That is the default behavior. It is not the only behavior. You can configure where the temporary files are put. Use the |
Beta Was this translation helpful? Give feedback.
-
|
@rei-vilo – You mentioned that having a container would be helpful. How well does this approach by @tve work for you? |
Beta Was this translation helpful? Give feedback.
-
|
Update WRT mcsim and xsbug, which require a display server... If Unfortunately there's no stack trace, so I can't readily tell which directory it's trying to create and failing... (Why are almost all the error messages I see so terse? The release build of xsbug simply segfaults without even an error message...) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been having issues installing the Moddable SDK on my local system (running Linux Arch) plus I don't really like how much crud installing the SDK plus ESP-IDF produces, plus I like to be able to go back and rebuild a project years later when all the software has bit rotted. Soooo... docker...
I built a docker "tools" container to compile & build Moddable projects. I'm new with Moddable so I'm sure there are things that are wrong, missing or that can be done better. The main issue is that the SDK has the horrible practice of writing into its source tree every time you build something. And worse, it's not just temp files it puts there but it also produces executables/scripts "on-demand" [...]!
Long story short: https://gist.github.com/tve/c7c74adc5a3ec93511c634861e7e631d has the Dockerfile I use (builds Moddable SDK and ESP-IDF). There's an
env.shthat gets copied into the container image. And then there'smc.shwhich is the shell script I use to runmcconfiget.al.The container is a "tools" container, not a long running service. It runs just for the duration of mcconfig or other command. Your working directory is mapped into the container, the tools run and produce their output in your working dir, and then the container goes away. So it's just a way to encapsulate all the software.
Build the container like
docker build -t moddable-f Dockerfile-mcRunmcconfig(for example in the moddableexamples/pins/blink` dir) like:I'm currently having xsbug running beforehand (I do still have a local SDK install...) and it connects. I haven't tried without xsbug, I assume launching it in the container may run into issues to find the X server, so there's more work ahead.
Is anyone else interested in this?
Beta Was this translation helpful? Give feedback.
All reactions