diff --git a/docker_scripts/README.md b/docker_scripts/README.md deleted file mode 100644 index d0a8f72c4..000000000 --- a/docker_scripts/README.md +++ /dev/null @@ -1,22 +0,0 @@ -**How to test with a new Trilinos version** -- Pick a Trilinos version to use. You can use a tag or a commit hash. -- Add another image definition to `ci-docker.yml` (see [6231ba9](https://github.com/Pressio/pressio/commit/6231ba9b5d3b11e820951f8cdb83ffcdb0c75577)). -- Enable pushing images from branches to get the new image into registry (see [38a7fb5](https://github.com/Pressio/pressio/commit/38a7fb5e5c03a53aa77b711de53855614582293c)). - - Normally pushing only happens on `develop`. In this case we need the new image to be pushed from branch to be able to run the tests from `ci-trilinos.yml`. -- You need to let CI run at least once for the image to be pushed to container registry. -- Once the image is published, remember to disable pushing from branches (see [b9540c7](https://github.com/Pressio/pressio/commit/b9540c756bb2c6de3fb24e2c78d3f2c06c524768)). -- You can now enable testing using the newly added image in `ci-trilinos.yml` (see [496df2d](https://github.com/Pressio/pressio/commit/496df2d33f085518e5897baad825c893b588367d)). - -See how Trilinos `702aac5` was added in https://github.com/Pressio/pressio/pull/651. - ---- -**Debugging notes** - -You can double-check Trilinos version in `Build and Push Docker images for Github Container Registry` step: -``` -#17 46.23 HEAD is now at 702aac58950 Merge Pull Request #11800 from gsjaardema/Trilinos/seacas-snapshot-04-18-23 -``` -You should also see a successful push at the end of that step: -``` -#20 pushing manifest for ghcr.io/pressio/ubuntu-gnu-trilinos-11:702aac5@sha256:0428a42abee7e5c322c0a8527b0653b326bb59486fa7246a90d629742400a330 3.4s done -``` diff --git a/docker_scripts/fedora-clang.dockerfile b/docker_scripts/fedora-clang.dockerfile deleted file mode 100644 index 2471ea373..000000000 --- a/docker_scripts/fedora-clang.dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -ARG FEDORA_VERSION=39 -FROM fedora:${FEDORA_VERSION} - -RUN dnf update -y && \ - dnf install -y \ - clang \ - cmake \ - git \ - gtest-devel \ - hostname \ - make \ - wget && \ - dnf clean all - -ENV CC=/usr/bin/clang -ENV CXX=/usr/bin/clang++ diff --git a/docker_scripts/fedora-gnu.dockerfile b/docker_scripts/fedora-gnu.dockerfile deleted file mode 100644 index 9f37d726d..000000000 --- a/docker_scripts/fedora-gnu.dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -ARG FEDORA_VERSION=39 -FROM fedora:${FEDORA_VERSION} - -RUN dnf update -y && \ - dnf install -y \ - cmake \ - g++ \ - gcc \ - git \ - gtest-devel \ - hostname \ - make \ - wget && \ - dnf clean all - -ENV CC=/usr/bin/gcc -ENV CXX=/usr/bin/g++ diff --git a/docker_scripts/intel-oneapi.dockerfile b/docker_scripts/intel-oneapi.dockerfile deleted file mode 100644 index ae016aff7..000000000 --- a/docker_scripts/intel-oneapi.dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -FROM intel/oneapi-hpckit:latest - -ENV DEBIAN_FRONTEND=noninteractive - -RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | apt-key add - - -RUN apt-get update -y -q && \ - apt-get upgrade -y -q && \ - apt-get install -y -q --no-install-recommends \ - cmake \ - git \ - gnupg2 \ - libeigen3-dev \ - libgtest-dev \ - make \ - software-properties-common \ - wget && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -ENV CC=/opt/intel/oneapi/compiler/latest/linux/bin/icx -ENV CXX=/opt/intel/oneapi/compiler/latest/linux/bin/icpx diff --git a/docker_scripts/ubuntu-clang.dockerfile b/docker_scripts/ubuntu-clang.dockerfile deleted file mode 100644 index 13d86f898..000000000 --- a/docker_scripts/ubuntu-clang.dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG UBUNTU_VERSION=22.04 -FROM ubuntu:${UBUNTU_VERSION} - -ARG COMPILER_VERSION=14 - -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt-get update -y -q && \ - apt-get upgrade -y -q && \ - apt-get install -y -q --no-install-recommends \ - ca-certificates \ - clang-${COMPILER_VERSION} \ - cmake \ - git \ - libgtest-dev \ - make \ - wget && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -ENV CC=/usr/bin/clang-${COMPILER_VERSION} -ENV CXX=/usr/bin/clang++-${COMPILER_VERSION} diff --git a/docker_scripts/ubuntu-gnu-trilinos.dockerfile b/docker_scripts/ubuntu-gnu-trilinos.dockerfile deleted file mode 100644 index 3e31c4748..000000000 --- a/docker_scripts/ubuntu-gnu-trilinos.dockerfile +++ /dev/null @@ -1,96 +0,0 @@ -ARG UBUNTU_VERSION=22.04 -FROM ubuntu:${UBUNTU_VERSION} - -ARG CMAKE_VERSION=3.27.8 -ARG COMPILER_VERSION=11 -ARG CC=gcc-${COMPILER_VERSION} -ARG CXX=g++-${COMPILER_VERSION} -ARG GFORTRAN=gfortran-${COMPILER_VERSION} -ARG DOCKER_TAG=trilinos-release-14-4-0 - -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt-get update -y -q && \ - apt-get upgrade -y -q && \ - apt-get install -y -q --no-install-recommends \ - ca-certificates \ - git \ - libgtest-dev \ - liblapack-dev \ - libopenblas-dev \ - libopenmpi-dev \ - make \ - python3 \ - python3-numpy \ - wget \ - $CC $CXX $GFORTRAN && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -# CMake installation -RUN wget -O cmake.sh https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-${CMAKE_VERSION}-Linux-x86_64.sh && \ - sh cmake.sh --skip-license --exclude-subdir --prefix=/usr/local/ && \ - rm cmake.sh - -RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/${CC} 10 -RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/${CXX} 10 -RUN update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/${GFORTRAN} 10 -RUN update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 20 -RUN update-alternatives --set cc /usr/bin/gcc -RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 20 -RUN update-alternatives --set c++ /usr/bin/g++ -RUN update-alternatives --install /usr/bin/fortrann fortrann /usr/bin/gfortran 20 -RUN update-alternatives --set fortrann /usr/bin/gfortran - -# Setting environment variables -ENV CC=/usr/bin/mpicc -ENV CXX=/usr/bin/mpic++ -ENV FC=/usr/bin/mpifort -ENV F77=/usr/bin/mpifort -ENV F90=/usr/bin/mpifort -ENV MPIRUNe=/usr/bin/mpirun - -# Building Trilinos -WORKDIR /home -RUN git clone https://github.com/trilinos/Trilinos.git && \ - cd Trilinos && \ - git checkout ${DOCKER_TAG} - -RUN cmake -B Trilinos/builddir \ - -D CMAKE_BUILD_TYPE:STRING=Release \ - -D BUILD_SHARED_LIBS:BOOL=ON \ - -D TPL_FIND_SHARED_LIBS=ON \ - -D Trilinos_LINK_SEARCH_START_STATIC=OFF \ - -D CMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \ - -D TPL_ENABLE_MPI:BOOL=ON \ - -D MPI_C_COMPILER:FILEPATH=/usr/bin/mpicc \ - -D MPI_CXX_COMPILER:FILEPATH=/usr/bin/mpic++ \ - -D MPI_USE_COMPILER_WRAPPERS:BOOL=ON \ - -D Trilinos_ENABLE_Fortran:BOOL=ON \ - -D MPI_Fortran_COMPILER:FILEPATH=/usr/bin/mpifort \ - -D Trilinos_ENABLE_TESTS:BOOL=OFF \ - -D Trilinos_ENABLE_EXAMPLES:BOOL=OFF \ - -D TPL_ENABLE_BLAS=ON \ - -D TPL_ENABLE_LAPACK=ON \ - -D Kokkos_ENABLE_SERIAL:BOOL=ON \ - -D Kokkos_ENABLE_THREADS:BOOL=OFF \ - -D Kokkos_ENABLE_OPENMP:BOOL=OFF \ - -D Kokkos_ENABLE_DEPRECATED_CODE=OFF \ - -D Trilinos_ENABLE_ALL_PACKAGES:BOOL=OFF \ - -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=OFF \ - -D Trilinos_ENABLE_Teuchos:BOOL=ON \ - -D Trilinos_ENABLE_Epetra:BOOL=ON \ - -D Trilinos_ENABLE_Tpetra:BOOL=ON \ - -D Tpetra_ENABLE_DEPRECATED_CODE:BOOL=OFF \ - -D Tpetra_ENABLE_TSQR:BOOL=ON \ - -D Trilinos_ENABLE_EpetraExt:BOOL=ON \ - -D Trilinos_ENABLE_AztecOO:BOOL=ON \ - -D Trilinos_ENABLE_Ifpack:BOOL=ON \ - -D Trilinos_ENABLE_Ifpack2:BOOL=ON \ - -D Trilinos_ENABLE_ROL:BOOL=ON \ - -D CMAKE_INSTALL_PREFIX:PATH=/home/pressio_builds/trilinos/install \ - -S Trilinos && \ - cmake --build Trilinos/builddir --target install - -# Cleaning after builds -RUN rm -rf Trilinos diff --git a/docker_scripts/ubuntu-gnu.dockerfile b/docker_scripts/ubuntu-gnu.dockerfile deleted file mode 100644 index 5d736dfe9..000000000 --- a/docker_scripts/ubuntu-gnu.dockerfile +++ /dev/null @@ -1,24 +0,0 @@ -ARG UBUNTU_VERSION=22.04 -FROM ubuntu:${UBUNTU_VERSION} - -ARG COMPILER_VERSION=11 - -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt-get update -y -q && \ - apt-get upgrade -y -q && \ - apt-get install -y -q --no-install-recommends \ - ca-certificates \ - cmake \ - gcc-${COMPILER_VERSION} \ - g++-${COMPILER_VERSION} \ - git \ - libgtest-dev \ - make \ - software-properties-common \ - wget && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -ENV CC=/usr/bin/gcc-${COMPILER_VERSION} -ENV CXX=/usr/bin/g++-${COMPILER_VERSION}