kubernetes / website

Kubernetes website and documentation repo:
https://kubernetes.io
Creative Commons Attribution 4.0 International
4.5k stars 14.44k forks source link

Container-build command fails #48739

Open chalin opened 2 hours ago

chalin commented 2 hours ago

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 226

Note 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.

k8s-ci-robot commented 2 hours ago

This issue is currently awaiting triage.

SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.