Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that the pip cache directory is writable by the astro user (#19)
Otherwise it's owned by root and astro can't actually cache anything as we are installing the virtualenvs Build output show it's being used: ``` #25 [stage-0 14/17] RUN --mount=type=cache,uid=50000,gid=0,target=/home/astro/.cache/pip /home/astro/.venv/snowpark/bin/pip --cache-dir=/home/astro/.cache/pip install -r /home/astro/.venv/ snowpark/requirements.txt #25 0.902 + /home/astro/.venv/snowpark/bin/pip --cache-dir=/home/astro/.cache/pip install -r /home/astro/.venv/snowpark/requirements.txt #25 2.110 Looking in indexes: https://pip.astronomer.io/v2/ #25 2.110 Looking in links: https://pip.astronomer.io/simple/astronomer-fab-security-manager/, https://pip.astronomer.io/simple/astronomer-airflow-version-check/ #25 2.645 Collecting googleads #25 2.649 Using cached googleads-38.0.0.tar.gz (27 kB) #25 2.664 Preparing metadata (setup.py): started #25 3.407 Preparing metadata (setup.py): finished with status 'done' ``` And in the built image ``` ❯ docker run --rm -ti 90a591231bee0e0312a995fd3ed017600f86a054ec1176bc84bef85e1c245aac bash -c 'ls -al /home/astro/.cache/pip' total 8 drwxr-xr-x 2 astro astro 4096 Jun 16 21:54 . drwxr-xr-x 3 astro astro 4096 Jun 16 21:54 .. ```
- Loading branch information