Comments (1)
I have a similar problem. I worked around the selinux issue here by just temporarily setting it to permissive, but that's not enough. The netlify/build:focal image sets several files in buildbot's home directory to owned by root:root.
As Podman runs unprivileged by default, it trips on these files, especially the package-lock.json and /opt/buildhome/repo directories.
$ ls -lah /opt/buildhome/
total 232K
drwxr-xr-x. 29 buildbot buildbot 4.0K Jan 12 18:49 .
drwxr-xr-x. 7 root root 4.0K Jan 12 18:48 ..
-rw-r--r--. 1 buildbot buildbot 221 Jan 11 16:17 .bash_profile
-rw-r--r--. 1 buildbot buildbot 139 Jan 11 16:17 .bashrc
drwxr-xr-x. 3 buildbot buildbot 4.0K Jan 11 16:14 .binrc
drwxr-xr-x. 3 buildbot buildbot 4.0K Jan 11 16:14 .boot
drwxr-xr-x. 5 buildbot buildbot 4.0K Jan 11 16:14 .cache
drwxr-xr-x. 23 buildbot buildbot 4.0K Jan 12 18:48 cache
drwxr-xr-x. 3 buildbot buildbot 4.0K Jan 11 16:17 .cargo
drwxr-xr-x. 10 buildbot buildbot 4.0K Jan 11 16:14 .cask
drwxr-xr-x. 3 buildbot buildbot 4.0K Jan 11 16:14 .deno
drwxr-xr-x. 10 buildbot buildbot 4.0K Jan 11 16:14 .dotnet
drwxr-xr-x. 3 buildbot buildbot 4.0K Jan 11 16:13 .gem
-rw-r--r--. 1 root root 469 Jan 12 18:33 get-build-info.mjs
drwxr-xr-x. 5 buildbot buildbot 4.0K Jan 11 16:14 .gimme
drwx------. 3 buildbot buildbot 4.0K Jan 11 16:14 .gnupg
drwxr-xr-x. 2 buildbot buildbot 4.0K Jan 11 16:17 .homebrew-cache
drwxr-xr-x. 3 buildbot buildbot 4.0K Jan 11 16:14 .lein
drwxr-xr-x. 3 buildbot buildbot 4.0K Jan 11 16:14 .local
drwxr-xr-x. 3 buildbot buildbot 4.0K Jan 11 16:14 .m2
-rw-r--r--. 1 buildbot buildbot 118 Jan 11 16:13 .mkshrc
drwxr-xr-x. 84 buildbot buildbot 4.0K Jan 12 18:49 node_modules
drwxr-xr-x. 4 buildbot buildbot 4.0K Jan 12 18:48 .npm
drwxr-xr-x. 8 buildbot buildbot 4.0K Jan 12 18:49 .nvm
-rw-r--r--. 1 root root 857 Jan 12 18:33 package.json
-rw-r--r--. 1 root root 65K Jan 12 18:33 package-lock.json
drwxr-xr-x. 2 buildbot buildbot 4.0K Jan 12 18:49 .php
-rw-r--r--. 1 buildbot buildbot 338 Jan 11 16:17 .profile
drwxr-xr-x. 4 buildbot buildbot 4.0K Jan 11 16:14 python2.7
lrwxrwxrwx. 1 buildbot buildbot 24 Jan 11 16:14 python2.7.18 -> /opt/buildhome/python2.7
drwxr-xr-x. 4 buildbot buildbot 4.0K Jan 11 16:14 python3.8
lrwxrwxrwx. 1 buildbot buildbot 24 Jan 11 16:14 python3.8.10 -> /opt/buildhome/python3.8
drwxrwxr-x. 23 root root 4.0K Jan 12 17:46 repo
drwxr-xr-x. 2 buildbot buildbot 4.0K Jan 11 16:17 .rustup
drwxr-xr-x. 25 buildbot buildbot 4.0K Jan 11 16:13 .rvm
-rw-r--r--. 1 buildbot buildbot 25 Jan 11 16:13 .rvmrc
drwxr-xr-x. 10 buildbot buildbot 4.0K Jan 11 16:14 .swiftenv
drwxr-xr-x. 4 buildbot buildbot 4.0K Jan 11 16:14 .templateengine
-rw-r--r--. 1 buildbot buildbot 162 Jan 11 16:14 .wget-hsts
drwxr-xr-x. 4 buildbot buildbot 4.0K Jan 11 16:14 .yarn
-rw-r--r--. 1 buildbot buildbot 118 Jan 11 16:13 .zlogin
-rw-r--r--. 1 buildbot buildbot 118 Jan 11 16:13 .zshrc
from build-image.
Related Issues (20)
- Customizable Java version HOT 2
- Latest NPM versions throw an error when workspaces are configured HOT 1
- Missing workdir "/opt/build" in build container.
- Change the way how the elm compiler is installed as it is not compatible with arm64 HOT 2
- Why is the Hugo version out of date so much?
- Add Haldo linting to build image dockerfile HOT 1
- Run the docker image size inside CircleCI instead of github actions
- Container-structure-tests fail for arm64 HOT 2
- Create multiarch images and push them to the dockerhub HOT 5
- Cache Playwright browser dependencies HOT 3
- `target` directory for Rust is not stored
- Builds fail when using `[email protected]` HOT 5
- Same codebase stopped compiling in version 4.13 HOT 4
- Monorepo project cannot found pnpm HOT 2
- Failed to debug netlify locally HOT 1
- Add Support for .NET 7 HOT 6
- `NETLIFY_USE_PNPM: true` environment var not working after v4.15.0 HOT 1
- Show an understandable error when `getBuildInfo` failed
- Not respecting pnpm version specified in packageManager field of package.json HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build-image.