-
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.
- Loading branch information
Showing
3 changed files
with
69 additions
and
41 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,34 @@ | ||
|
||
FROM ubuntu:24.04 | ||
USER root | ||
|
||
# needed for add-apt-repository | ||
RUN apt-get update && apt install -y software-properties-common && apt-get update && apt-get clean && apt-get -y autoremove && rm -rf /var/lib/apt/lists/* | ||
|
||
# Install the necessary dependencies for TBB and GCC 11 | ||
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test && \ | ||
apt-get update && apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
cmake \ | ||
libtbb-dev \ | ||
gcc-11 \ | ||
g++-11 \ | ||
libboost-all-dev \ | ||
libhdf5-dev \ | ||
&& apt-get clean && apt-get -y autoremove && rm -rf /var/lib/apt/lists/* | ||
|
||
# Set the default GCC version to 11 | ||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 \ | ||
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100 | ||
|
||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11 && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11 | ||
|
||
COPY . /opt/SpinWalk/ | ||
WORKDIR /opt/SpinWalk | ||
RUN cmake -B ./build && cmake --build ./build --config Release && cmake --install ./build | ||
|
||
LABEL org.opencontainers.image.authors="Ali Aghaeifar" | ||
|
||
# docker build -t spinwalk . | ||
# docker run --gpus all --rm -it --runtime=nvidia spinwalk bash | ||
# clear && rm -rf ./build && cmake -B ./build && cmake --build ./build --config Release |