Dockerless python and libraries

48 views
Skip to first unread message

Jeff Schnitzer

unread,
Aug 7, 2015, 11:44:01 PM8/7/15
to Google App Engine
I'm a little puzzled how this is intended to work. In sandboxed env, I specified 'libraries:' to get PIL. This appears to be ignored in the world of Managed VMs, and the documentation suggests that I update the Dockerfile which is created in my project dir. However, when doing a dockerless deploy (which is AWESOME thank you!) it creates no such file. I can't figure out exactly what I'm supposed to do.

Are libraries a pending feature or am I just missing something obvious?

Thanks,
Jeff

pdknsk

unread,
Aug 8, 2015, 1:42:18 AM8/8/15
to Google App Engine, je...@infohazard.org
However, when doing a dockerless deploy (which is AWESOME thank you!) it creates no such file. I can't figure out exactly what I'm supposed to do.

The file is created when you use -gcloud preview app run- not deploy. The documentation is a bit confusing on this. Alternatively, the default file for each runtime is in google-cloud-sdk/./lib/googlecloudsdk/appengine/dockerfiles/ also.

The libraries concept doesn't apply because the managed VM has full access to the system. If the library is installed, it can be imported.

pdknsk

unread,
Aug 8, 2015, 1:49:21 AM8/8/15
to Google App Engine, je...@infohazard.org
The libraries concept doesn't apply because the managed VM has full access to the system. If the library is installed, it can be imported.

I meant the runtime has full access.

Jeff Schnitzer

unread,
Aug 8, 2015, 12:44:28 PM8/8/15
to pdknsk, Google App Engine
Ah, thanks! Works great.

If it helps anyone, adding PIL is simply this Dockerfile:

FROM gcr.io/google_appengine/python-compat

RUN apt-get update && apt-get install -y python-imaging

ADD . /app
Reply all
Reply to author
Forward
0 new messages