issue with image entrypoint.sh #161
-
I was having strange behavior for a long time, spending weeks trying to debug very strange connectivity issues with hanging queries and a particular graphql endpoint. nothing about the issue itself had any explainable cause and finally i tried loading gunicorn manually and magically all of the issues vanished. I looked at the entry_point.sh and saw that some of the environment variables that should have been set were all blank: APP_MODULE and GUNICORN_CONF the environment from my docker-compose is unchanged. the only thing I've changed is adding in the custom entry point. Is there something obviously missing or incorrect that would explain why the default entrypoint would have problems? The application is in /app/wsgi.py and the app module name is app, e.g. from espresso import app
app.settings.wsgi_mode = True
import webapp.web.dispatch_application_route image: {image_tag}
entrypoint: "gunicorn wsgi:app -c gunicorn_conf.py"
ports:
- "5000:5000"
volumes:
- ./env.staging.json:/var/tmp/env.json
- ./gunicorn_conf.py:/app/gunicorn_conf.py
environment:
- LOG_LEVEL=debug
- MODULE_NAME=wsgi
- FLASK_CONFIG=development
- FLASK_ENV=development
- ENV_FILE=/var/tmp/env.json
networks:
internal-network:
aliases:
- "backend"
outside-world: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey there, you mentioned that you have a custom entrypoint, is that right? Because I don't see it here in your example. 🤔 Please share the Dockerfile as well. 🤓
|
Beta Was this translation helpful? Give feedback.
Hey there, you mentioned that you have a custom entrypoint, is that right? Because I don't see it here in your example. 🤔
Please share the Dockerfile as well. 🤓