IntelliJ IDEA (/PyCharm) + Docker + GAE (gcloud). How to use GAE SDK under docker container?

已回答

Few days ago I decided to redefine my development process by using Docker in favour of consistency between dev and production envs. Thanks to official Docker plugin for IntelliJ IDEA it is possible. And works well with PHP projects as well as Node and Python, with pip installed libs. 

But, I can't figure out how to point out to IDE to Google App Engine SDK folder inside the container, is it possible? 

Of course, I could hold SDK locally as well as Python in virtualenv, but it sounds wrong in Docker concepts. Isn't it? 

1

I have this same problem a year later!

1

I'm trying to get GAE set up for use with a Docker container, not a virtual environment.

This is to further isolate my (and my colleagues') dev environment from my host machine. (In OSX you can get yourself into a weird state without the ability to install any virtual environments.)

0

Hi E Tarasoff once again,

We will investigate if there is some workaround, but it is definitely not supported out of the box at the moment.

0

Any update on this? might be supported already? if the answer it not, I would like to know if there is any ad-hoc way to map required ports on the docker container in order to be able to run/debug GAE apps within docker with pycharm. Thanks in advance.

0
Hi,
According to the thread on our issue tracker, the feature has yet to be made available. Here is the link to the request: https://youtrack.jetbrains.com/issue/PY-32512/Use-GAE-inside-a-docker-container. Also, the thread has an existing workaround, but the breakpoints won't work. Please vote for it to raise its relevance and receive updates.
1

请先登录再写评论。