Skip to content

Commit

Permalink
Merge pull request #210 from mach3-software/feature_CUDAbot
Browse files Browse the repository at this point in the history
Say hello to new CUDA bot
  • Loading branch information
KSkwarczynski authored Nov 7, 2024
2 parents 66a293b + e8e88ff commit a060615
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/CIBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
file: Doc/MaCh3DockerFiles/Fedora32/Dockerfile
tag: fedora32latest
cmakeoptions: -DMaCh3_PYTHON_ENABLED=ON -DMaCh3_LOW_MEMORY_STRUCTS_ENABLED=ON
- os: Rocky9 CUDA
file: Doc/MaCh3DockerFiles/Rocky9/Dockerfile
tag: rocky9latest
cmakeoptions: -DMaCh3_PYTHON_ENABLED=ON

name: Build CI ${{ matrix.os }}

Expand Down
42 changes: 42 additions & 0 deletions Doc/MaCh3DockerFiles/Rocky9/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#To run use: docker build -t mach3 .
# KS: Get glorious container from Kamil which will work as a base
FROM kamilskwarczynski/nukamil:latest AS mach3_build

# Add a label for the author
LABEL maintainer="The MaCh3 Collaboration"
LABEL website="https://mach3-software.github.io/MaCh3/"
LABEL org.opencontainers.image.description="Official MaCh3 container"

# Declare the build argument
ARG MACH3_VERSION
ENV MACH3_VERSION=${MACH3_VERSION:-develop}

ARG CMAKE_OPTIONS
ENV CMAKE_OPTIONS=${CMAKE_OPTIONS:-DMaCh3_PYTHON_ENABLED=ON}

ARG INSTALL_OPTIONS
ENV INSTALL_OPTIONS=${INSTALL_OPTIONS:-"VERBOSE=1"}

ENV MACH3_WORK_DIR=/opt/MaCh3/
ENV MACH3_INSTALL_DIR=/opt/MaCh3/build/

RUN mkdir -p ${MACH3_WORK_DIR}

WORKDIR /opt/
# KS: Let's clone MaCh3
RUN --mount=type=ssh git clone https://github.com/mach3-software/MaCh3 ${MACH3_WORK_DIR}
WORKDIR ${MACH3_WORK_DIR}
RUN git checkout ${MACH3_VERSION}

RUN mkdir -p ${MACH3_INSTALL_DIR}
WORKDIR ${MACH3_INSTALL_DIR}
RUN cmake ${CMAKE_OPTIONS} ${MACH3_WORK_DIR}
RUN make ${INSTALL_OPTIONS} && make install

# KS: Need to set them here, otherwise container using this container will not be able to find MaCh3
ENV MaCh3_ROOT=${MACH3_INSTALL_DIR}
ENV PATH=${MaCh3_ROOT}/bin:${PATH} \
LD_LIBRARY_PATH=${MaCh3_ROOT}/lib:${LD_LIBRARY_PATH}

# Start from MaCh3 install dir
WORKDIR ${MACH3_INSTALL_DIR}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ Based on several test here are recommended version:
| Name | Status |
|-------------|--------|
| Alma9 ||
| Rocky9 ||
| Ubuntu22.04 ||
| Fedora32 ||
| CentOS7 ||
Expand Down

0 comments on commit a060615

Please sign in to comment.