From ab15d5e72562c09bb91512eeb51aa8814205e27b Mon Sep 17 00:00:00 2001 From: Oksana Salyk Date: Tue, 17 Sep 2024 07:49:50 +0200 Subject: [PATCH] common: remove obsolete docker file --- utils/docker/images/Dockerfile.centos-7 | 114 ------------------ utils/docker/images/Dockerfile.centos-stream | 116 ------------------- utils/docker/images/Dockerfile.debian-11 | 87 -------------- utils/docker/images/Dockerfile.fedora-31 | 100 ---------------- utils/docker/images/Dockerfile.fedora-37 | 110 ------------------ 5 files changed, 527 deletions(-) delete mode 100644 utils/docker/images/Dockerfile.centos-7 delete mode 100644 utils/docker/images/Dockerfile.centos-stream delete mode 100644 utils/docker/images/Dockerfile.debian-11 delete mode 100644 utils/docker/images/Dockerfile.fedora-31 delete mode 100644 utils/docker/images/Dockerfile.fedora-37 diff --git a/utils/docker/images/Dockerfile.centos-7 b/utils/docker/images/Dockerfile.centos-7 deleted file mode 100644 index 2d743a2c05..0000000000 --- a/utils/docker/images/Dockerfile.centos-7 +++ /dev/null @@ -1,114 +0,0 @@ -# SPDX-License-Identifier: BSD-3-Clause -# Copyright 2023, Intel Corporation - -# -# Dockerfile - a 'recipe' for Docker to build an image of centos-based -# environment for building the PMDK project. -# - -# Pull base image -FROM quay.io/centos/centos:7@sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf -MAINTAINER tomasz.gromadzki@intel.com - -# Set required environment variables -ENV OS centos -ENV OS_VER 7 -ENV PACKAGE_MANAGER rpm -ENV NOTTY 1 - -# PMDK basic dependencies -ENV BASE_DEPS "\ - git \ - daxctl-devel \ - make \ - ndctl-devel \ - pkg-config" - -# Valgrind dependencies -ENV VALGRIND_DEPS "\ - autoconf \ - automake \ - file \ - findutils \ - git" - -# benchmarks dependencies (optional) -ENV BENCH_DEPS "\ - glib2-devel" - -# examples dependencies (optional) -ENV EXAMPLES_DEPS "\ - fuse \ - fuse-devel \ - ncurses-devel \ - libuv-devel" - -# documentation dependencies (optional) -ENV DOC_DEPS "\ - pandoc" - -# tests dependencies -ENV TESTS_DEPS "\ - bc \ - gdb \ - libunwind-devel \ - ndctl \ - openssh-server \ - strace" - -# packaging dependencies -ENV PACKAGING_DEPS "\ - rpm-build \ - rpm-build-libs \ - rpmdevtools" - -# miscellaneous dependencies (mostly for CI) -ENV MISC_DEPS "\ - clang \ - lbzip2 \ - man \ - passwd \ - python3 \ - python3-flake8 \ - python3-pip \ - rsync \ - shadow-utils \ - sudo \ - tar \ - wget \ - which \ - xmlto" - -# python scripts dependencies -ENV PYTHON_DEPS "\ - distro \ - xmlrunner" - -RUN yum update -y -RUN yum install -y epel-release -RUN yum groupinstall "Development Tools" -y -RUN yum install -y \ - $BASE_DEPS \ - $VALGRIND_DEPS \ - $BENCH_DEPS \ - $EXAMPLES_DEPS \ - $DOC_DEPS \ - $TESTS_DEPS \ - $PACKAGING_DEPS \ - $MISC_DEPS \ - && yum clean all - -RUN pip3 install $PYTHON_DEPS - -# Copy install valgrind script -COPY install-valgrind.sh install-valgrind.sh -RUN ./install-valgrind.sh centos - -# Add and switch user -ENV USER pmdkuser -ENV USERPASS pmdkpass -RUN useradd -m $USER -RUN echo $USERPASS | passwd $USER --stdin -RUN gpasswd wheel -a $USER -RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers -USER $USER diff --git a/utils/docker/images/Dockerfile.centos-stream b/utils/docker/images/Dockerfile.centos-stream deleted file mode 100644 index 39d6dff150..0000000000 --- a/utils/docker/images/Dockerfile.centos-stream +++ /dev/null @@ -1,116 +0,0 @@ -# SPDX-License-Identifier: BSD-3-Clause -# Copyright 2023-2024, Intel Corporation - -# -# Dockerfile - a 'recipe' for Docker to build an image of centos-based -# environment for building the PMDK project. -# - -# Pull base image -FROM docker.io/tgagor/centos:stream@sha256:14f375a0ae61106a82ab557c160bb0f1f1b439d2afc4d03d197adce2474353a1 -MAINTAINER tomasz.gromadzki@intel.com - -# Set required environment variables -ENV OS centos -ENV OS_VER stream -ENV PACKAGE_MANAGER rpm -ENV NOTTY 1 - -# PMDK basic dependencies -ENV BASE_DEPS "\ - git \ - daxctl-devel \ - make \ - ndctl-devel \ - pkg-config" - -# Valgrind dependencies -ENV VALGRIND_DEPS "\ - autoconf \ - automake \ - file \ - findutils \ - git" - -# benchmarks dependencies (optional) -ENV BENCH_DEPS "\ - glib2-devel" - -# examples dependencies (optional) -ENV EXAMPLES_DEPS "\ - fuse \ - fuse-devel \ - ncurses-devel \ - libuv-devel" - -# documentation dependencies (optional) -ENV DOC_DEPS "\ - pandoc" - -# tests dependencies -ENV TESTS_DEPS "\ - bc \ - gdb \ - libunwind-devel \ - ndctl \ - openssh-server \ - strace" - -# packaging dependencies -ENV PACKAGING_DEPS "\ - rpm-build \ - rpm-build-libs \ - rpmdevtools" - -# miscellaneous dependencies (mostly for CI) -ENV MISC_DEPS "\ - clang \ - lbzip2 \ - man \ - passwd \ - python3 \ - python3-flake8 \ - python3-pip \ - rsync \ - shadow-utils \ - sudo \ - tar \ - which \ - wget \ - xmlto" - -# python scripts dependencies -ENV PYTHON_DEPS "\ - distro \ - xmlrunner" - -RUN dnf update -y -RUN dnf install -y epel-release -RUN dnf install -y 'dnf-command(config-manager)' -RUN dnf install -y dnf-plugins-core -RUN dnf config-manager --set-enabled crb -RUN dnf install -y \ - $BASE_DEPS \ - $VALGRIND_DEPS \ - $BENCH_DEPS \ - $EXAMPLES_DEPS \ - $DOC_DEPS \ - $TESTS_DEPS \ - $PACKAGING_DEPS \ - $MISC_DEPS \ - && dnf clean all - -RUN pip3 install $PYTHON_DEPS - -# Copy install valgrind script -COPY install-valgrind.sh install-valgrind.sh -RUN ./install-valgrind.sh centos - -# Add and switch user -ENV USER pmdkuser -ENV USERPASS pmdkpass -RUN useradd -m $USER -RUN echo $USERPASS | passwd $USER --stdin -RUN gpasswd wheel -a $USER -RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers -USER $USER diff --git a/utils/docker/images/Dockerfile.debian-11 b/utils/docker/images/Dockerfile.debian-11 deleted file mode 100644 index 6feb08e5dc..0000000000 --- a/utils/docker/images/Dockerfile.debian-11 +++ /dev/null @@ -1,87 +0,0 @@ -# SPDX-License-Identifier: BSD-3-Clause -# Copyright 2016-2024, Intel Corporation - -# -# Dockerfile - a 'recipe' for Docker to build an image of Debian-based -# environment for building the PMDK project. -# - -# Pull base image -FROM docker.io/library/debian:11@sha256:34662f5448c46bb16e56edc0a8224cc0c0fb0a6bc4713061857761e8684ff388 -MAINTAINER tomasz.gromadzki@intel.com - -# Set required environment variables -ENV OS debian -ENV OS_VER 11 -ENV PACKAGE_MANAGER dpkg -ENV NOTTY 1 -ENV DEBIAN_FRONTEND noninteractive - -# PMDK basic dependencies -ENV BASE_DEPS "build-essential \ - git \ - libdaxctl-dev \ - libndctl-dev \ - pkg-config" - -# Valgrind dependencies -ENV VALGRIND_DEPS "autoconf \ - automake \ - build-essential \ - git" - -# benchmarks dependencies (optional) -ENV BENCH_DEPS libglib2.0-dev - -# examples dependencies (optional) -ENV EXAMPLES_DEPS "libfuse-dev \ - libncurses5-dev \ - libuv1-dev" - -# documentation dependencies (optional) -ENV DOC_DEPS pandoc - -# tests dependencies -ENV TESTS_DEPS "bc \ - gdb \ - libc6-dbg \ - libunwind-dev \ - ndctl \ - python3 \ - strace" - -# packaging dependencies -ENV PACKAGING_DEPS "debhelper \ - devscripts \ - fakeroot" - -# miscellaneous dependencies (mostly for CI) -ENV MISC_DEPS "clang \ - clang-format \ - flake8 \ - sudo \ - whois" - -# Copy install valgrind script -COPY install-valgrind.sh install-valgrind.sh - -# Update the Apt cache and install basic tools -RUN apt-get update && apt-get dist-upgrade -y \ - && apt-get install -y --no-install-recommends \ - $BASE_DEPS \ - $VALGRIND_DEPS \ - $BENCH_DEPS \ - $EXAMPLES_DEPS \ - $DOC_DEPS \ - $TESTS_DEPS \ - $PACKAGING_DEPS \ - $MISC_DEPS \ - && ./install-valgrind.sh ubuntu \ - && rm -rf /var/lib/apt/lists/* - -# Add and switch user -ENV USER pmdkuser -ENV USERPASS pmdkpass -RUN useradd -m $USER -g sudo -p `mkpasswd $USERPASS` -RUN echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers -USER $USER diff --git a/utils/docker/images/Dockerfile.fedora-31 b/utils/docker/images/Dockerfile.fedora-31 deleted file mode 100644 index 18736dbaa2..0000000000 --- a/utils/docker/images/Dockerfile.fedora-31 +++ /dev/null @@ -1,100 +0,0 @@ -# SPDX-License-Identifier: BSD-3-Clause -# Copyright 2016-2024, Intel Corporation - -# -# Dockerfile - a 'recipe' for Docker to build an image of fedora-based -# environment for building the PMDK project. -# - -# Pull base image -FROM registry.fedoraproject.org/fedora:31@sha256:a7a37f74ff864eec55891b64ad360d07020827486e30a92ea81d16459645b26a -MAINTAINER tomasz.gromadzki@intel.com - -# Set required environment variables -ENV OS fedora -ENV OS_VER 31 -ENV PACKAGE_MANAGER rpm -ENV NOTTY 1 - -# PMDK basic dependencies -ENV BASE_DEPS "\ - git \ - daxctl-devel \ - make \ - ndctl-devel \ - pkgconfig" - -# Valgrind dependencies -ENV VALGRIND_DEPS "\ - autoconf \ - automake \ - file \ - findutils \ - git" - -# benchmarks dependencies (optional) -ENV BENCH_DEPS "\ - glib2-devel" - -# examples dependencies (optional) -ENV EXAMPLES_DEPS "\ - fuse \ - fuse-devel \ - ncurses-devel \ - libuv-devel" - -# documentation dependencies (optional) -ENV DOC_DEPS "\ - pandoc" - -# tests dependencies -ENV TESTS_DEPS "\ - bc \ - gdb \ - libunwind-devel \ - ndctl \ - openssh-server \ - strace" - -# packaging dependencies -ENV PACKAGING_DEPS "\ - rpm-build \ - rpm-build-libs \ - rpmdevtools" - -# miscellaneous dependencies (mostly for CI) -ENV MISC_DEPS "\ - clang \ - lbzip2 \ - man \ - python3-flake8 \ - rsync \ - shadow-utils \ - sudo \ - tar \ - which \ - xmlto" - -# Copy install valgrind script -COPY install-valgrind.sh install-valgrind.sh - -RUN dnf update -y && dnf install -y \ - $BASE_DEPS \ - $VALGRIND_DEPS \ - $BENCH_DEPS \ - $EXAMPLES_DEPS \ - $DOC_DEPS \ - $TESTS_DEPS \ - $PACKAGING_DEPS \ - $MISC_DEPS \ - && ./install-valgrind.sh fedora \ - && dnf clean all - -# Add and switch user -ENV USER pmdkuser -ENV USERPASS pmdkpass -RUN useradd -m $USER -RUN echo "$USER:$USERPASS" | chpasswd -RUN gpasswd wheel -a $USER -RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers -USER $USER diff --git a/utils/docker/images/Dockerfile.fedora-37 b/utils/docker/images/Dockerfile.fedora-37 deleted file mode 100644 index 7bba6d3025..0000000000 --- a/utils/docker/images/Dockerfile.fedora-37 +++ /dev/null @@ -1,110 +0,0 @@ -# SPDX-License-Identifier: BSD-3-Clause -# Copyright 2016-2024, Intel Corporation - -# -# Dockerfile - a 'recipe' for Docker to build an image of fedora-based -# environment for building the PMDK project. -# - -# Pull base image -FROM registry.fedoraproject.org/fedora:37@sha256:4105b568d464732d3ea6a3ce9a0095f334fa7aa86fdd1129f288d2687801d87d -MAINTAINER tomasz.gromadzki@intel.com - -# Set required environment variables -ENV OS fedora -ENV OS_VER 37 -ENV PACKAGE_MANAGER rpm -ENV NOTTY 1 - -# PMDK basic dependencies -ENV BASE_DEPS "\ - git \ - daxctl-devel \ - make \ - ndctl-devel \ - pkgconfig" - -# Valgrind dependencies -ENV VALGRIND_DEPS "\ - autoconf \ - automake \ - file \ - findutils \ - git" - -# benchmarks dependencies (optional) -ENV BENCH_DEPS "\ - glib2-devel" - -# examples dependencies (optional) -ENV EXAMPLES_DEPS "\ - fuse \ - fuse-devel \ - ncurses-devel \ - libuv-devel" - -# documentation dependencies (optional) -ENV DOC_DEPS "\ - pandoc" - -# tests dependencies -ENV TESTS_DEPS "\ - bc \ - gdb \ - libunwind-devel \ - ndctl \ - openssh-server \ - python3 \ - strace" - -# packaging dependencies -ENV PACKAGING_DEPS "\ - rpm-build \ - rpm-build-libs \ - rpmdevtools" - -# miscellaneous dependencies (mostly for CI) -ENV MISC_DEPS "\ - clang \ - hub \ - lbzip2 \ - man \ - python3-flake8 \ - python3-pip \ - rsync \ - shadow-utils \ - sudo \ - tar \ - which \ - xmlto" - -# python scripts dependencies -ENV PYTHON_DEPS "\ - distro \ - xmlrunner" - -# Copy install valgrind script -COPY install-valgrind.sh install-valgrind.sh - -RUN dnf update -y && dnf install -y \ - $BASE_DEPS \ - $VALGRIND_DEPS \ - $BENCH_DEPS \ - $EXAMPLES_DEPS \ - $DOC_DEPS \ - $TESTS_DEPS \ - $PACKAGING_DEPS \ - $MISC_DEPS \ - && ./install-valgrind.sh fedora \ - && dnf clean all - -RUN pip3 install $PYTHON_DEPS - -# Add and switch user -ENV USER pmdkuser -ENV USERPASS pmdkpass -RUN useradd -m $USER -RUN echo "$USER:$USERPASS" | chpasswd -RUN gpasswd wheel -a $USER -RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers -USER $USER