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

Setting permissions for message directory not documented #53

Open
gregcorbett opened this issue Feb 21, 2018 · 2 comments
Open

Setting permissions for message directory not documented #53

gregcorbett opened this issue Feb 21, 2018 · 2 comments

Comments

@gregcorbett
Copy link
Member

The Dockerfile makes apache the owner of /var/spool/apel/cloud/ within the container.

Unfortunately, when deploying via docker-compose (and probably ansible as well) the host directory is mounted into the container, which overwrites the permissions set into the image at build time.

As a result, the person deploying the REST interface via those methods has to ensure the apache user within the container can write to the host directory that has been mounted into the container. Failure to do so prevents the interface saving received messages (returning a 500).

This should at least be documented, but changing the permissions of the mounted-in host directory could be done automatically as part of the docker/run_on_entry.sh script (at least in theory).

@tofu-rocketry
Copy link
Member

What permissions get set when compose or ansible are used?

@gregcorbett
Copy link
Member Author

If /var/spool/apel/cloud/ already exists on the host it will get the existing permissions. If it's not, compose will try and create the directory on the host, giving it 644 and owned by the user that runs compose/the container (essentially root).

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

No branches or pull requests

2 participants