6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-16 01:57:16 +00:00
tutor/requirements/base.txt
Régis Behmo bce6432d85 Improve job running in local and k8s
Running jobs was previously done with "exec". This was because it
allowed us to avoid copying too much container specification information
from the docker-compose/deployments files to the jobs files. However,
this was limiting:

- In order to run a job, the corresponding container had to be running.
This was particularly painful in Kubernetes, where containers are
crashing as long as migrations are not correctly run.
- Containers in which we need to run jobs needed to be present in the
docker-compose/deployments files. This is unnecessary, for example when
mysql is disabled, or in the case of the certbot container.

Now, we create dedicated jobs files, both for local and k8s deployment.
This introduces a little redundancy, but not too much. Note that
dependent containers are not listed in the docker-compose.jobs.yml file,
so an actual platform is still supposed to be running when we launch the
jobs.

This also introduces a subtle change: now, jobs go through the container
entrypoint prior to running. This is probably a good thing, as it will
avoid forgetting about incorrect environment variables.

In k8s, we find ourselves interacting way too much with the kubectl
utility. Parsing output from the CLI is a pain. So we need to switch to
the native kubernetes client library.
2020-04-25 23:12:42 +02:00

34 lines
1.2 KiB
Plaintext

#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile requirements/base.in
#
appdirs==1.4.3
cachetools==4.1.0 # via google-auth
certifi==2020.4.5.1 # via kubernetes, requests
chardet==3.0.4 # via requests
click-repl==0.1.6
click==7.1.1
google-auth==1.14.0 # via kubernetes
idna==2.9 # via requests
jinja2==2.11.1
kubernetes==11.0.0
markupsafe==1.1.1 # via jinja2
oauthlib==3.1.0 # via requests-oauthlib
prompt-toolkit==3.0.5 # via click-repl
pyasn1-modules==0.2.8 # via google-auth
pyasn1==0.4.8 # via pyasn1-modules, rsa
python-dateutil==2.8.1 # via kubernetes
pyyaml==5.3.1
requests-oauthlib==1.3.0 # via kubernetes
requests==2.23.0 # via kubernetes, requests-oauthlib
rsa==4.0 # via google-auth
six==1.14.0 # via click-repl, google-auth, kubernetes, python-dateutil, websocket-client
urllib3==1.25.9 # via kubernetes, requests
wcwidth==0.1.9 # via prompt-toolkit
websocket-client==0.57.0 # via kubernetes
# The following packages are considered to be unsafe in a requirements file:
# setuptools