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

Fails to write files to mounted src code volume #54

Open
alexdelifer opened this issue Jan 20, 2023 · 1 comment
Open

Fails to write files to mounted src code volume #54

alexdelifer opened this issue Jan 20, 2023 · 1 comment
Assignees

Comments

@alexdelifer
Copy link
Collaborator

Since the container is running as app it doesn't have permissions to write .dump files to the code volume.

This means new features like --addon and --dump do not work properly until this is fixed.

This would fix #41 and would allow for
addon: misra.py
to work

@alexdelifer alexdelifer self-assigned this Jan 20, 2023
@alexdelifer
Copy link
Collaborator Author

seems like the codeclimate cli tool forces the user to be 9000:9000
I wrote a entrypoint.sh that creates a app user and appgroup group, chmods and chowns, all for it to be blocked by some hardcoded args.

I also don't think it's possible for the codeclimate containers to output to the /code volume since it's mounted :ro during execution.

D, [2023-01-20T14:54:50.938946 #1] DEBUG -- : docker run: ["docker", "run", "--name", "cc-engines-cppcheck-stable-8c0b7bbd-901b-4af0-bdbd-f18d7fd0b8e4", "--cap-drop", "all", "--label", "com.codeclimate.label=e0eb9463-85f9-4f79-be2a-a80b3e346c3b", "--log-driver", "none", "--memory-swap", "-1", "--net", "none", "--rm", "--volume", "/home/alex/src/oneplannershoulder:/code:ro", "--volume", "/tmp/cc/61305620-0089-488e-9529-fd813b4b3592:/config.json:ro", "--user", "9000:9000", "--memory", "1024000000", "codeclimate/codeclimate-cppcheck"]

too bad, will investigate another time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant