Skip to content

Commit

Permalink
Updated casa version 4.3-4.4 builds, uses local centos6 base container
Browse files Browse the repository at this point in the history
  • Loading branch information
helenkirk committed Apr 9, 2024
1 parent 18b7bd6 commit 975b0a6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 38 deletions.

This file was deleted.

27 changes: 14 additions & 13 deletions science-containers/Dockerfiles/casa/version-4.3-4.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
FROM centos:6
FROM images.canfar.net/skaha/centos:6
#NB: this is using a locally saved centos6 container with CASA-required
# software pre-installed to aid in long-term stability. Centos6 already
# has not been maintained for many years

# xterm dependency is an extra to get the casa shell in the display
# perl was added for casa later than 5

# Override old repo info with current urls
RUN rm /etc/yum.repos.d/CentOS-Base.repo
ADD CentOS-Base.repo /etc/yum.repos.d/

RUN yum clean all -y
RUN yum makecache -y
RUN yum update -y
RUN yum install -y freetype libSM libXi libXrender libXrandr \
libXfixes libXcursor libXinerama fontconfig \
libxslt xauth xorg-x11-server-Xvfb dbus-x11 \
tkinter ImageMagick-c++ xterm perl autoconf python-sphinx graphviz

# setup all required env variables
ARG CASA_RELEASE
Expand Down Expand Up @@ -43,8 +36,6 @@ RUN chown -R root:root /opt/${CASA_RELEASE} && ln -s /opt/${CASA_RELEASE} /opt/c

#WORKDIR /home/guest

RUN yum install -y sssd-client acl

# updated to new leapsecond solution
# Allow runtime symlink creation to the casa-data-repository
# Create a dangling symlink to casa-data-repository so that after deployment
Expand All @@ -63,6 +54,16 @@ RUN dbus-uuidgen --ensure

ADD nsswitch.conf /etc/

#Add in analysisUtils package
RUN mkdir /opt/casa/analysisUtils
RUN yum install -y wget
RUN cd /opt/casa/analysisUtils && wget ftp://ftp.cv.nrao.edu/pub/casaguides/analysis_scripts.tar && tar -xvf analysis_scripts.tar
#(if above doesn't work, can manually download the package and add as below)
#ADD ./analysis_scripts.tar /opt/casa/analysisUtils/
#NB: the analysisUtils path is added to the CASA startup file in the init.sh script
# (needs access to user's $HOME)


#HK updated below
#ENTRYPOINT [ "/skaha/startup.sh" ]
CMD [ "/skaha/init.sh" ]

0 comments on commit 975b0a6

Please sign in to comment.