-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update CMake.yml * Update and rename CMake.yml to build_cmake.yml * Update and rename build-docker.yml to build_docker.yml * Update build_cmake.yml * Update build_docker.yml * adding docker file and update readme * update readme
- Loading branch information
Showing
13 changed files
with
252 additions
and
197 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
11 changes: 4 additions & 7 deletions
11
.github/workflows/build-docker.yml → .github/workflows/build_docker.yml
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.
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,44 @@ | ||
Bootstrap: docker | ||
From: nvidia/cuda:12.2.0-devel-ubuntu22.04 | ||
|
||
%post | ||
apt-get update && apt-get install -y --no-install-recommends \ | ||
software-properties-common \ | ||
build-essential \ | ||
cmake \ | ||
libtbb-dev \ | ||
gcc-11 \ | ||
g++-11 \ | ||
wget \ | ||
libboost-all-dev \ | ||
libhdf5-dev | ||
|
||
apt-get clean && apt-get -y autoremove && rm -rf /var/lib/apt/lists/* | ||
|
||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 \ | ||
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100 | ||
|
||
CMAKE_VERSION=3.30.1 | ||
CMAKE_DIR=cmake-${CMAKE_VERSION}-linux-x86_64 | ||
|
||
wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/${CMAKE_DIR}.tar.gz && \ | ||
tar -zxvf ${CMAKE_DIR}.tar.gz && \ | ||
mv ${CMAKE_DIR} /opt/cmake && \ | ||
ln -s /opt/cmake/bin/* /usr/local/bin && \ | ||
rm ${CMAKE_DIR}.tar.gz | ||
|
||
mkdir -p /opt/SpinWalk | ||
cd /opt/SpinWalk | ||
|
||
%files | ||
. /opt/SpinWalk | ||
|
||
%post | ||
cd /opt/SpinWalk | ||
cmake -B ./build && cmake --build ./build --config Release && cmake --install ./build | ||
|
||
%labels | ||
org.opencontainers.image.authors="Ali Aghaeifar" | ||
|
||
# apptainer build --disable-cache spinwalk.sif apptainer.def | ||
|
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
3 changes: 3 additions & 0 deletions
3
tests/create_apptainer.sh → containers/docker_to_apptainer.sh
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.