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

Docker writing as root #38

Open
yashsriv opened this issue Sep 2, 2016 · 5 comments
Open

Docker writing as root #38

yashsriv opened this issue Sep 2, 2016 · 5 comments

Comments

@yashsriv
Copy link
Collaborator

yashsriv commented Sep 2, 2016

I am having some issues with mounting with docker as docker writes as root and then my whole build fails locally. Do you have any suggestions??

@adarshaj
Copy link
Member

adarshaj commented Sep 2, 2016

What docker? o.O this is jekyll site, are you using some container for jekyll builds?

@yashsriv
Copy link
Collaborator Author

yashsriv commented Sep 2, 2016

Oh you don't know?? This is repo is now a target for Source Code an event in Takneek. Dockerising is one of the milestones for which each pool will get points :P - https://github.com/pclubiitk/pclub.in/milestone/3

So I was trying out a docker compose setup with the location of the cloned pclub repo as a mountpoint....it mounts and everything but somehow it writes as root causing my normal build to fail

@adarshaj
Copy link
Member

adarshaj commented Sep 2, 2016

Ah okay, that depends on the source docker image you use, you can always extend the source docker image with a USER xyz in a new Dockerfile so that the uid matches. or you could run a chown -R on generated files too (in this case you take uid/gid as params in docker run)

@sakshamsharma
Copy link
Member

@yashsriv what is the status of this issue? If you have a build test plan ready, do push 😄

@yashsriv
Copy link
Collaborator Author

I have a dockerfile which can fetch the pclub repo and compile it..but if I try anything related to mounting it messes up... I'll push both the dockerfiles for you to checkout...one works independently..i.e., fetches all dependencies, and works on the pclub repo..the other one mounts the current directory, fetches the dependecies and tries compiling but fails......

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

3 participants