- Docker
- Chinese users can use registry.docker-cn.com to have faster speed
- Minikube(k8s)
- Chinese user can find a minikube compiled by Chinese which replaces google sources.
- Refer to https://kubernetes.io/docs/setup/minikube/ for more instructions.
- When you start it, remember to give it more cpus and memory through
--cpus
and--memory
- Version 1.10.1
- Edit
airflow/airflow/contrib/kubernetes
to implement functions needed in this project - Add an file upload field in homepage.
- Edit
airflow/airflow/www_rbac/templates/airflow/dags.html
to create the form. - Edit
airflow/airflow/www_rbac/views.py
andairflow/airflow/models.py
to parse files uploaded.
- Edit
- In
airflow-container/
,media-container
andtf-container/
, runbuild.sh
to build the image - In
kube/
, rundeploy.sh
to deploy airflow on minikube. Checkvolumes.yaml
to modify the space PVs occupy. - After airflow pods are up, run
cd runtime && copy.sh
to copy files into PV. - You can access airflow web ui on localhost:30800
- To run demos, compress files in
demo/deep-learning
ordemo/media
to a zip, and upload it on the UI - The web UI pick up dags in a period, so please wait some time and refresh to see your dag.
- To run it, first unpause it (switch to on), and then trigger it by clicking the left first buttuon among icons on the right.
- Refresh the webpage you can see the status of subtasks in your dag. Go to task instance via graph view or tree view, etc, to view the log.
- To delete your dag, click the red button on the right of each dag. If you have run a deep-learning workflow with
serve: true
, you need to addcleanup: true
to theJOBCONFIG.yaml
, upload it and trigger it again on UI to fully delete it.(the pod and service of restapi)
- Create more containers/templates to satisfy various workloads
- Optimize
runtime/dl_template.py
- [optional] Switch from yaml to json to get rid of PyYaml?