Docker entrypoint being ignored when remote debugging
已回答
I'm trying to develop in a container via the remote interpreter capability in PyCharm. As an example, I've set up a run configuration that executes pytest for all tests in the working directory. My development Docker image is configured with an ENTRYPOINT and CMD. The ENTRYPOINT points to a bash script `entrypoint.sh`, that after doing some setup, runs
exec "$@"
I believe I've configured Docker properly within PyCharm, but when the test is run, it appears like the entrypoint is being overridden by PyCharm and skipped entirely. Is this expected behavior? I would assume PyCharm is just passing in a command to docker.
请先登录再写评论。
Hi Dean! Please check this answer: https://youtrack.jetbrains.com/issue/PY-22909#comment=27-1963873 and vote for PY-21733 if you find it useful. Thank you!
Pavel,
Thanks for the pointer to using docker-compose. Simply switching to that worked. Configuring with the standard docker interface has some bugs as well (volume mounts entered into the UI get written incorrectly to the XML file), so this was much better.
Dean