the /data folder is actually required for the key to inserted in the node

This commit is contained in:
undercover-cactus 2026-01-30 16:18:12 +01:00
parent 98383f0e9f
commit aace180cf1
2 changed files with 9 additions and 6 deletions

View file

@ -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"]

View file

@ -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"]