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

Can't set GITLAB_MONITOR_CONFIG when using the unprivileged image #137

Open
remivoirin opened this issue Apr 27, 2020 · 0 comments
Open
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@remivoirin
Copy link

Hi!

When using the unprivileged image, it's not possible to load custom configurations.

# podman run -p 8080:8080 -e GITLAB_MONITOR_CONFIG=/tmp/config.json timoschwarzer/gitlab-monitor:unprivileged
/wrapper.sh: line 4: can't create /usr/share/nginx/html/config.json: Permission denied

Indeed, root is needed to create a new file in /usr/share/nginx/html, and it looks like wrapper.sh doesn't run with enough rights:

$ ls -ld /usr/share/nginx/html
drwxr-xr-x    1 root     root          4096 Mar 14 12:05 /usr/share/nginx/html

The problem is solved temporarily on my side by predefining the config.
Do you have an opinion on how to solve this inside the project?

@timoschwarzer timoschwarzer added good first issue Good for newcomers bug Something isn't working labels Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants