Using Docker for development and sharing dependenc

2020-07-22 06:43发布

Say we have a Docker container with all the dependencies that our application needs, and the code for the application lives on a shared volume. This seems to be a common setup to reasonably isolate the application and its dependencies.

Now say we edit the code located on the shared volume using a locally installed IDE. How can the IDE find the dependencies (which are not installed on the shared volume) for features such as auto-completion to work?

I'm aware of certain IDEs such as PyCharm that has built-in support for Docker but I'm curious if there is another method for "sharing" dependencies. Do some people just NFS mount the whole container onto the host or does that go against the Docker philosophy?

0条回答
登录 后发表回答