wip: the stack for portal 1.0
This commit is contained in:
6 files changed
+187
-137
No files matched your search
+11
-4
@@ -1,4 +1,5 @@
|
||||
# gdo, the mailer, from the [uhhm] Arch registry - the same package the
|
||||
# gdo, the mailer (0.4 and on: it dials a portal 1.0 site), from the
|
||||
# [uhhm] Arch registry - the same package the
|
||||
# bare-metal hosts install. Arch base rather than Debian because that is
|
||||
# how every uhhm binary is published; portal ships a release tarball and
|
||||
# is built from that instead.
|
||||
@@ -28,9 +29,15 @@ RUN pacman-key --init \
|
||||
&& pacman -Syu --noconfirm --needed ca-certificates gdo \
|
||||
&& pacman -Scc --noconfirm \
|
||||
&& rm -rf /var/cache/pacman/pkg/* /var/lib/pacman/sync/*
|
||||
# The registry gives its newest gdo. GDO_RELEASE says which one this
|
||||
# stack means: a build that got another stops here, and a changed
|
||||
# GDO_RELEASE builds anew.
|
||||
RUN gdo --version | grep -F "gdo ${GDO_RELEASE#v} "
|
||||
|
||||
# A non-root user; gdo writes nothing and holds no state - what it has
|
||||
# not yet delivered is on the stream, not on disk.
|
||||
RUN useradd --system --no-create-home gdo
|
||||
# A non-root user. gdo keeps its key on dhd/1 in /var/lib/gdo, a volume
|
||||
# (GDO_KEY in compose.yml); what it has not yet delivered waits with the
|
||||
# site, not here.
|
||||
RUN useradd --system --no-create-home gdo \
|
||||
&& mkdir -p /var/lib/gdo && chown gdo /var/lib/gdo && chmod 700 /var/lib/gdo
|
||||
USER gdo
|
||||
CMD ["/usr/bin/gdo"]
|
||||
Reference in new issue
Block a user