diff --git a/base/entrypoint/Dockerfile b/base/entrypoint/Dockerfile index 866c98146ac03f73eae38e7614565417f201caa0..188b614e67224bc75f516f46a47c241d1045f7d9 100644 --- a/base/entrypoint/Dockerfile +++ b/base/entrypoint/Dockerfile @@ -17,8 +17,10 @@ RUN chmod 755 /entrypoint.sh # Set entrypoint ENTRYPOINT ["/entrypoint.sh"] -# Fix line in the lofar init. TODO: check why!! -RUN grep -v "measures.directory" /opt/lofar/init.sh > /tmp/init.sh && mv /tmp/init.sh /opt/lofar/init.sh && chmod 755 /opt/lofar/init.sh +# Fix lines in the lofar init. TODO: check why!! +RUN grep -v "measures.directory" /opt/lofar/init.sh > /tmp/init.sh +RUN grep -v "pyenv-py2/bin/activate" /tmp/init.sh > /opt/lofar/init.sh +RUN chmod 755 /opt/lofar/init.sh #============================= # Switch to metauser diff --git a/base/entrypoint/entrypoint.sh b/base/entrypoint/entrypoint.sh index 5f34c86b2907b8057bfd14ea03b0c0d703b6fafc..45248837f1a030b39b28e20c41ba0bebe24fa43e 100644 --- a/base/entrypoint/entrypoint.sh +++ b/base/entrypoint/entrypoint.sh @@ -113,6 +113,9 @@ else echo "==============================================================" echo "" echo "You are now in /home/metauser with write access as user \"$(whoami)\"." + echo "To activate Python environments:" + echo " source /opt/lofar/pyenv-py2/bin/activate" + echo " source /opt/lofar/pyenv-py3/bin/activate" echo "" echo "Remember that contents inside this container, unless stored" echo "on a persistent volume mounted from you host machine, will"