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 using docker : ./clang.bazelrc: Permission denied #36548

Open
rbahegne opened this issue Oct 11, 2024 · 1 comment
Open

Can't build using docker : ./clang.bazelrc: Permission denied #36548

rbahegne opened this issue Oct 11, 2024 · 1 comment

Comments

@rbahegne
Copy link

Envoy build fail with /source/ci/../bazel/setup_clang.sh: line 22: ./clang.bazelrc: Permission denied

Description:
I'm trying to build envoy on Rocky linux 8

Repro steps:

cd
git clone https://github.com/envoyproxy/envoy.git
 cd envoy/
./ci/run_envoy_docker.sh './ci/do_ci.sh release.server_only'

ouput :

Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
ENVOY_SRCDIR=/source
ENVOY_BUILD_TARGET=//source/exe:envoy-static
ENVOY_BUILD_ARCH=x86_64
Setting test_tmpdir to /build/tmp.
/source/ci/../bazel/setup_clang.sh: line 22: ./clang.bazelrc: Permission denied

Note: Since Docker is not available on Rocky it use automatically the docker emulation by podman, but i don't think it is related.
My user is called Rocky and has admin access, envoy is clone in the home directory.

@rbahegne rbahegne added bug triage Issue requires triage labels Oct 11, 2024
@phlax
Copy link
Member

phlax commented Oct 11, 2024

i think this is related to podman

i believe the issue is that the user you are running as inside the container doesnt have permissions to write in the repo directory

run_envoy_docker.sh has some mangling to ensure that the user matches inside/outside the container to ensure the container user can write there

@phlax phlax added area/build area/docker and removed triage Issue requires triage labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants