Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Dockerized build on Apple Silicon #80

Draft
wants to merge 3 commits into
base: release
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions building/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# on top of this image, use CMake to install the
# additional moonray dependencies.

FROM nvidia/cuda:11.4.0-base-centos7
# Use Rocky9 instead of Centos7, since Centos7
# will be discontinued soon
FROM arm64v8/rockylinux:9

RUN yum install -y epel-release centos-release-scl.noarch
RUN yum install -y devtoolset-9 devtoolset-9-gcc \
Expand All @@ -15,13 +17,12 @@ RUN yum install -y bison flex wget git python3 python3-devel \
# Not required when using cuda:11.4.0-base-centos7
# RUN yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo
RUN yum install -y mesa-libGL
RUN yum install -y cuda-toolkit-11-4

# Not needed if you skip building the GUI apps (CMake -DBUILD_QT_APPS=NO)
RUN yum install -y qt5-qtbase-devel qt5-qtscript-devel

RUN mkdir /installs /installs/bin /installs/lib /installs/include
RUN cd /installs; wget https://github.com/Kitware/CMake/releases/download/v3.23.1/cmake-3.23.1-linux-x86_64.tar.gz; tar xzf cmake-3.23.1-linux-x86_64.tar.gz
ENV PATH=/installs/cmake-3.23.1-linux-x86_64/bin:${PATH}
RUN cd /installs; wget https://github.com/Kitware/CMake/releases/download/v3.23.1/cmake-3.23.1-linux-aarch64.tar.gz; tar xzf cmake-3.23.1-linux-aarch64.tar.gz
ENV PATH=/installs/cmake-3.23.1-linux-aarch64/bin:${PATH}
RUN mkdir /build
CMD scl enable devtoolset-9 bash