-
Notifications
You must be signed in to change notification settings - Fork 6
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 #11 from ukaea/release/2.7.2
Release/2.7.2
- Loading branch information
Showing
61 changed files
with
950 additions
and
507 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
FROM centos:8 | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN sed -i 's/$releasever/$releasever-stream/g' /etc/yum.repos.d/CentOS-* | ||
RUN yum update -y --allowerasing && \ | ||
yum group install -y 'Development Tools' && \ | ||
yum install -y \ | ||
git \ | ||
wget \ | ||
boost-devel \ | ||
openssl-devel \ | ||
cmake \ | ||
libxml2-devel \ | ||
libtirpc-devel \ | ||
python39-devel \ | ||
python39-pip | ||
|
||
# Building libfmt from source | ||
RUN cd /tmp && \ | ||
wget https://github.com/fmtlib/fmt/archive/refs/tags/10.0.0.tar.gz && \ | ||
tar xzf 10.0.0.tar.gz && \ | ||
cd fmt-10.0.0 && \ | ||
cmake -Bbuild -H. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON && \ | ||
cmake --build build -j && \ | ||
cmake --install build | ||
|
||
# Building spdlog from source | ||
RUN cd /tmp && \ | ||
wget https://github.com/gabime/spdlog/archive/refs/tags/v1.11.0.tar.gz && \ | ||
tar xzf v1.11.0.tar.gz && \ | ||
cd spdlog-1.11.0 && \ | ||
cmake -Bbuild -H. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON && \ | ||
cmake --build build -j && \ | ||
cmake --install build | ||
|
||
RUN cd /tmp && \ | ||
wget https://github.com/capnproto/capnproto/archive/refs/tags/v0.10.4.tar.gz && \ | ||
tar xzf v0.10.4.tar.gz && \ | ||
cd capnproto-0.10.4 && \ | ||
cmake -Bbuild -H. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON && \ | ||
cmake --build build -j && \ | ||
cmake --install build | ||
|
||
COPY . /uda | ||
|
||
RUN cd /uda && \ | ||
cmake -B build \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DSSLAUTHENTICATION=ON \ | ||
-DCLIENT_ONLY=ON \ | ||
-DENABLE_CAPNP=ON | ||
|
||
# LD_LIBRARY_PATH needed by capnp scheam generator binary | ||
RUN cd /uda && LD_LIBRARY_PATH=/usr/local/lib64 cmake --build build --config Release | ||
|
||
RUN cd /uda && cmake --install build --config Release | ||
|
||
RUN cp -r /usr/local/python_installer ./python_installer && \ | ||
export LD_LIBRARY_PATH=/usr/local/lib64 && \ | ||
python3 -m venv ./venv && \ | ||
source ./venv/bin/activate && \ | ||
pip3 install Cython numpy && \ | ||
pip3 install ./python_installer && \ | ||
python3 -c 'import pyuda; print(pyuda.__version__)' | ||
|
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,43 @@ | ||
FROM ubuntu:22.10 | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
libboost-dev \ | ||
libboost-program-options-dev \ | ||
libssl-dev \ | ||
cmake \ | ||
build-essential \ | ||
pkg-config \ | ||
libxml2-dev \ | ||
libspdlog-dev \ | ||
ninja-build \ | ||
capnproto \ | ||
libcapnp-dev \ | ||
python3-dev \ | ||
python3-pip \ | ||
python3-venv | ||
|
||
COPY .. /uda | ||
|
||
RUN cd /uda && \ | ||
cmake -G Ninja -B build \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DSSLAUTHENTICATION=ON \ | ||
-DCLIENT_ONLY=ON \ | ||
-DENABLE_CAPNP=ON | ||
|
||
RUN cd /uda && cmake --build build --config Release | ||
|
||
RUN cd /uda && cmake --install build --config Release | ||
|
||
RUN apt-get install -y python3-dev python3-pip python3-venv | ||
|
||
RUN cp -r /usr/local/python_installer ./python_installer && \ | ||
python3 -m venv ./venv && \ | ||
source ./venv/bin/activate && \ | ||
pip3 install Cython numpy && \ | ||
pip3 install ./python_installer && \ | ||
python3 -c 'import pyuda; print(pyuda.__version__)' |
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
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,24 @@ | ||
#!/bin/bash | ||
|
||
module purge | ||
module load idl/08.4 | ||
module load java/1.8 | ||
module load hdf5-C/1.8.13 | ||
module load gcc/7.3.0 | ||
module load cmake/3.21.0 | ||
module load capnproto/0.10.4 | ||
module load fmt/10.0.0 | ||
module load spdlog/1.11.0 | ||
|
||
export HDF5_USE_SHLIB=yes | ||
export BOOST_ROOT=/usr/local/depot/boost-1-77-0-gcc7.3.0 | ||
|
||
CC=gcc CXX=g++ cmake -Bbuild_freia -H. \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=/projects/UDA/uda-install-develop \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DENABLE_CAPNP=ON \ | ||
-DUDA_CLI_BOOST_STATIC=ON \ | ||
-DUDA_HOST=uda2.mast.l \ | ||
-DUDA_PORT=56565 \ | ||
$* |
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
Oops, something went wrong.