Skip to content

Instantly share code, notes, and snippets.

@Joshuaalbert
Created December 4, 2024 22:15
Show Gist options
  • Save Joshuaalbert/7c30eca1e28ea434d8ac3d2576f358b6 to your computer and use it in GitHub Desktop.
Save Joshuaalbert/7c30eca1e28ea434d8ac3d2576f358b6 to your computer and use it in GitHub Desktop.
casacore build segment
FROM python:3.11.7
RUN apt-get update && apt-get install -y gdb lldb sudo rsync \
build-essential cmake g++ gcc python3 python3-pip \
python3-numpy python3-nose python3-setuptools libcfitsio-dev \
libhdf5-dev libboost-dev gfortran flex bison libblas-dev liblapack-dev \
libfftw3-dev
# install CASA
RUN git clone https://github.com/casacore/casacore.git \
&& cd casacore && mkdir build && cd build \
&& cmake -DUSE_FFTW=OFF -DUSE_HDF5=ON -DCMAKE_INSTALL_PREFIX=/usr/local .. \
&& make -j$(nproc) && sudo make install \
&& cd ../..
RUN CASACORE_ROOT_DIR=/usr/local pip install -r /dsa/code/requirements.txt
RUN pip install python-casacore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment