Commit 38a7ee5c authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Disabled automatically activating the Python environments.

parent 18960ca6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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
+3 −0
Original line number Diff line number Diff line
@@ -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"