From 6891e481a0244a142a4da90da03f70f28a9e66e3 Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Fri, 22 Mar 2024 00:03:40 -0400 Subject: [PATCH 1/2] build: setup opticks for all container users --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 438d4d1..024aae6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,8 +59,10 @@ COPY .opticks $ESI_DIR/.opticks WORKDIR $OPTICKS_HOME RUN mkdir -p $ESI_DIR -RUN echo "source $OPTICKS_HOME/opticks.bash" >> ~/.bash_profile -RUN echo "opticks-" >> ~/.bash_profile +RUN <<-"EOF" /etc/profile.d/z20_opticks.sh + source $OPTICKS_HOME/opticks.bash + opticks- +EOF RUN patch -p1 CSGOptiX/OPT.h $ESI_DIR/patches/0001-fix-add-missing-support-for-OptiX-7.6.patch From 74dc42c4d88ce8a36f6462c9a0e3da2490402a6f Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Fri, 22 Mar 2024 13:18:23 -0400 Subject: [PATCH 2/2] fix --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 024aae6..c212865 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,7 +59,7 @@ COPY .opticks $ESI_DIR/.opticks WORKDIR $OPTICKS_HOME RUN mkdir -p $ESI_DIR -RUN <<-"EOF" /etc/profile.d/z20_opticks.sh +COPY <<-"EOF" /etc/profile.d/z20_opticks.sh source $OPTICKS_HOME/opticks.bash opticks- EOF