python - can't run a pull queue handler inside a custom vm -


i have deployed hello world example of app.yaml, worker.yamland queue.yaml

runtime: python27 

since worker more complicated, need install third party pips , other specific dependencies opencv - need run handler within custom vm meaning dockerfile.

i want start simple, running worked before , "hello world" in simple python container. i've modified worker.yaml

service: worker api_version: 1 #runtime: vm # python27 runtime: custom vm: true # python27 instance_class: b1 threadsafe: yes manual_scaling:   instances: 1 network:   instance_tag: ssh   name: olympus-dev env_variables:   python_env: lab  handlers: - url: /.*   script: main.app  #libraries: #- name: jinja2 #  version: latest # 

and app.yaml

runtime: custom vm: true # python27 api_version: 1 threadsafe: true network:   instance_tag: ssh   name: olympus-dev env_variables:   python_env: lab  handlers: - url: /.*   script: main.app  #libraries: #- name: jinja2 #  version: latest # 

and dockerfile

from gcr.io/google_appengine/python  # create virtualenv dependencies. isolates these packages # system-level packages. run virtualenv /env  # setting these environment variables same running # source /env/bin/activate. env virtual_env /env env path /env/bin:$path  # copy application's requirements.txt , run pip install # dependencies virtualenv. #add requirements.txt /app/requirements.txt #run pip install -r /app/requirements.txt  # add application source code. add . /app  # run wsgi server serve application. gunicorn must declared # dependency in requirements.txt. cmd gunicorn -b :$port main:app 


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -