I'm also looking for a workaround.
Dear @nhoffman, Thanks for the issue.
The Docker images in this repository derivate from micromamba, see https://gitlab.com/quarto-forge/docker/-/blob/b2da3b72b8d03c9e3522431165dbffa605699ab6/Dockerfile.quarto#L1, that derivate from Debian, seehttps://github.com/mamba-org/micromamba-docker/blob/fd1109134d8383b05f30b5a6db55c1e62039b1da/Dockerfile#L1. Why? Because I was using mamba on other projects when I started this project.
The Docker images runs as nonroot, see https://gitlab.com/quarto-forge/docker/-/blob/b2da3b72b8d03c9e3522431165dbffa605699ab6/Dockerfile.quarto#L9. Because of this, you can't write in /var
.
$ docker run -it registry.gitlab.com/quarto-forge/docker/quarto /bin/bash
$ whoami
mambauser
$ ls -l / | grep var
drwxr-xr-x 1 root root 4096 Sep 4 00:00 var
You can write in /tmp
or /home/mambauser
:
$ ls -l / | grep tmp
drwxrwxrwt 1 root root 4096 Sep 29 01:01 tmp
$ ls -l /home
total 4
drwxrwxrwx 2 mambauser mambauser 4096 Sep 12 21:20 mambauser
You can define environment variables on your GitLab CI configuration. See the documentation at https://docs.gitlab.com/ee/ci/yaml/#variables.
Can you add
variables:
XDG_CACHE_HOME: "/tmp/quarto_cache"
to your GitLab CI configuration file and report back?
I can modify the Dockerfile of this project to define the variable later.
If this does not work, can you try add
export XDG_CACHE_HOME=/tmp/quarto_cache
to the begin of the script section of your GitLab CI configuration.
Raniere Silva (b2da3b72) at 18 Jul 07:37
Add manual selector for CI
Raniere Silva (f5bf3492) at 18 Jul 07:35
Enable build with LaTeX in CI
Raniere Silva (e91ada86) at 05 Feb 05:21
Fix _quarto.yml
Raniere Silva (d84a7e00) at 05 Feb 04:54
Raniere Silva (f050c8c9) at 05 Feb 04:54
Merge branch 'drop-latex' into 'main'
... and 1 more commit
Raniere Silva (d84a7e00) at 05 Feb 04:53
Avoid LaTeX temporarily
Raniere Silva (2905c8d2) at 12 Dec 06:20
Improve acknoledgement
Raniere Silva (9823ee3d) at 07 Dec 08:14
Improve illustrations
Raniere Silva (2074ff83) at 07 Dec 02:47
Build container with --no-cache and --pull
Raniere Silva (89d998d7) at 06 Dec 09:10
Small improvements
Raniere Silva (85d734af) at 06 Dec 09:10
Merge branch 'michael' into 'main'