danielwhatmuff / zappa

Zappa Docker image based on Lambda compatible base
83 stars 25 forks source link

zappa command requires virtualenv #1

Closed lc0rp closed 7 years ago

lc0rp commented 7 years ago

Like this image!

Wasn't able to get the zappa command to work. It kept failing with the error "zappa requires a virtualenv"

I eventually changed the zappashell command to this:

alias zappashell='docker run -ti -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION -v $(pwd):/var/task  --rm zappa bash -c "source /var/venv/bin/activate; bash"'

And then I was able to run zappa deploy within the zappa shell

danielwhatmuff commented 7 years ago

Glad you like it. Have added note to the readme about sourcing a virtualenv. Cheers.