From 2955cbfcda5d718a45fae1ffc8248dac549ea48e Mon Sep 17 00:00:00 2001 From: Ryan Lovett Date: Fri, 4 Oct 2024 14:19:28 -0700 Subject: [PATCH] Set XDG_RUNTIME_DIR. --- Dockerfile.appendix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile.appendix b/Dockerfile.appendix index ebaadb4..73b4572 100644 --- a/Dockerfile.appendix +++ b/Dockerfile.appendix @@ -1,5 +1,12 @@ USER root +# xeus-octave complains when XDG_RUNTIME_DIR is not set. +# We dynamically determine the UID, persist XDG_RUNTIME_DIR, and create the dir. +RUN NB_USER_UID=$(id -u ${NB_USER}) && \ + XDG_RUNTIME_DIR=/run/user/${NB_USER_UID} && \ + echo "XDG_RUNTIME_DIR=/run/user/${NB_USER_UID}" >> /etc/environment && \ + install -d -m 0700 -o ${NB_USER} -g ${NB_USER} ${XDG_RUNTIME_DIR} + # As requested in slack. # http://www.dcc.fc.up.pt/gtries/ # https://github.com/ComplexNetworks-DCC-FCUP/gtrieScanner