Skip to content
Snippets Groups Projects
Commit 165bf72c authored by Giuliano Taffoni's avatar Giuliano Taffoni
Browse files

Add home based casa and python configurations

parent 1e1c1760
No related branches found
No related tags found
No related merge requests found
......@@ -37,12 +37,10 @@ RUN useradd metauser -d /home/metauser -u 65527 -g 65527 -m -s /bin/bash
# Add metuaser user to sudoers
RUN echo "metauser ALL=(ALL)NOPASSWD: ALL" >> /etc/sudoers
# update PATH
RUN echo "PATH=${CASABIN}:\$PATH" >> /home/metauser/.bash_profile
RUN mkdir /home/metauser/.casa
COPY files/init.py /home/metauser/.casa
COPY files/analysis_scripts_sing.tgz /home/metauser/
RUN cd /home/metauser && tar zxvf /home/metauser/analysis_scripts_sing.tgz
# update PATH and add CASA configurations
COPY files/metahome.tar.gz /home/
RUN cd /home/metauser && tar zxvf /home/metahome.tar.gz && rm -f /home/metahome.tar.gz
RUN chown -R metauser.metagroup /home/metauser
# Prepare to make a clean enviroment to share with SINGULARITY
RUN mv /home/metauser /metauser_home_vanilla
RUN chmod 777 /metauser_home_vanilla
......
#!/bin/bash
if [ "x$TAG" == "x" ]; then
TAG=latest
if
TAG="latest"
fi
docker build -t morgan1971/almagal:$TAG -f Dockerfile.base .
import sys
sys.path.append("/usr/lib/python2.7/site-packages")
sys.path.append("/usr/lib64/python2.7/site-packages")
sys.path.append("/home/metauser/analysis_scripts/")
import analysisUtils as aU
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment