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

Beam Enrich: volume mount permissions in containers #3896

Closed
jrluis opened this issue Sep 11, 2018 · 4 comments
Closed

Beam Enrich: volume mount permissions in containers #3896

jrluis opened this issue Sep 11, 2018 · 4 comments

Comments

@jrluis
Copy link

jrluis commented Sep 11, 2018

Currently Snowplow containers run as snowplow user.

When mounting a volume, it gets mounted as root, this makes impossible to access files from the program that is running as snowplow user.

The use case for this was on a gcp container, we tried to pass the service account file to the container using a volume, so the program running there could do the authentication and connect to gcp.

Example:

docker run --rm -v /root:/cfg -e GOOGLE_APPLICATION_CREDENTIALS='/cfg/sp-loader.json' snowplow-docker-registry.bintray.io/snowplow/snowplow-bigquery-mutator:0.1.0-rc13 listen --resolver=$RESOLVER --config=$CONFIG --verbose

This seems to be an old issue yet to have a proper solution moby/moby#2259

@jrluis
Copy link
Author

jrluis commented Sep 11, 2018

@chuwy chuwy changed the title Volume mount permissions in containers Beam Enrich: volume mount permissions in containers Sep 11, 2018
@chuwy
Copy link
Contributor

chuwy commented Sep 11, 2018

Changed title as it seems only Beam Enrich now is affected?

@chuwy
Copy link
Contributor

chuwy commented Sep 12, 2018

So, basically what we need to do is to copy our entrypoint approach from snowplow-docker https://github.com/snowplow/snowplow-docker/blob/develop/iglu-server/0.4.0/docker-entrypoint.sh

@peel
Copy link
Contributor

peel commented Feb 27, 2020

Moved to: snowplow/beam-enrich#27

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

No branches or pull requests

4 participants