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

Volume Permissions #15

Open
philipp-paland opened this issue Apr 23, 2018 · 1 comment
Open

Volume Permissions #15

philipp-paland opened this issue Apr 23, 2018 · 1 comment

Comments

@philipp-paland
Copy link

philipp-paland commented Apr 23, 2018

I ran into a problem with volume permissions with this image. I think Atlassian used to have the same thing in their bitbucket image, they describe a solution like this:

https://hub.docker.com/r/atlassian/bitbucket-server/

"For other versions (older than 4.12)"

Set permissions for the data directory so that the runuser can write to it:

$> docker run -u root -v /data/bitbucket:/var/atlassian/application-data/bitbucket atlassian/bitbucket-server chown -R daemon /var/atlassian/application-data/bitbucket"

And with that I was able to solve the problem. In the newer versions of the image, they introduced an entrypoint script that takes care of the issue automatically:

https://bitbucket.org/atlassian/docker-atlassian-bitbucket-server/src/8f2d89f4a904ef0ac2ce0d4afaf49b2bbccb28ac/entrypoint.sh?at=base-5&fileviewer=file-view-default

Maybe a script like that could be introduced here, too.

@philipp-paland philipp-paland changed the title Volume Permission Volume Permissions Apr 23, 2018
@nitrocode
Copy link

nitrocode commented Nov 21, 2018

@therealppa I believe the same issue affects this bamboo dockerfile when upgrading.

Edit: Looks like docker bamboo has its own entrypoint script similar to the one above.

This is biting me right now. I'm trying to upgrade from 5.14 to 6.7.1 and I noticed that the user changed from daemon to bamboo in the docker container. We have 2 bamboo servers and I fixed one of them by chowning the bamboo directories to daemon:daemon but still seeing issues with the other bamboo service which has a lot more directories.

Has anyone else run into this problem? If so, how did you solve it?

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