makeplane / makeplane/plane

[bug]: Docker Build Fails Due to Read-Only File System on yarn install

Open
#6,899 0 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

🐛bug
Dominant language
TypeScript
Stars
59.6k
Forks
5.8k
Avg merge
1d 22h
Merged PRs (30d)
49

Description

Is there an existing issue for this?
  • I have searched the existing issues
Current behavior

I'm trying to set up the development environment using Docker as described in the docker-compose-local.yml. However, the build process fails during the web service build at the yarn install step with the following error:

error Error: EROFS: read-only file system, unlink '/tmp/.yarn-cache/...'
It appears that the yarn install process is attempting to cache to /tmp/.yarn-cache, which is mounted as read-only during the build process (possibly due to BuildKit). I tried setting YARN_CACHE_FOLDER=/tmp/.yarn-cache, but that didn’t solve the issue.

Steps to reproduce

1/ Clone the repository.
2/ Run docker compose -f docker-compose-local.yml up --build.
3/ Observe the build failure at the web service step.

Environment

Production

Browser

Safari

Variant

Local

Version

Docker: 24.0.7 Docker Compose: v2.21.0 Node: 16.x (in container) Yarn: v1.22.22

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.