taichi-dev / taichi

Productive, portable, and performant GPU programming in Python.
https://taichi-lang.org
Apache License 2.0
25.51k stars 2.28k forks source link

[ci] Improve docker image for Linux CPU build and test #4824

Open qiao-bo opened 2 years ago

qiao-bo commented 2 years ago

Currently, we employ an Ubuntu 18.04 based docker image (Dockerfile here) for building and testing Taichi's CPU backend. The current image is approximately 12GB, we would like improve this image by reducing the image size to its minimal.

Things to consider include:

After exploring the previous steps, we can also move on to optimize other backends:

frostming commented 2 years ago

If we switch to the container setting in workflow(#4776 ), we can get rid of the conda setup since it can be done by a Github Action: setup the demanded python version rather than pre-installing a bunch of python versions

qiao-bo commented 2 years ago

If we switch to the container setting in workflow(#4776 ), we can get rid of the conda setup since it can be done by a Github Action

that would be great! conda environment occupies quite some space.