Skip to content

Commit

Permalink
feat(dockerfile): Make workdir read/writable by root group for k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
skomski committed Dec 17, 2024
1 parent 05d62b2 commit 0e79033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ RUN apk add --no-cache \
# ensure the UTC timezone is set
ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime

RUN chmod -R g+rw /opt/barad-dur && chgrp -R 0 /opt/barad-dur

WORKDIR /opt/barad-dur
COPY --from=builder /app/target/release/barad-dur /usr/local/bin/barad-dur
COPY --from=builder /app/migrations /opt/barad-dur/migrations
Expand Down
2 changes: 1 addition & 1 deletion src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl Settings {
.set_default("server.host", "[::]:8080")?
.set_default("log.level", "warn")?
.add_source(
Environment::with_prefix("BDR")
Environment::with_prefix("FAMEDLY_BDR")
.prefix_separator("__")
.separator("__"),
)
Expand Down

0 comments on commit 0e79033

Please # to comment.