diff --git a/almalinux/8/Dockerfile b/almalinux/8/Dockerfile index edcc030..7abfd9a 100644 --- a/almalinux/8/Dockerfile +++ b/almalinux/8/Dockerfile @@ -2,6 +2,16 @@ ARG ARCH= FROM ${ARCH}almalinux:8 MAINTAINER Oleg Chaplashkin +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/almalinux/8/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo + RUN dnf -y install \ # Install auxiliary tools. sudo \ diff --git a/almalinux/9/Dockerfile b/almalinux/9/Dockerfile index 0a941f5..dd4ae01 100644 --- a/almalinux/9/Dockerfile +++ b/almalinux/9/Dockerfile @@ -2,6 +2,16 @@ ARG ARCH= FROM ${ARCH}almalinux:9 MAINTAINER Oleg Chaplashkin +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/almalinux/9/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo + RUN dnf -y install \ # Install auxiliary tools. sudo \ diff --git a/astra/1.7/Dockerfile b/astra/1.7/Dockerfile index f7fc52d..aa1e3cc 100644 --- a/astra/1.7/Dockerfile +++ b/astra/1.7/Dockerfile @@ -18,6 +18,19 @@ RUN apt-get update && apt-get install -y --force-yes \ gnupg \ ca-certificates +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN mkdir -p /etc/apt/keyrings && \ + curl https://packpack.hb.vkcs.cloud/backports/gpgkey \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/apt/keyrings/packpack_backports.asc && \ + echo "deb [signed-by=/etc/apt/keyrings/packpack_backports.asc] https://packpack.hb.vkcs.cloud/backports/astra 1.7 main" \ + > /etc/apt/sources.list.d/packpack_backports.list + # Install base toolset RUN apt-get update && apt-get install -y --force-yes \ sudo \ diff --git a/centos/7/Dockerfile b/centos/7/Dockerfile index 2a22314..79b392a 100644 --- a/centos/7/Dockerfile +++ b/centos/7/Dockerfile @@ -49,7 +49,9 @@ RUN if [ $(uname -m) == 'x86_64' ]; then \ && sed -i 's,centos/,centos/altarch/,g' /etc/yum.repos.d/CentOS-SCLo-scl*; \ fi -RUN curl https://packpack.hb.bizmrg.com/backports/el/7/packpack_backports.repo \ +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/el/7/packpack_backports.repo \ --fail \ --silent \ --show-error \ diff --git a/centos/8/Dockerfile b/centos/8/Dockerfile index f745b64..fce7429 100644 --- a/centos/8/Dockerfile +++ b/centos/8/Dockerfile @@ -25,10 +25,9 @@ RUN yum -y install epel-release RUN sed -i 's/\[PowerTools\]/[powertools]/g' /etc/yum.repos.d/*.repo RUN yum config-manager --set-enabled powertools -# Repository for building/testing dependencies that are not present in vanilla -# CentOS and PowerTools / EPEL repositories, e.g. some Python 2 packages -# - install the backport repository -RUN curl https://packpack.hb.bizmrg.com/backports/el/8/packpack_backports.repo \ +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/el/8/packpack_backports.repo \ --fail \ --silent \ --show-error \ diff --git a/debian/bookworm/Dockerfile b/debian/bookworm/Dockerfile index 59bd71e..f804ce6 100644 --- a/debian/bookworm/Dockerfile +++ b/debian/bookworm/Dockerfile @@ -18,6 +18,19 @@ RUN apt-get update && apt-get install -y \ gnupg \ ca-certificates +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN mkdir -p /etc/apt/keyrings && \ + curl https://packpack.hb.vkcs.cloud/backports/gpgkey \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/apt/keyrings/packpack_backports.asc && \ + echo "deb [signed-by=/etc/apt/keyrings/packpack_backports.asc] https://packpack.hb.vkcs.cloud/backports/debian bookworm main" \ + > /etc/apt/sources.list.d/packpack_backports.list + # Install base toolset RUN apt-get update && apt-get install -y \ sudo \ diff --git a/debian/bullseye/Dockerfile b/debian/bullseye/Dockerfile index 24e0ef3..ba2cc78 100644 --- a/debian/bullseye/Dockerfile +++ b/debian/bullseye/Dockerfile @@ -28,6 +28,19 @@ RUN apt-get update && apt-get install -y \ gnupg \ ca-certificates +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN mkdir -p /etc/apt/keyrings && \ + curl https://packpack.hb.vkcs.cloud/backports/gpgkey \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/apt/keyrings/packpack_backports.asc && \ + echo "deb [signed-by=/etc/apt/keyrings/packpack_backports.asc] https://packpack.hb.vkcs.cloud/backports/debian bullseye main" \ + > /etc/apt/sources.list.d/packpack_backports.list + # Install base toolset RUN apt-get update && apt-get install -y \ sudo \ diff --git a/debian/buster/Dockerfile b/debian/buster/Dockerfile index e4c131a..20c2717 100644 --- a/debian/buster/Dockerfile +++ b/debian/buster/Dockerfile @@ -22,6 +22,19 @@ RUN apt-get update && apt-get install -y --force-yes \ gnupg \ ca-certificates +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN mkdir -p /etc/apt/keyrings && \ + curl https://packpack.hb.vkcs.cloud/backports/gpgkey \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/apt/keyrings/packpack_backports.asc && \ + echo "deb [signed-by=/etc/apt/keyrings/packpack_backports.asc] https://packpack.hb.vkcs.cloud/backports/debian buster main" \ + > /etc/apt/sources.list.d/packpack_backports.list + # Install base toolset RUN apt-get update && apt-get install -y --force-yes \ sudo \ diff --git a/debian/stretch/Dockerfile b/debian/stretch/Dockerfile index ff3ace0..3faf853 100644 --- a/debian/stretch/Dockerfile +++ b/debian/stretch/Dockerfile @@ -21,9 +21,19 @@ RUN apt-get update && apt-get install -y --force-yes \ wget \ gnupg \ ca-certificates -#ADD backports.list /etc/apt/sources.list.d/ -#ADD preferences /etc/apt/preferences.d/ -#RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/script.deb.sh | bash + +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN mkdir -p /etc/apt/keyrings && \ + curl https://packpack.hb.vkcs.cloud/backports/gpgkey \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/apt/keyrings/packpack_backports.asc && \ + echo "deb [signed-by=/etc/apt/keyrings/packpack_backports.asc] https://packpack.hb.vkcs.cloud/backports/debian stretch main" \ + > /etc/apt/sources.list.d/packpack_backports.list # Install base toolset RUN apt-get update && apt-get install -y --force-yes \ diff --git a/debian/trixie/Dockerfile b/debian/trixie/Dockerfile index 3fad633..9849cfc 100644 --- a/debian/trixie/Dockerfile +++ b/debian/trixie/Dockerfile @@ -18,6 +18,19 @@ RUN apt-get update && apt-get install -y \ gnupg \ ca-certificates +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN mkdir -p /etc/apt/keyrings && \ + curl https://packpack.hb.vkcs.cloud/backports/gpgkey \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/apt/keyrings/packpack_backports.asc && \ + echo "deb [signed-by=/etc/apt/keyrings/packpack_backports.asc] https://packpack.hb.vkcs.cloud/backports/debian trixie main" \ + > /etc/apt/sources.list.d/packpack_backports.list + # Install base toolset RUN apt-get update && apt-get install -y \ sudo \ diff --git a/fedora/26/Dockerfile b/fedora/26/Dockerfile index 111170c..2b8b138 100644 --- a/fedora/26/Dockerfile +++ b/fedora/26/Dockerfile @@ -10,7 +10,16 @@ RUN yum -y install \ curl \ pygpgme \ yum-utils -# RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/script.rpm.sh | bash + +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/fedora/26/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo # Install base toolset RUN dnf -y group install 'Development Tools' diff --git a/fedora/27/Dockerfile b/fedora/27/Dockerfile index 732b696..6db4a40 100644 --- a/fedora/27/Dockerfile +++ b/fedora/27/Dockerfile @@ -10,7 +10,16 @@ RUN yum -y install \ curl \ pygpgme \ yum-utils -# RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/script.rpm.sh | bash + +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/fedora/27/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo # Install base toolset RUN dnf -y group install 'Development Tools' diff --git a/fedora/28/Dockerfile b/fedora/28/Dockerfile index 5906913..3a627a1 100644 --- a/fedora/28/Dockerfile +++ b/fedora/28/Dockerfile @@ -4,6 +4,16 @@ MAINTAINER Alexey Kopytov # Fix missing locales ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/fedora/28/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo + # Update repositories and installed packages to avoid of issues got at: # https://github.com/tarantool/tarantool-qa/issues/60 RUN dnf update -v -y diff --git a/fedora/29/Dockerfile b/fedora/29/Dockerfile index 2701009..5fabe69 100644 --- a/fedora/29/Dockerfile +++ b/fedora/29/Dockerfile @@ -4,6 +4,16 @@ MAINTAINER Alexey Kopytov # Fix missing locales ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/fedora/29/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo + # Update repositories and installed packages to avoid of issues got at: # https://github.com/tarantool/tarantool-qa/issues/60 RUN echo "Remove disabled 'failovermethod' since Fedora 29" diff --git a/fedora/30/Dockerfile b/fedora/30/Dockerfile index bfad7a1..d823161 100644 --- a/fedora/30/Dockerfile +++ b/fedora/30/Dockerfile @@ -4,6 +4,23 @@ MAINTAINER Alexander Turenko # Fix missing locales ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +# +# dnf of Fedora 30 may be killed by SIGPIPE right after it imports the +# repository key. The known workaround is to create /run/user/0, where +# gpg-agent then keeps its sockets: +# https://bugzilla.redhat.com/show_bug.cgi?id=1769831 +# https://github.com/rpm-software-management/libdnf/pull/869 +RUN mkdir -p /run/user/0 && \ + curl https://packpack.hb.vkcs.cloud/backports/fedora/30/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo + # Update repositories and installed packages to avoid of issues got at: # https://github.com/tarantool/tarantool-qa/issues/60 RUN echo "Remove disabled 'failovermethod' since Fedora 29" diff --git a/fedora/31/Dockerfile b/fedora/31/Dockerfile index 8c85569..52854af 100644 --- a/fedora/31/Dockerfile +++ b/fedora/31/Dockerfile @@ -4,6 +4,16 @@ MAINTAINER Alexey Kopytov # Fix missing locales ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/fedora/31/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo + # Update repositories and installed packages to avoid of issues got at: # https://github.com/tarantool/tarantool-qa/issues/60 RUN dnf update -v -y @@ -15,15 +25,6 @@ RUN dnf -y group install 'RPM Development Tools' RUN dnf -y install fedora-packager RUN dnf -y install sudo git ccache cmake -# Setup backport repository for python2 packages -RUN curl https://packpack.hb.bizmrg.com/backports/fedora/31/packpack_backports.repo \ - --fail \ - --silent \ - --show-error \ - --retry 5 \ - --retry-delay 5 \ - --output /etc/yum.repos.d/packpack_backports.repo - # Enable cache system-wide ENV PATH /usr/lib/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin diff --git a/fedora/32/Dockerfile b/fedora/32/Dockerfile index 346d629..88c62f8 100644 --- a/fedora/32/Dockerfile +++ b/fedora/32/Dockerfile @@ -4,6 +4,16 @@ MAINTAINER Alexander V. Tikhonov # Fix missing locales ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/fedora/32/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo + # Update repositories and installed packages to avoid of issues got at: # https://github.com/tarantool/tarantool-qa/issues/60 RUN dnf update -v -y @@ -15,15 +25,6 @@ RUN dnf -y group install 'RPM Development Tools' RUN dnf -y install fedora-packager RUN dnf -y install sudo git ccache cmake -# Setup backport repository for python2 packages -RUN curl https://packpack.hb.bizmrg.com/backports/fedora/32/packpack_backports.repo \ - --fail \ - --silent \ - --show-error \ - --retry 5 \ - --retry-delay 5 \ - --output /etc/yum.repos.d/packpack_backports.repo - # Enable cache system-wide ENV PATH /usr/lib/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin diff --git a/fedora/33/Dockerfile b/fedora/33/Dockerfile index 9d8031e..3bab001 100644 --- a/fedora/33/Dockerfile +++ b/fedora/33/Dockerfile @@ -5,6 +5,16 @@ MAINTAINER Alexander V. Tikhonov # Fix missing locales ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/fedora/33/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo + # Update repositories and installed packages to avoid of issues got at: # https://github.com/tarantool/tarantool-qa/issues/60 RUN dnf update -v -y diff --git a/fedora/34/Dockerfile b/fedora/34/Dockerfile index 54115fa..640e412 100644 --- a/fedora/34/Dockerfile +++ b/fedora/34/Dockerfile @@ -13,6 +13,16 @@ RUN sed -i 's/metalink=/#metalink=/g' /etc/yum.repos.d/* RUN sed -i 's/#baseurl=/baseurl=/g' /etc/yum.repos.d/* RUN sed -i 's/download.example\/pub/archives.fedoraproject.org\/pub\/archive/g' /etc/yum.repos.d/* +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/fedora/34/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo + # Update repositories and installed packages to avoid of issues got at: # https://github.com/tarantool/tarantool-qa/issues/60 RUN dnf update -v -y diff --git a/fedora/35/Dockerfile b/fedora/35/Dockerfile index 6227e0d..9f4fbf3 100644 --- a/fedora/35/Dockerfile +++ b/fedora/35/Dockerfile @@ -12,6 +12,16 @@ RUN sed -i 's/metalink=/#metalink=/g' /etc/yum.repos.d/* RUN sed -i 's/#baseurl=/baseurl=/g' /etc/yum.repos.d/* RUN sed -i 's/download.example\/pub/archives.fedoraproject.org\/pub\/archive/g' /etc/yum.repos.d/* +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/fedora/35/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo + # Update repositories and installed packages to avoid of issues got at: # https://github.com/tarantool/tarantool-qa/issues/60 RUN dnf update -v -y diff --git a/fedora/36/Dockerfile b/fedora/36/Dockerfile index 598718b..d55439d 100644 --- a/fedora/36/Dockerfile +++ b/fedora/36/Dockerfile @@ -12,6 +12,16 @@ RUN sed -i 's/metalink=/#metalink=/g' /etc/yum.repos.d/* RUN sed -i 's/#baseurl=/baseurl=/g' /etc/yum.repos.d/* RUN sed -i 's/download.example\/pub/archives.fedoraproject.org\/pub\/archive/g' /etc/yum.repos.d/* +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/fedora/36/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo + # Update repositories and installed packages to avoid issues from: # https://github.com/tarantool/tarantool-qa/issues/60 RUN dnf update -v -y && \ diff --git a/fedora/37/Dockerfile b/fedora/37/Dockerfile index a6433eb..6dc250c 100644 --- a/fedora/37/Dockerfile +++ b/fedora/37/Dockerfile @@ -5,6 +5,16 @@ MAINTAINER Sergey Vorontsov # Fix missing locales ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/fedora/37/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo + # Update repositories and installed packages to avoid issues from: # https://github.com/tarantool/tarantool-qa/issues/60 RUN dnf update -v -y && \ diff --git a/fedora/38/Dockerfile b/fedora/38/Dockerfile index 80f8f1a..aa56904 100644 --- a/fedora/38/Dockerfile +++ b/fedora/38/Dockerfile @@ -5,6 +5,16 @@ MAINTAINER Alexander Turenko # Fix missing locales ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/fedora/38/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo + # Update repositories and installed packages to avoid issues from: # https://github.com/tarantool/tarantool-qa/issues/60 RUN dnf update -v -y && \ diff --git a/fedora/39/Dockerfile b/fedora/39/Dockerfile index ac755d0..a25056f 100644 --- a/fedora/39/Dockerfile +++ b/fedora/39/Dockerfile @@ -5,6 +5,16 @@ MAINTAINER Oleg Chaplashkin # Fix missing locales ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/fedora/39/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/yum.repos.d/packpack_backports.repo + # Update repositories and installed packages to avoid issues from: # https://github.com/tarantool/tarantool-qa/issues/60 RUN dnf update -v -y && \ diff --git a/opensuse/leap/15.1/Dockerfile b/opensuse/leap/15.1/Dockerfile index 39e9529..90a9951 100644 --- a/opensuse/leap/15.1/Dockerfile +++ b/opensuse/leap/15.1/Dockerfile @@ -25,5 +25,22 @@ RUN zypper install -y \ xz \ yum-utils +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +# +# zypper asks before it trusts a new repository key. The refresh imports the +# key into the image, so later zypper calls use the repository without the +# question: --non-interactive keeps the refresh from waiting for an answer, +# and --gpg-auto-import-keys makes it trust the key instead of rejecting it. +RUN curl https://packpack.hb.vkcs.cloud/backports/opensuse-leap/15.1/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/zypp/repos.d/packpack_backports.repo && \ + zypper --non-interactive --gpg-auto-import-keys refresh \ + packpack_backports packpack_backports-source + # Enable sudo without password RUN echo '%users ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers diff --git a/opensuse/leap/15.2/Dockerfile b/opensuse/leap/15.2/Dockerfile index c378d63..1eed54c 100644 --- a/opensuse/leap/15.2/Dockerfile +++ b/opensuse/leap/15.2/Dockerfile @@ -25,5 +25,22 @@ RUN zypper install -y \ xz \ yum-utils +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +# +# zypper asks before it trusts a new repository key. The refresh imports the +# key into the image, so later zypper calls use the repository without the +# question: --non-interactive keeps the refresh from waiting for an answer, +# and --gpg-auto-import-keys makes it trust the key instead of rejecting it. +RUN curl https://packpack.hb.vkcs.cloud/backports/opensuse-leap/15.2/packpack_backports.repo \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/zypp/repos.d/packpack_backports.repo && \ + zypper --non-interactive --gpg-auto-import-keys refresh \ + packpack_backports packpack_backports-source + # Enable sudo without password RUN echo '%users ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers diff --git a/redos/7.3/Dockerfile b/redos/7.3/Dockerfile index b037959..c6cf7e6 100644 --- a/redos/7.3/Dockerfile +++ b/redos/7.3/Dockerfile @@ -2,19 +2,18 @@ FROM registry.red-soft.ru/ubi7/ubi:7.3.7-260914 MAINTAINER Sergei Vorontsov "piligrim@rootnix.net" -ENV BACKPORTS_REPO_FILE=https://packpack.hb.vkcs.cloud/backports/redos/7.3/packpack_backports.repo - # Fix missing locales. ENV LC_ALL="en_US.UTF-8" LANG="en_US.UTF-8" -# Install backports repo. -RUN curl $BACKPORTS_REPO_FILE \ +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN curl https://packpack.hb.vkcs.cloud/backports/redos/7.3/packpack_backports.repo \ --fail \ --silent \ --show-error \ --retry 5 \ --retry-delay 5 \ - --output /etc/yum.repos.d/$(basename $BACKPORTS_REPO_FILE) + --output /etc/yum.repos.d/packpack_backports.repo # Install base toolset for building and packaging projects. RUN dnf -y update && \ diff --git a/ubuntu/bionic/Dockerfile b/ubuntu/bionic/Dockerfile index b966f0e..a9a8f91 100644 --- a/ubuntu/bionic/Dockerfile +++ b/ubuntu/bionic/Dockerfile @@ -19,6 +19,19 @@ RUN apt-get update && apt-get install -y --force-yes \ ca-certificates \ software-properties-common +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN mkdir -p /etc/apt/keyrings && \ + curl https://packpack.hb.vkcs.cloud/backports/gpgkey \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/apt/keyrings/packpack_backports.asc && \ + echo "deb [signed-by=/etc/apt/keyrings/packpack_backports.asc] https://packpack.hb.vkcs.cloud/backports/ubuntu bionic main" \ + > /etc/apt/sources.list.d/packpack_backports.list + # Install base toolset RUN apt-get update && apt-get install -y --force-yes \ sudo \ diff --git a/ubuntu/focal/Dockerfile b/ubuntu/focal/Dockerfile index dafbeba..38560b8 100644 --- a/ubuntu/focal/Dockerfile +++ b/ubuntu/focal/Dockerfile @@ -20,6 +20,19 @@ RUN apt-get update && apt-get install -y --force-yes \ ca-certificates \ software-properties-common +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN mkdir -p /etc/apt/keyrings && \ + curl https://packpack.hb.vkcs.cloud/backports/gpgkey \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/apt/keyrings/packpack_backports.asc && \ + echo "deb [signed-by=/etc/apt/keyrings/packpack_backports.asc] https://packpack.hb.vkcs.cloud/backports/ubuntu focal main" \ + > /etc/apt/sources.list.d/packpack_backports.list + # Install base toolset RUN apt-get update && apt-get install -y --force-yes \ sudo \ diff --git a/ubuntu/groovy/Dockerfile b/ubuntu/groovy/Dockerfile index e32af30..6d536e5 100644 --- a/ubuntu/groovy/Dockerfile +++ b/ubuntu/groovy/Dockerfile @@ -28,6 +28,19 @@ RUN apt-get update && apt-get install -y --force-yes \ ca-certificates \ software-properties-common +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN mkdir -p /etc/apt/keyrings && \ + curl https://packpack.hb.vkcs.cloud/backports/gpgkey \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/apt/keyrings/packpack_backports.asc && \ + echo "deb [signed-by=/etc/apt/keyrings/packpack_backports.asc] https://packpack.hb.vkcs.cloud/backports/ubuntu groovy main" \ + > /etc/apt/sources.list.d/packpack_backports.list + # Install base toolset RUN apt-get update && apt-get install -y --force-yes \ sudo \ diff --git a/ubuntu/jammy/Dockerfile b/ubuntu/jammy/Dockerfile index 3a57afd..3dc2bac 100644 --- a/ubuntu/jammy/Dockerfile +++ b/ubuntu/jammy/Dockerfile @@ -36,5 +36,18 @@ RUN apt-get update && apt-get install -y --force-yes \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN mkdir -p /etc/apt/keyrings && \ + curl https://packpack.hb.vkcs.cloud/backports/gpgkey \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/apt/keyrings/packpack_backports.asc && \ + echo "deb [signed-by=/etc/apt/keyrings/packpack_backports.asc] https://packpack.hb.vkcs.cloud/backports/ubuntu jammy main" \ + > /etc/apt/sources.list.d/packpack_backports.list + # Enable sudo without password RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers diff --git a/ubuntu/noble/Dockerfile b/ubuntu/noble/Dockerfile index 9aaca5a..31b53ef 100644 --- a/ubuntu/noble/Dockerfile +++ b/ubuntu/noble/Dockerfile @@ -36,6 +36,19 @@ RUN apt-get update && apt-get install -y --force-yes \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +RUN mkdir -p /etc/apt/keyrings && \ + curl https://packpack.hb.vkcs.cloud/backports/gpgkey \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/apt/keyrings/packpack_backports.asc && \ + echo "deb [signed-by=/etc/apt/keyrings/packpack_backports.asc] https://packpack.hb.vkcs.cloud/backports/ubuntu noble main" \ + > /etc/apt/sources.list.d/packpack_backports.list + # Enable sudo without password RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers diff --git a/ubuntu/xenial/Dockerfile b/ubuntu/xenial/Dockerfile index ac8c4e4..58f8262 100644 --- a/ubuntu/xenial/Dockerfile +++ b/ubuntu/xenial/Dockerfile @@ -18,9 +18,23 @@ RUN apt-get update && apt-get install -y --force-yes \ gnupg \ ca-certificates \ software-properties-common python-software-properties -#ADD backports.list /etc/apt/sources.list.d/ -#ADD preferences /etc/apt/preferences.d/ -#RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/script.deb.sh | bash + +# Enable the packpack backports repository: dependencies for building and +# testing that the distribution lacks or ships too old. +# +# apt of Ubuntu 16.04 reads only a binary key, so the key is dearmored. +RUN mkdir -p /etc/apt/keyrings && \ + curl https://packpack.hb.vkcs.cloud/backports/gpgkey \ + --fail \ + --silent \ + --show-error \ + --retry 5 \ + --retry-delay 5 \ + --output /etc/apt/keyrings/packpack_backports.asc && \ + gpg --batch --dearmor --output /etc/apt/keyrings/packpack_backports.gpg \ + /etc/apt/keyrings/packpack_backports.asc && \ + echo "deb [signed-by=/etc/apt/keyrings/packpack_backports.gpg] https://packpack.hb.vkcs.cloud/backports/ubuntu xenial main" \ + > /etc/apt/sources.list.d/packpack_backports.list # Install base toolset RUN apt-get update && apt-get install -y --force-yes \