Skip to content

Commit

Permalink
Merge pull request #60 from kokkos/junghans-patch-2
Browse files Browse the repository at this point in the history
fedora: clean up
  • Loading branch information
junghans authored Feb 5, 2025
2 parents 1ef260f + af5af33 commit 867d26d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
schedule:
- cron: '0 5 * * FRI'

concurrency:
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }}-linux-x64
cancel-in-progress: ${{github.event_name == 'pull_request'}}

jobs:
CI:
strategy:
Expand Down
17 changes: 1 addition & 16 deletions fedora
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
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 ccache clang clang-tools-extra cmake compiler-rt flang gcc-c++ gcc-gfortran git hpx-devel hwloc-devel libomp-devel llvm ninja-build sudo vim-minimal wget zstd && \
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
Expand Down

0 comments on commit 867d26d

Please sign in to comment.