From aace180cf112fe25d4669343489a5bc37dd67346 Mon Sep 17 00:00:00 2001 From: undercover-cactus Date: Fri, 30 Jan 2026 16:18:12 +0100 Subject: [PATCH] the /data folder is actually required for the key to inserted in the node --- docker/datahaven-dev.Dockerfile | 7 ++++--- operator/Dockerfile | 8 +++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/docker/datahaven-dev.Dockerfile b/docker/datahaven-dev.Dockerfile index 8142fb1f..b110c22b 100644 --- a/docker/datahaven-dev.Dockerfile +++ b/docker/datahaven-dev.Dockerfile @@ -42,8 +42,9 @@ RUN apt-get update && \ # Create datahaven user and directories RUN useradd -m -u 1001 -U -s /bin/sh -d /datahaven datahaven && \ - mkdir -p /datahaven/.local/share && \ - chown -R datahaven:datahaven /datahaven/.local/share + mkdir -p /data /datahaven/.local/share && \ + chown -R datahaven:datahaven /data /datahaven/.local/share && \ + ln -s /data /datahaven/.local/share/datahaven-node USER datahaven @@ -60,7 +61,7 @@ ENV RUST_BACKTRACE=1 # 9615: Prometheus metrics EXPOSE 30333 9944 9615 -VOLUME ["/datahaven/.local/share/datahaven-node"] +VOLUME ["/data"] ENTRYPOINT ["datahaven-node"] CMD ["--tmp"] diff --git a/operator/Dockerfile b/operator/Dockerfile index 5278e52c..dc3142c3 100644 --- a/operator/Dockerfile +++ b/operator/Dockerfile @@ -53,8 +53,10 @@ COPY --from=builder \ # Create datahaven user and directories RUN useradd -m -u 1001 -U -s /bin/sh -d /datahaven datahaven && \ - mkdir -p /datahaven/.local/share && \ - chown -R datahaven:datahaven /datahaven/.local/share + mkdir -p /data /datahaven/.local/share && \ + chown -R datahaven:datahaven /data /datahaven/.local/share && \ + ln -s /data /datahaven/.local/share/datahaven-node + USER datahaven @@ -69,6 +71,6 @@ RUN chmod uog+x /usr/local/bin/datahaven* # 9615: Prometheus metrics EXPOSE 30333 9944 9615 -VOLUME ["/datahaven/.local/share/datahaven-node"] +VOLUME ["/data"] ENTRYPOINT ["/usr/local/bin/datahaven-node"]