Skip to content

Commit

Permalink
Run radarr directly, force uid
Browse files Browse the repository at this point in the history
  • Loading branch information
discordianfish committed Jan 2, 2024
1 parent 2bb4e9b commit f971bc1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/radarr/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local default_config = {
image: 'lscr.io/linuxserver/radarr:'+ $.version,
storage_size: '500Mi',
storage_class: 'default',
uid: 1000, // FIXME: This is hardcoded in the image
uid: 1000,
};

{
Expand All @@ -23,7 +23,10 @@ local default_config = {
config.host,
7878,
namespace=config.namespace
) +
) + {
container+: k.core.v1.container.withCommand(['/app/radarr/bin/Radarr', '--data=/config/']),
deployment+: k.apps.v1.deployment.spec.template.spec.securityContext.withRunAsUser(config.uid),
} +
app.withPVC(config.name, config.storage_size, '/config', config.storage_class) +
app.withVolumeMixin(k.core.v1.volume.fromHostPath('media', config.media_path), '/media') +
app.withFSGroup(config.uid)
Expand Down

0 comments on commit f971bc1

Please sign in to comment.