-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Description
Problem:
Run the following command:
$ make container-build
"docker" run --rm --interactive --tty --volume "/Users/chalin/git/lf/kubernetes/kubernetes.io:/src:ro,Z" --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 gcr.io/k8s-staging-sig-docs/k8s-website-hugo:v0.133.0-663a78832a43 sh -c "npm ci && hugo --minify --environment development"
npm error code EROFS
npm error syscall unlink
npm error path /src/node_modules/.package-lock.json
npm error errno -30
npm error rofs EROFS: read-only file system, unlink '/src/node_modules/.package-lock.json'
npm error rofs Often virtualized file systems, or other file systems
npm error rofs that don't support symlinks, give this error.
npm error Log files were not written due to an error writing to the directory: /var/hugo/.npm/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
make: *** [container-build] Error 226Note the errors reported by NPM.
Analysis:
The issue is that /src is mounted as read-only, and so we can't run npm ci as is from within the container.
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.