-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathfedora
More file actions
15 lines (13 loc) · 791 Bytes
/
fedora
File metadata and controls
15 lines (13 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ARG TAG=latest
FROM registry.fedoraproject.org/fedora:${TAG}
RUN ( dnf -y update || dnf -y update ) && \
dnf -y install \
make ccache clang clang-tools-extra cmake compiler-rt flang flang-runtime gcc-c++ gcc-gfortran git hpx-devel hwloc-devel libomp-devel llvm ninja-build sudo vim-minimal wget zstd && \
dnf clean all
RUN useradd -m -G wheel -u 1001 kokkos
RUN echo '%wheel ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER kokkos
ENV PATH=${INTEL:+/opt/intel/oneapi/compiler/latest/linux/bin:/opt/intel/oneapi/compiler/latest/linux/bin/intel64}${PATH:+:}${PATH}
ENV LD_LIBRARY_PATH=${INTEL:+/opt/intel/oneapi/compiler/latest/linux/compiler/lib/intel64:/opt/intel/oneapi/mkl/latest/lib/intel64}${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}
ENV CCACHE_MAXSIZE=250M
WORKDIR /home/kokkos