mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-06 05:35:46 +02:00
fix: ensure writable temp dirs in CI container
Bun fails with "unable to write files to tempdir: AccessDenied" when the container user doesn't own /tmp. This cascades to Playwright (can't launch Chromium) and browse (server won't start). Fix: create writable temp dirs at job start. If /tmp isn't writable, fall back to $HOME/tmp via TMPDIR. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -57,4 +57,5 @@ RUN mv /workspace/node_modules /opt/node_modules_cache \
|
||||
# the workflow must set options.user or use gosu/su-exec at runtime).
|
||||
RUN useradd -m -s /bin/bash runner \
|
||||
&& chmod -R a+rX /opt/node_modules_cache \
|
||||
&& mkdir -p /home/runner/.gstack && chown -R runner:runner /home/runner/.gstack
|
||||
&& mkdir -p /home/runner/.gstack && chown -R runner:runner /home/runner/.gstack \
|
||||
&& mkdir -p /tmp/bun-cache && chmod 1777 /tmp/bun-cache
|
||||
|
||||
Reference in New Issue
Block a user