dldl / sphinx-preview

Sphinx preview in Atom
MIT License
5 stars 4 forks source link

Working version of the multi-path-multi-projects #15

Closed andreycizov closed 5 years ago

andreycizov commented 5 years ago

There's one thing to discuss: how do we manage the destruction of the created containers?

I am leaving this up to the maintainer, but currently all containers created are assigned the same label, so that it would be easy to remove them via command line.

hileef commented 5 years ago

I like this very much, awesome work ! 😃

I have a few suggestions :

Finally, I agree that we should get @Coac 's input on a container destruction/cleanup strategy. Maybe atom provides hooks for the plugin when it closes ?

andreycizov commented 5 years ago

So now we use find-free-port to find a free port, then put it into the container label. It allows for a better interaction between separate windows of Atom: e.g. if you've got the same folder opened in two windows at the same time, they'll reuse the same docker container in order to build it.

hileef commented 5 years ago

@andreycizov , thanks for all this work 🙂 !

@Coac , @quentinus95 , do you have access to a windows machine to test this ?

@Coac , I suggest that we create a new issue and PR for the container cleanup strategy, and merge this first, if you are okay with that.