-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from aroffringa/docker-and-cmake
Docker container and CMake fixes
- Loading branch information
Showing
2 changed files
with
45 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \ | ||
apt-get install -y \ | ||
cmake \ | ||
build-essential \ | ||
pkg-config \ | ||
git \ | ||
casacore-data casacore-dev \ | ||
libblas-dev liblapack-dev \ | ||
liblua5.3-dev \ | ||
python3 \ | ||
libpython3-dev \ | ||
libboost-date-time-dev libboost-test-dev \ | ||
libboost-system-dev libboost-filesystem-dev \ | ||
libgtkmm-3.0-dev \ | ||
libcfitsio-dev \ | ||
libfftw3-dev \ | ||
libgsl-dev \ | ||
libhdf5-serial-dev \ | ||
libpng-dev | ||
|
||
RUN \ | ||
mkdir /aoflagger && \ | ||
cd /aoflagger && \ | ||
git clone https://gitlab.com/aroffringa/aoflagger.git src && \ | ||
mkdir /aoflagger/build && \ | ||
cd /aoflagger/build && \ | ||
cmake ../src && \ | ||
make install -j`nproc --all` | ||
|
||
ADD . /src | ||
WORKDIR /src | ||
|
||
RUN \ | ||
mkdir /build && \ | ||
cd /build && \ | ||
cmake ../src && \ | ||
make install -j`nproc --all` && \ | ||
aartfaac2ms --version |