Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't build in make docker-shell due to /code ownership #4880

Open
pro-wh opened this issue Aug 5, 2022 · 0 comments
Open

can't build in make docker-shell due to /code ownership #4880

pro-wh opened this issue Aug 5, 2022 · 0 comments
Labels
c:build Category: build environment

Comments

@pro-wh
Copy link
Contributor

pro-wh commented Aug 5, 2022

SUMMARY

/code is mounted from host, so everything would be owned by your usual non-root user ID. thus it's a git repo owned by a user different from the root user when you're in the container.

and something in the build process involves git, which now bails (see https://github.blog/2022-04-12-git-security-vulnerability-announced/)

supposedly you can run

git config --global --add safe.directory /code

and it'll allow it. that worked for me.

would we like to build this in to our docker image?

ISSUE TYPE
  • Bug Report
COMPONENT NAME

the dev docker image

OASIS NODE VERSION
not applicable
OS / ENVIRONMENT

linux whatever

STEPS TO REPRODUCE
make docker-shell

and then inside

make
ACTUAL RESULTS
forgot to copy the full output
EXPECTED RESULTS

builds

@kostko kostko added the c:build Category: build environment label Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:build Category: build environment
Projects
None yet
Development

No branches or pull requests

2 participants