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 ...@@ -37,12 +37,10 @@ RUN useradd metauser -d /home/metauser -u 65527 -g 65527 -m -s /bin/bash
# Add metuaser user to sudoers # Add metuaser user to sudoers
RUN echo "metauser ALL=(ALL)NOPASSWD: ALL" >> /etc/sudoers RUN echo "metauser ALL=(ALL)NOPASSWD: ALL" >> /etc/sudoers
# update PATH # update PATH and add CASA configurations
RUN echo "PATH=${CASABIN}:\$PATH" >> /home/metauser/.bash_profile COPY files/metahome.tar.gz /home/
RUN mkdir /home/metauser/.casa RUN cd /home/metauser && tar zxvf /home/metahome.tar.gz && rm -f /home/metahome.tar.gz
COPY files/init.py /home/metauser/.casa RUN chown -R metauser.metagroup /home/metauser
COPY files/analysis_scripts_sing.tgz /home/metauser/
RUN cd /home/metauser && tar zxvf /home/metauser/analysis_scripts_sing.tgz
# Prepare to make a clean enviroment to share with SINGULARITY # Prepare to make a clean enviroment to share with SINGULARITY
RUN mv /home/metauser /metauser_home_vanilla RUN mv /home/metauser /metauser_home_vanilla
RUN chmod 777 /metauser_home_vanilla RUN chmod 777 /metauser_home_vanilla
......
#!/bin/bash #!/bin/bash
if [ "x$TAG" == "x" ]; then if [ "x$TAG" == "x" ]; then
TAG=latest TAG="latest"
if fi
docker build -t morgan1971/almagal:$TAG -f Dockerfile.base . 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 to comment