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

Resource owned by root user #155

Closed
track0x1 opened this issue Nov 9, 2017 · 1 comment
Closed

Resource owned by root user #155

track0x1 opened this issue Nov 9, 2017 · 1 comment

Comments

@track0x1
Copy link

track0x1 commented Nov 9, 2017

I'm building an npm package (in a concourse pipeline) and the task uses a node alpine image. I have a git-resource that points to my source code repo and that is provided to my task as an input. When my task runs ls -la /tmp/build, it shows the temp folder (the repo code) as owned by root and group of root. However, node & npm need to run as a non-root user (user node in the node alpine image).
So now, my node user can't access the repo files and do its thing. How can I get the git-resource to provide the repo with the same user & group?

@vito
Copy link
Member

vito commented Nov 9, 2017

this is probably the same as concourse/concourse#403

for now, you'll have to chown them yourself and then su node to run the npm tasks

@vito vito closed this as completed Nov 9, 2017
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

2 participants