Skip to content
Snippets Groups Projects
Commit de5978b1 authored by Vandenplas, Jeremie's avatar Vandenplas, Jeremie
Browse files

Merge branch 'ubuntu_22_04' into 'main'

add ubuntu 22

See merge request !4
parents e008959e fb0679c6
No related branches found
No related tags found
1 merge request!4add ubuntu 22
...@@ -9,7 +9,7 @@ ENV LINUX_CPP_COMPONENTS_WEB='intel.oneapi.lin.dpcpp-cpp-compiler-pro' ...@@ -9,7 +9,7 @@ ENV LINUX_CPP_COMPONENTS_WEB='intel.oneapi.lin.dpcpp-cpp-compiler-pro'
ENV LINUX_FORTRAN_COMPONENTS_WEB='intel.oneapi.lin.ifort-compiler' ENV LINUX_FORTRAN_COMPONENTS_WEB='intel.oneapi.lin.ifort-compiler'
ENV LINUX_DPCPP_COMPONENTS_WEB='intel.oneapi.lin.dpcpp-cpp-compiler' ENV LINUX_DPCPP_COMPONENTS_WEB='intel.oneapi.lin.dpcpp-cpp-compiler'
RUN dnf -y update && dnf -y install git make gcc g++ findutils python3-pip procps wget cmake openssh RUN dnf -y update && dnf -y install git make gcc g++ findutils python3-pip procps wget cmake openssh which
RUN pip install --upgrade fypp RUN pip install --upgrade fypp
COPY setup_yum_dnf_repo_linux_no_sudo.sh / COPY setup_yum_dnf_repo_linux_no_sudo.sh /
RUN /setup_yum_dnf_repo_linux_no_sudo.sh && dnf -y install $LINUX_FORTRAN_COMPONENTS $LINUX_CPP_COMPONENTS $LINUX_MKL_COMPONENTS $LINUX_MKL1_COMPONENTS RUN /setup_yum_dnf_repo_linux_no_sudo.sh && dnf -y install $LINUX_FORTRAN_COMPONENTS $LINUX_CPP_COMPONENTS $LINUX_MKL_COMPONENTS $LINUX_MKL1_COMPONENTS
......
FROM ubuntu:22.04
ENV LINUX_CPP_COMPONENTS='intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic'
ENV LINUX_FORTRAN_COMPONENTS='intel-oneapi-compiler-fortran'
ENV LINUX_MKL_COMPONENTS='intel-oneapi-mkl'
ENV LINUX_MKL1_COMPONENTS='intel-oneapi-mkl-devel'
ENV LINUX_DPCPP_COMPONENTS='intel-oneapi-compiler-dpcpp-cpp'
ENV LINUX_CPP_COMPONENTS_WEB='intel.oneapi.lin.dpcpp-cpp-compiler-pro'
ENV LINUX_FORTRAN_COMPONENTS_WEB='intel.oneapi.lin.ifort-compiler'
ENV LINUX_DPCPP_COMPONENTS_WEB='intel.oneapi.lin.dpcpp-cpp-compiler'
RUN apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Europe/Paris apt-get install -y apt-utils wget build-essential pkg-config cmake ca-certificates gnupg git python3-pip openssh-client
RUN pip install --upgrade fypp
COPY setup_apt_repo_linux_no_sudo.sh /
RUN /setup_apt_repo_linux_no_sudo.sh && apt-get install -y $LINUX_FORTRAN_COMPONENTS $LINUX_CPP_COMPONENTS $LINUX_MKL_COMPONENTS $LINUX_MKL1_COMPONENTS
RUN apt-get clean all
SHELL ["/bin/bash", "-c"]
RUN source /opt/intel/oneapi/setvars.sh
# Instruction to build and push the container on WUR Gitlab
```shell
sudo docker login docker-registry.wur.nl
sudo docker build -t docker-registry.wur.nl/vande018/containers:ubuntu22_04_intel .
sudo docker push docker-registry.wur.nl/vande018/containers:ubuntu22_04_intel
```
#!/bin/bash
# download the key to system keyring
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
| gpg --dearmor | tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
# add signed entry to apt sources and configure the APT client to use Intel repository:
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list
apt-get update
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment