Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kern 7 casarest is missing image2fits #255

Open
bennahugo opened this issue Jan 26, 2022 · 2 comments
Open

Kern 7 casarest is missing image2fits #255

bennahugo opened this issue Jan 26, 2022 · 2 comments

Comments

@bennahugo
Copy link

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
Copy link
Author

So just to link this to the discussion on timba:
ratt-ru/meqtrees-timba#69 (comment)

The package is definitely missing some install targets.

@Athanaseus
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants