-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor Feature: + Added build option for docker containers for Fedora and Ubuntu. This will ease the use of installing and using the library for users wishing to target using this platform Bug Fix: + Previously, there was an undocumented dependancy on SWIG version 3.0.12 or later which would cause build failures when using the python bindings. This has been corrected by adding appropriate documentation to the README file.
- Loading branch information
Showing
5 changed files
with
88 additions
and
3 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
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
File renamed without changes.
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,64 @@ | ||
FROM ubuntu:18.04 as builder | ||
#contrary to the Filesystem Hierarchy Standard, | ||
#warning ubuntu does not allow libraries to be installed in /usr/lib, use /usr/local instead | ||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y doxygen graphviz libhdf5-dev g++ git swig ninja-build libzstd-dev pkg-config \ | ||
libfftw3-dev python3-dev python3-numpy wget zlib1g-dev && \ | ||
wget -O cmake.sh https://github.com/Kitware/CMake/releases/download/v3.14.6/cmake-3.14.6-Linux-x86_64.sh && \ | ||
sh cmake.sh --skip-licence --exclude-subdir --prefix=/usr/local && \ | ||
apt clean -y | ||
RUN git clone https://github.com/LLNL/zfp /src/zfp && \ | ||
git clone https://github.com/disheng222/sz /src/sz && \ | ||
git clone https://github.com/CODARcode/MGARD /src/mgard && \ | ||
git clone https://github.com/CODARcode/libpressio /src/libpressio && \ | ||
mkdir -p /src/autotuning && \ | ||
cd /src/sz && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -G Ninja && \ | ||
cmake --build . && \ | ||
ninja install && \ | ||
cd /src/zfp && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_TESTING=OFF -G Ninja && \ | ||
cmake --build . && \ | ||
ninja install && \ | ||
cd /src/mgard && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_TESTING=OFF -G Ninja && \ | ||
cmake --build . && \ | ||
ninja install | ||
RUN cd /src/libpressio && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_TESTS=ON -DLIBPRESSIO_HAS_MGARD=ON -DBUILD_PYTHON_WRAPPER=ON -G Ninja && \ | ||
cmake --build . && \ | ||
CTEST_OUTPUT_ON_FAILURE=1 ctest . && \ | ||
ninja install &&\ | ||
echo done | ||
|
||
|
||
|
||
FROM ubuntu:18.04 | ||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y zlib1g libfftw3-dev libhdf5-dev libzstd-dev python3-numpy libstdc++-7-dev libpython3.6 &&\ | ||
apt-get clean -y | ||
COPY --from=builder /usr/local/lib/libSZ.so* \ | ||
/usr/local/lib/liblibpressio.so* \ | ||
/usr/local/lib/libzfp.so* \ | ||
/usr/local/lib/libmgard.so* \ | ||
/usr/local/lib/ | ||
COPY --from=builder /usr/local/include/libpressio \ | ||
/usr/local/include/sz \ | ||
/usr/local/include/zfp* \ | ||
/usr/local/include/mgard* \ | ||
/usr/local/include/ | ||
COPY --from=builder /usr/local/bin/sz /usr/bin/ | ||
COPY --from=builder /usr/lib/python3/dist-packages/*pressio* /usr/lib/python3/dist-packages/ | ||
RUN ldconfig | ||
|
||
|