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

fedora: clean up #60

Merged
merged 5 commits into from
Feb 5, 2025
Merged
Changes from 3 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
17 changes: 1 addition & 16 deletions fedora
Original file line number Diff line number Diff line change
@@ -1,30 +1,15 @@
ARG TAG=latest
FROM registry.fedoraproject.org/fedora:${TAG}

ARG INTEL

RUN ( dnf -y update || dnf -y update ) && \
dnf -y install \
make cmake git gcc-c++ gcc-gfortran ccache vim-minimal clang llvm compiler-rt sudo clang-tools-extra ninja-build libomp-devel wget zstd hwloc-devel flang hpx-devel && \
make cmake git gcc-c++ gcc-gfortran ccache vim-minimal clang llvm compiler-rt sudo clang-tools-extra ninja-build libomp-devel wget zstd hwloc-devel flang hpx-devel clang-tools-extra && \
junghans marked this conversation as resolved.
Show resolved Hide resolved
dnf clean all

RUN source /etc/os-release && if [ "${VERSION_ID}" -lt 40 ]; then \
( dnf -y update || dnf -y update ) && \
dnf -y install flang-devel && \
dnf clean all; \
fi

RUN if [ "${INTEL}" = "yes" ]; then \
printf "[oneAPI]\nname=Intel oneAPI\nbaseurl=https://yum.repos.intel.com/oneapi\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB" > /etc/yum.repos.d/intel-oneapi.repo && \
dnf -y update && \
dnf -y install intel-oneapi-compiler-fortran intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic && \
dnf clean all; \
fi

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}

Check warning on line 12 in fedora

View workflow job for this annotation

GitHub Actions / CI (fedora, latest)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$INTEL' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 12 in fedora

View workflow job for this annotation

GitHub Actions / CI (fedora, rawhide, TAG=rawhide, true)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$INTEL' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
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}

Check warning on line 13 in fedora

View workflow job for this annotation

GitHub Actions / CI (fedora, latest)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LD_LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 13 in fedora

View workflow job for this annotation

GitHub Actions / CI (fedora, latest)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$INTEL' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 13 in fedora

View workflow job for this annotation

GitHub Actions / CI (fedora, rawhide, TAG=rawhide, true)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$INTEL' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 13 in fedora

View workflow job for this annotation

GitHub Actions / CI (fedora, rawhide, TAG=rawhide, true)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LD_LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
ENV CCACHE_MAXSIZE=250M
WORKDIR /home/kokkos
Loading