kernsuite / packaging

Use this repository to report issues with packages or request new packages
13 stars 4 forks source link

Kern 7 casarest is missing image2fits #255

Open bennahugo opened 2 years ago

bennahugo commented 2 years ago

Downstream in meqtrees test case

sys     0m0.027s
Success, all *.img files will be removed after conversion to FITS
/usr/local/bin/run-imager.sh: line 310: image2fits: command not found

Building casacore + casarest manually gives me this target, ie.:

#####################################################################
## BUILD CASACORE AND CASAREST FROM SOURCE
#####################################################################
WORKDIR /src
RUN wget https://github.com/casacore/casacore/archive/v3.4.0.tar.gz && \
    tar xvf v3.4.0.tar.gz && \
    rm v3.4.0.tar.gz && \
    mkdir casacore-3.4.0/build && \
    cd /src/casacore-3.4.0/build && \
    cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_DEPRECATED=ON -DBUILD_PYTHON=OFF -DBUILD_PYTHON3=ON ../ && \
    make -j 4 && \
    make install && \
    rm -r /src/casacore-3.4.0 && \
    cd /src && \
    wget https://github.com/casacore/casarest/archive/v1.8.0.tar.gz && \
    tar xvf v1.8.0.tar.gz && \
    rm v1.8.0.tar.gz && \
    cd /src/casarest-1.8.0 && \
    mkdir -p build && \
    cd /src/casarest-1.8.0/build && \
    cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../ && \
    make -j 4 && \
    make install && \
    rm -r /src/casarest-1.8.0 && \
    ldconfig && \
    cd /src && \
    wget https://github.com/casacore/python-casacore/archive/v3.4.0.tar.gz && \
    tar xvf v3.4.0.tar.gz && \
    rm v3.4.0.tar.gz && \
    cd /src/python-casacore-3.4.0 && \
    . /src/venv/bin/activate && python -m pip install . && \
    cd / && \
    python -c "from pyrap.tables import table as tbl"
bennahugo commented 2 years ago

So just to link this to the discussion on timba: https://github.com/ska-sa/meqtrees-timba/pull/69#issuecomment-1022590531

The package is definitely missing some install targets.

Athanaseus commented 2 years ago

This can be solved by getting updates before package installation since there were a couple of bug fixes since the image was built.

FROM kernsuite/base:7
RUN apt update