Commit Graph

11 Commits

Author SHA1 Message Date
Jonas Schäfer
a998348804 Make hypercorn log to stdout in Docker
This may help with debugging issues, because we now actually see
incoming requests also on the hypercorn layer.

Fixes #97.
2022-01-22 15:20:36 +01:00
Matthew Wild
ceecfc861c docker: allow custom bind interface/port from environment 2021-02-17 13:38:10 +00:00
Matthew Wild
c28e98ec18 Set appropriate interface and port in docker 2021-01-29 14:03:26 +00:00
Matthew Wild
f27c86e29a Initialize required environment variables appropriately 2021-01-29 13:59:30 +00:00
Matthew Wild
b7a870c427 Dockerfile: Move to repo root to match our other projects 2021-01-22 12:00:26 +00:00
Jonas Schäfer
e0cfcc6aaa 12-factorize application a little
snikket_web can now be fully configured via the environment alone,
no extra files needed. It is still supported to inject a python
file to generate environment variables though, which may be
useful for generating and reloading a secret key.
2021-01-17 20:11:26 +01:00
Jonas Schäfer
3f44cf5a1f Improve Dockerfile
- Do not use python:X.Y images, they contain *a lot* of
  unnecessary and potentially vulnerable software
- Prepare for a much slimmer image build
2021-01-17 20:11:26 +01:00
Jonas Schäfer
fa700bba07 Massive code cleanup
- Avoid fighting import cycles using a factory function
- Collapse useless subpackages into simple modules
- Move flask plugins / infrastructure in own module
- Refactor how blueprints are used to localize information about
  URL routing to app factory
2021-01-17 20:11:25 +01:00
Matthew Wild
d79d354d72 docker: Add BUILD_SERIES/BUILD_ID (currently unused) 2020-05-20 14:46:24 +01:00
Killian Kemps
9d1d516b5e [Docker] Display messages for missing envvars 2020-04-30 15:52:54 +02:00
Killian Kemps
e86bd1562d [Docker] Add Dockerfile 2020-04-29 15:46:29 +02:00