Quantcast
Channel: Active questions tagged dockerfile - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 136

How do I install GitWeb onto k8s-Gerrit? (itself installed through Helm chart)

$
0
0

My team uses Gerrit for code review, and has it installed on Kubernetes via Helm chart. We want to be able to see our code changes, and so we wanted to integrate Gitweb with Gerrit. This begins with installing Gitweb onto the container. Typically, this is just a matter of entering the following in Gerrit's pod:

apk add --update gitweb

However, we are getting the following error:

ERROR: Unable to lock database: Permission Denied.ERROR: Failed to open apk database: Permission Denied.

This is of course an issue of permissions, however we do not want to have the docker container have root user permissions (since it is a security vulnerability) and even if we wanted to, it is installed through Helm Charts, so we do not have access to the docker files (since Helm Charts pulls them directly from Docker Hub).

Is there still a way to install Gitweb onto this container? I'm somewhat lost because I'm still new to Helm Charts, so I'm not sure if this can be made to work through it, or if I just have to find a workaround.


As an added note: Please let me know if you need any further information or clarification. I'm new to posting questions on Stack Exchange, so if I'm sounding vague, let me know and I'll clarify where I can.


Viewing all articles
Browse latest Browse all 136

Trending Articles