Skip to content

Commit

Permalink
hive-config users: Don't create /etc/hive
Browse files Browse the repository at this point in the history
  • Loading branch information
gbenson committed Oct 8, 2024
1 parent d2a6755 commit 64aff45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
9 changes: 4 additions & 5 deletions services/email-receiver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,11 @@ RUN ln -s ../../venv/bin/hive-email-receiver /usr/bin

RUN set -eux \
\
&& addgroup --system --gid 1936 hiveimap \
&& addgroup --system --gid 1936 hivemail \
&& adduser --system --uid 1936 --gid 1936 \
--home /var/lib/hive/email-receiver --disabled-password hiveimap \
&& install -d -ohiveimap -ghiveimap -m750 /etc/hive
--home /var/lib/hivemail --disabled-password hivemail

USER hiveimap:hiveimap
WORKDIR /var/lib/hive/email-receiver
USER hivemail:hivemail
WORKDIR /var/lib/hivemail

ENTRYPOINT ["hive-email-receiver"]
1 change: 0 additions & 1 deletion services/matrix-connector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ RUN set -eux \
&& addgroup --system --gid 6617 matrix \
&& adduser --system --uid 6617 --gid 6617 \
--home /var/lib/matrix --disabled-password matrix \
&& install -d -omatrix -gmatrix -m750 /etc/hive

USER matrix:matrix
WORKDIR /var/lib/matrix
5 changes: 2 additions & 3 deletions services/reading-list-updater/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ RUN set -eux \
\
&& addgroup --system --gid 5491 readlist \
&& adduser --system --uid 5491 --gid 5491 \
--home /var/lib/hive/reading-list-updater --disabled-password readlist \
&& install -d -oreadlist -greadlist -m750 /etc/hive
--home /var/lib/readlist --disabled-password readlist

USER readlist:readlist
WORKDIR /var/lib/hive/reading-list-updater
WORKDIR /var/lib/readlist

ENTRYPOINT ["hive-reading-list-updater"]

0 comments on commit 64aff45

Please sign in to comment.