From 623e5124a8b4222e7fc5cb465c8d2ba4f4a5a1ee Mon Sep 17 00:00:00 2001 From: Sergei Voronezhskii Date: Fri, 26 Oct 2018 03:28:02 +0300 Subject: [PATCH 01/21] Add Ubuntu 18.10 Cosmic Cuttlefish --- ubuntu/cosmic/Dockerfile | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 ubuntu/cosmic/Dockerfile diff --git a/ubuntu/cosmic/Dockerfile b/ubuntu/cosmic/Dockerfile new file mode 100644 index 0000000..268568e --- /dev/null +++ b/ubuntu/cosmic/Dockerfile @@ -0,0 +1,41 @@ +FROM ubuntu:cosmic +MAINTAINER Roman Tsisyk + +# Fix missing locales +ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" + +# Skip interactive post-install scripts +ENV DEBIAN_FRONTEND=noninteractive + +# Don't install recommends +RUN echo 'apt::install-recommends "false";' > /etc/apt/apt.conf.d/00recommends + +# Enable extra repositories +RUN apt-get update && apt-get install -y --force-yes \ + apt-transport-https \ + curl \ + wget \ + gnupg \ + ca-certificates \ + software-properties-common + +# Install base toolset +RUN apt-get update && apt-get install -y --force-yes \ + sudo \ + git \ + build-essential \ + cmake \ + gdb \ + ccache \ + devscripts \ + debhelper \ + cdbs \ + fakeroot \ + lintian \ + equivs \ + rpm \ + alien \ + dh-systemd + +# Enable sudo without password +RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers From 0fa47af2a410c510bb663985a089b15f338f04df Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Sun, 16 Dec 2018 18:46:34 +0300 Subject: [PATCH 02/21] Add Fedora 29. --- fedora/29/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 fedora/29/Dockerfile diff --git a/fedora/29/Dockerfile b/fedora/29/Dockerfile new file mode 100644 index 0000000..553a58b --- /dev/null +++ b/fedora/29/Dockerfile @@ -0,0 +1,18 @@ +FROM fedora:29 +MAINTAINER Alexey Kopytov + +# Fix missing locales +ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" + +# Install base toolset +RUN dnf -y group install 'Development Tools' +RUN dnf -y group install 'C Development Tools and Libraries' +RUN dnf -y group install 'RPM Development Tools' +RUN dnf -y install fedora-packager +RUN dnf -y install sudo git ccache cmake + +# Enable cache system-wide +ENV PATH /usr/lib/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin + +# Enable sudo without tty +RUN sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers From e6f1b538e398af19525fe2253f6e439385699ce3 Mon Sep 17 00:00:00 2001 From: Alexander Turenko Date: Tue, 26 Mar 2019 03:19:18 +0300 Subject: [PATCH 03/21] Remove Debian Jessie backports repositories It was removed from the official mirror, because backports is not a part of the LTS architecture. See [1] and [2] ('Deprecation of LTS support for backports') for more information. The reason to update the image is that doing `apt-get update` from the image (say, from a prebuild script) now leads to the following errors: | Err http://ftp.debian.org jessie-backports/main Sources | 404 Not Found | Err http://ftp.debian.org jessie-backports/main amd64 Packages | 404 Not Found [1]: https://lists.debian.org/debian-devel-announce/2019/03/msg00006.html [2]: https://backports.debian.org/ --- debian/jessie/Dockerfile | 1 - debian/jessie/backports.list | 2 -- 2 files changed, 3 deletions(-) delete mode 100644 debian/jessie/backports.list diff --git a/debian/jessie/Dockerfile b/debian/jessie/Dockerfile index 970fc25..81f2174 100644 --- a/debian/jessie/Dockerfile +++ b/debian/jessie/Dockerfile @@ -17,7 +17,6 @@ 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 diff --git a/debian/jessie/backports.list b/debian/jessie/backports.list deleted file mode 100644 index bbf22b0..0000000 --- a/debian/jessie/backports.list +++ /dev/null @@ -1,2 +0,0 @@ -deb http://ftp.debian.org/debian jessie-backports main -deb-src http://ftp.debian.org/debian jessie-backports main From b34e862aa558ae56597c1a56a156fa64c7108d2e Mon Sep 17 00:00:00 2001 From: Alexander Turenko Date: Tue, 26 Mar 2019 15:38:57 +0300 Subject: [PATCH 04/21] Remove Debian Jessie updates repository It was removed from the official mirror, see [1] and links inside for more information. [1]: https://github.com/debuerreotype/docker-debian-artifacts/issues/66 --- debian/jessie/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/jessie/Dockerfile b/debian/jessie/Dockerfile index 81f2174..b1d2703 100644 --- a/debian/jessie/Dockerfile +++ b/debian/jessie/Dockerfile @@ -10,6 +10,9 @@ ENV DEBIAN_FRONTEND=noninteractive # Don't install recommends RUN echo 'apt::install-recommends "false";' > /etc/apt/apt.conf.d/00recommends +# Drop EOL repositories +RUN sed -i '/jessie-updates/d' /etc/apt/sources.list + # Enable extra repositories RUN apt-get update && apt-get install -y --force-yes \ apt-transport-https \ From ce82ef5a6924990a936ae3fab5d5604528c1f457 Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Mon, 25 Mar 2019 21:40:10 +0300 Subject: [PATCH 05/21] Add Debian Buster --- debian/buster/Dockerfile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 debian/buster/Dockerfile diff --git a/debian/buster/Dockerfile b/debian/buster/Dockerfile new file mode 100644 index 0000000..a40684b --- /dev/null +++ b/debian/buster/Dockerfile @@ -0,0 +1,39 @@ +FROM debian:buster +MAINTAINER Alexey Kopytov + +# Fix missing locales +ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" + +# Skip interactive post-install scripts +ENV DEBIAN_FRONTEND=noninteractive + +# Don't install recommends +RUN echo 'apt::install-recommends "false";' > /etc/apt/apt.conf.d/00recommends + +RUN apt-get update && apt-get install -y --force-yes \ + apt-transport-https \ + curl \ + wget \ + gnupg \ + ca-certificates + +# Install base toolset +RUN apt-get update && apt-get install -y --force-yes \ + sudo \ + git \ + build-essential \ + cmake \ + gdb \ + ccache \ + devscripts \ + debhelper \ + cdbs \ + fakeroot \ + lintian \ + equivs \ + rpm \ + alien \ + dh-systemd + +# Enable sudo without password +RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers From ecd3d6468a570a1aa613c29fe85294d05b24bd51 Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Fri, 19 Apr 2019 00:19:11 +0300 Subject: [PATCH 06/21] Add Ubuntu Disco (x86_64). --- ubuntu/disco/Dockerfile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 ubuntu/disco/Dockerfile diff --git a/ubuntu/disco/Dockerfile b/ubuntu/disco/Dockerfile new file mode 100644 index 0000000..38be652 --- /dev/null +++ b/ubuntu/disco/Dockerfile @@ -0,0 +1,41 @@ +FROM ubuntu:disco +MAINTAINER Alexey Kopytov + +# Fix missing locales +ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" + +# Skip interactive post-install scripts +ENV DEBIAN_FRONTEND=noninteractive + +# Don't install recommends +RUN echo 'apt::install-recommends "false";' > /etc/apt/apt.conf.d/00recommends + +# Enable extra repositories +RUN apt-get update && apt-get install -y --force-yes \ + apt-transport-https \ + curl \ + wget \ + gnupg \ + ca-certificates \ + software-properties-common + +# Install base toolset +RUN apt-get update && apt-get install -y --force-yes \ + sudo \ + git \ + build-essential \ + cmake \ + gdb \ + ccache \ + devscripts \ + debhelper \ + cdbs \ + fakeroot \ + lintian \ + equivs \ + rpm \ + alien \ + dh-systemd + +# Enable sudo without password +RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers From d4f055495a4fc2ec4ee9fc998c78662f84bc68cb Mon Sep 17 00:00:00 2001 From: Alexander Turenko Date: Tue, 14 May 2019 23:32:43 +0300 Subject: [PATCH 07/21] Add Fedora 30 --- fedora/30/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 fedora/30/Dockerfile diff --git a/fedora/30/Dockerfile b/fedora/30/Dockerfile new file mode 100644 index 0000000..f2ce314 --- /dev/null +++ b/fedora/30/Dockerfile @@ -0,0 +1,18 @@ +FROM fedora:30 +MAINTAINER Alexander Turenko + +# Fix missing locales +ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" + +# Install base toolset +RUN dnf -y group install 'Development Tools' +RUN dnf -y group install 'C Development Tools and Libraries' +RUN dnf -y group install 'RPM Development Tools' +RUN dnf -y install fedora-packager +RUN dnf -y install sudo git ccache cmake + +# Enable cache system-wide +ENV PATH /usr/lib/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin + +# Enable sudo without tty +RUN sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers From 9bdcbeacdbd871b606c1b4d9a69f4fcd33e1a26b Mon Sep 17 00:00:00 2001 From: "Alexander V. Tikhonov" Date: Wed, 18 Sep 2019 18:12:22 +0300 Subject: [PATCH 08/21] New CentOS 7.7 released On 15.09.2019 released the new CentOS 7.7 in which repositories devtoolset-6* packages were removed. Also repodata files were removed at CentOS-SCLo-scl and CentOS-SCLo-scl-hp sources repositories. To fix these issues the new devtoolset-8* packages were set instead of devtoolset-6* and CentOS-SCLo-scl and CentOS-SCLo-scl-hp sources repositories were removed from YUM configuration. --- centos/7/Dockerfile | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/centos/7/Dockerfile b/centos/7/Dockerfile index 451a0d3..d92f486 100644 --- a/centos/7/Dockerfile +++ b/centos/7/Dockerfile @@ -1,6 +1,8 @@ FROM centos:7 MAINTAINER Roman Tsisyk +ARG DEVTOOLSET=devtoolset-8 + # Fix missing locales ENV LC_ALL="en_US.UTF-8" LANG="en_US.UTF-8" @@ -16,7 +18,7 @@ RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/scri # Install base toolset RUN yum -y groupinstall 'Development Tools' RUN yum -y install \ - devtoolset-6-toolchain devtoolset-6-binutils-devel \ + ${DEVTOOLSET}-toolchain ${DEVTOOLSET}-binutils-devel \ cmake cmake28 cmake3 \ sudo @@ -24,16 +26,18 @@ RUN yum -y install \ RUN sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers # Enable devtoolset and ccache system-wide -# See /opt/rh/devtoolset-6/enable -ENV PATH=/usr/lib64/ccache:/opt/rh/devtoolset-6/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV LD_LIBRARY_PATH=/opt/rh/devtoolset-6/root/usr/lib64:/opt/rh/devtoolset-6/root/usr/lib -ENV PERL5LIB=/opt/rh/devtoolset-6/root//usr/lib64/perl5/vendor_perl:/opt/rh/devtoolset-6/root/usr/lib/perl5:/opt/rh/devtoolset-6/root//usr/share/perl5/vendor_perl -ENV PYTHONPATH=/opt/rh/devtoolset-6/root/usr/lib64/python2.7/site-packages:/opt/rh/devtoolset-6/root/usr/lib/python2.7/site-packages -ENV XDG_CONFIG_DIRS=/opt/rh/devtoolset-6/root/etc/xdg:/etc/xdg -ENV XDG_DATA_DIRS=/opt/rh/devtoolset-6/root/usr/share:/usr/local/share:/usr/share +# See /opt/rh/${DEVTOOLSET}/enable +ENV PATH=/usr/lib64/ccache:/opt/rh/${DEVTOOLSET}/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +ENV LD_LIBRARY_PATH=/opt/rh/${DEVTOOLSET}/root/usr/lib64:/opt/rh/${DEVTOOLSET}/root/usr/lib +ENV PERL5LIB=/opt/rh/${DEVTOOLSET}/root/usr/lib64/perl5/vendor_perl:/opt/rh/${DEVTOOLSET}/root/usr/lib/perl5:/opt/rh/${DEVTOOLSET}/root/usr/share/perl5/vendor_perl +ENV PYTHONPATH=/opt/rh/${DEVTOOLSET}/root/usr/lib64/python2.7/site-packages:/opt/rh/${DEVTOOLSET}/root/usr/lib/python2.7/site-packages +ENV XDG_CONFIG_DIRS=/opt/rh/${DEVTOOLSET}/root/etc/xdg:/etc/xdg +ENV XDG_DATA_DIRS=/opt/rh/${DEVTOOLSET}/root/usr/share:/usr/local/share:/usr/share + # sudo wrapper from devtoolset is buggy, remove it -RUN rm -f /opt/rh/devtoolset-6/root/usr/bin/sudo +RUN rm -f /opt/rh/${DEVTOOLSET}/root/usr/bin/sudo # A workaround for [Errno 14] HTTP Error 404 - Not Found # https://bugs.centos.org/view.php?id=12793 -RUN rm -rf /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo +RUN sed -e '/\[centos-sclo-sclo-source\]/,+6d' -i /etc/yum.repos.d/CentOS-SCLo-scl.repo +RUN sed -e '/\[centos-sclo-rh-source\]/,+6d' -i /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo From b7f0aae075694dda3ea6ab12ccff20ab2112dc78 Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Sun, 20 Oct 2019 20:51:58 +0300 Subject: [PATCH 09/21] Add Ubuntu Eoan (x86_64). --- ubuntu/eoan/Dockerfile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 ubuntu/eoan/Dockerfile diff --git a/ubuntu/eoan/Dockerfile b/ubuntu/eoan/Dockerfile new file mode 100644 index 0000000..9ff16f3 --- /dev/null +++ b/ubuntu/eoan/Dockerfile @@ -0,0 +1,41 @@ +FROM ubuntu:eoan +MAINTAINER Alexey Kopytov + +# Fix missing locales +ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" + +# Skip interactive post-install scripts +ENV DEBIAN_FRONTEND=noninteractive + +# Don't install recommends +RUN echo 'apt::install-recommends "false";' > /etc/apt/apt.conf.d/00recommends + +# Enable extra repositories +RUN apt-get update && apt-get install -y --force-yes \ + apt-transport-https \ + curl \ + wget \ + gnupg \ + ca-certificates \ + software-properties-common + +# Install base toolset +RUN apt-get update && apt-get install -y --force-yes \ + sudo \ + git \ + build-essential \ + cmake \ + gdb \ + ccache \ + devscripts \ + debhelper \ + cdbs \ + fakeroot \ + lintian \ + equivs \ + rpm \ + alien \ + dh-systemd + +# Enable sudo without password +RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers From 4a295815a300678c86e2ea03d13a970aa7e39831 Mon Sep 17 00:00:00 2001 From: "Alexander V. Tikhonov" Date: Thu, 3 Oct 2019 14:37:28 +0300 Subject: [PATCH 10/21] Add CentOS 8 image dockerfile Added CentOS 8 image named as el-8 with the following differences from CentOS 7: (check https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/considerations_in_adopting_rhel_8/index ) - added PowerTools repository as suggested at https://fedoraproject.org/wiki/EPEL - removed curl which is allready installed at the parent image; - at CentOS 8 the localization environment changed to "C"; (needed by backport repository); - removed pygpgme which was removed at CentOS 8 (check A.3. "Removed packages part"); - saved backport repository due to python2 still in use while CentOS 8 changed its packages to python3 and we need to backport python-gevent package; - cmake28 and cmake3 removed due to CentOS 8 installs 3.11 version; - removed devtoolset and scl* repositories due to devtoolset-8 is already in the standard repositories and scl* repositories still not available. --- centos/8/Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 centos/8/Dockerfile diff --git a/centos/8/Dockerfile b/centos/8/Dockerfile new file mode 100644 index 0000000..1aa84cd --- /dev/null +++ b/centos/8/Dockerfile @@ -0,0 +1,27 @@ +FROM centos:8 +MAINTAINER Alexander V. Tikhonov + +# Enable extra tools +RUN yum -y install wget yum-utils + +# Enable extra repositories +RUN yum -y install epel-release +# added PowerTools as suggested at: +# https://fedoraproject.org/wiki/EPEL +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 +# - fix missing locales +ENV LC_ALL="C" LANG="en_US.UTF-8" +# - install the backport repository +RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/script.rpm.sh | bash + +# Install base toolset +RUN yum -y groupinstall 'Development Tools' +RUN yum -y install \ + cmake \ + sudo + +# Enable sudo without tty +RUN sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers From ed4dd3ec27296bb5bc45c5fc43c9a50d8cf69e8c Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Wed, 30 Oct 2019 09:42:15 +0300 Subject: [PATCH 11/21] Add Fedora 31 (x86_64) Created the new Dockerfile based on Fedora 30 image with added backport repository https://packagecloud.io/packpack/backports for packages python2-gevent and python2-greenlet which Fedora 31 does not provide. --- fedora/31/Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 fedora/31/Dockerfile diff --git a/fedora/31/Dockerfile b/fedora/31/Dockerfile new file mode 100644 index 0000000..bf0e033 --- /dev/null +++ b/fedora/31/Dockerfile @@ -0,0 +1,21 @@ +FROM fedora:31 +MAINTAINER Alexey Kopytov + +# Fix missing locales +ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" + +# Install base toolset +RUN dnf -y group install 'Development Tools' +RUN dnf -y group install 'C Development Tools and Libraries' +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 -s https://packagecloud.io/install/repositories/packpack/backports/script.rpm.sh | bash + +# Enable cache system-wide +ENV PATH /usr/lib/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin + +# Enable sudo without tty +RUN sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers From 60f02c63bf4debbeeb4189787280c66f62f003dd Mon Sep 17 00:00:00 2001 From: Jorge Matricali Date: Mon, 14 Oct 2019 15:25:27 -0300 Subject: [PATCH 12/21] Migrate to Debian Wheezy archive repository --- debian/wheezy/Dockerfile | 4 ++++ debian/wheezy/backports.list | 4 ++-- debian/wheezy/sources.list | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 debian/wheezy/sources.list diff --git a/debian/wheezy/Dockerfile b/debian/wheezy/Dockerfile index e45af63..57fde46 100644 --- a/debian/wheezy/Dockerfile +++ b/debian/wheezy/Dockerfile @@ -10,6 +10,10 @@ ENV DEBIAN_FRONTEND=noninteractive # Don't install recommends RUN echo 'apt::install-recommends "false";' > /etc/apt/apt.conf.d/00recommends +# Use the archive repository +ADD sources.list /etc/apt/ +RUN echo "Acquire::Check-Valid-Until false;" > /etc/apt/apt.conf.d/00nocheckvalid + # Enable extra repositories RUN apt-get update && apt-get install -y --force-yes \ apt-transport-https \ diff --git a/debian/wheezy/backports.list b/debian/wheezy/backports.list index 6a792f0..a750c1b 100644 --- a/debian/wheezy/backports.list +++ b/debian/wheezy/backports.list @@ -1,2 +1,2 @@ -deb http://ftp.debian.org/debian wheezy-backports main -deb-src http://ftp.debian.org/debian wheezy-backports main +deb http://archive.debian.org/debian wheezy-backports main +deb-src http://archive.debian.org/debian wheezy-backports main diff --git a/debian/wheezy/sources.list b/debian/wheezy/sources.list new file mode 100644 index 0000000..18c86e1 --- /dev/null +++ b/debian/wheezy/sources.list @@ -0,0 +1,2 @@ +deb http://archive.debian.org/debian wheezy main +deb http://archive.debian.org/debian-security wheezy/updates main From 5a15ecfe6e5dcd087aab70bc382692fb89d84371 Mon Sep 17 00:00:00 2001 From: Alexander Turenko Date: Tue, 7 Jan 2020 06:16:55 +0300 Subject: [PATCH 13/21] Update Fedora Rawhide Dockerfile Now it is more or less same as Fedora 31 Dockerfile. This commit allows to successfully build the image. Before it fails, because there is no more pygpgme package in Fedora Rawhide repositories. Commented backports repository enabling, because the packagecloud.io script detects the operating system as fedora/32 and reports that does not support it. The problem with Python 3 was resolved a long time ago, so the workaround for it is not needed anymore. --- fedora/rawhide/Dockerfile | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/fedora/rawhide/Dockerfile b/fedora/rawhide/Dockerfile index c92a4b2..8732873 100644 --- a/fedora/rawhide/Dockerfile +++ b/fedora/rawhide/Dockerfile @@ -4,18 +4,6 @@ MAINTAINER Roman Tsisyk # Fix missing locales ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" -# Upgrade Python3, so this does not happen: -# https://bugzilla.redhat.com/show_bug.cgi?id=1435135 -RUN dnf -y upgrade python3 - -# Enable extra repositories -RUN dnf -y install \ - wget \ - curl \ - pygpgme \ - yum-utils -#RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/script.rpm.sh | bash - # Install base toolset RUN dnf -y group install 'Development Tools' RUN dnf -y group install 'C Development Tools and Libraries' @@ -23,6 +11,13 @@ RUN dnf -y group install 'RPM Development Tools' RUN dnf -y install fedora-packager RUN dnf -y install sudo git ccache cmake +# The script from packagecloud.io detects the OS as fedora/32 and +# reports that it does not support this operating system. +# Commented this out so. +# +# Setup backport repository for python2 packages +# RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/script.rpm.sh | bash + # Enable cache system-wide ENV PATH /usr/lib/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin From ef6f34be2eb7ea6f77fac21c69407b57307269b3 Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Sat, 18 Apr 2020 15:36:27 +0300 Subject: [PATCH 14/21] Add Ubuntu Focal (x86_64) --- ubuntu/focal/Dockerfile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 ubuntu/focal/Dockerfile diff --git a/ubuntu/focal/Dockerfile b/ubuntu/focal/Dockerfile new file mode 100644 index 0000000..830688b --- /dev/null +++ b/ubuntu/focal/Dockerfile @@ -0,0 +1,41 @@ +FROM ubuntu:focal +MAINTAINER Alexey Kopytov + +# Fix missing locales +ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" + +# Skip interactive post-install scripts +ENV DEBIAN_FRONTEND=noninteractive + +# Don't install recommends +RUN echo 'apt::install-recommends "false";' > /etc/apt/apt.conf.d/00recommends + +# Enable extra repositories +RUN apt-get update && apt-get install -y --force-yes \ + apt-transport-https \ + curl \ + wget \ + gnupg \ + ca-certificates \ + software-properties-common + +# Install base toolset +RUN apt-get update && apt-get install -y --force-yes \ + sudo \ + git \ + build-essential \ + cmake \ + gdb \ + ccache \ + devscripts \ + debhelper \ + cdbs \ + fakeroot \ + lintian \ + equivs \ + rpm \ + alien \ + dh-systemd + +# Enable sudo without password +RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers From 812333ec9e231c46fad76766ed09efcd011b3c52 Mon Sep 17 00:00:00 2001 From: "Alexander V. Tikhonov" Date: Tue, 29 Oct 2019 13:42:24 +0300 Subject: [PATCH 15/21] Add opensuse images Added docker files to build images for the latest opensuse 'leap' versions: 15.0, 15.1, 15.2 --- opensuse/leap/15.0/Dockerfile | 24 ++++++++++++++++++++++++ opensuse/leap/15.1/Dockerfile | 24 ++++++++++++++++++++++++ opensuse/leap/15.2/Dockerfile | 24 ++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 opensuse/leap/15.0/Dockerfile create mode 100644 opensuse/leap/15.1/Dockerfile create mode 100644 opensuse/leap/15.2/Dockerfile diff --git a/opensuse/leap/15.0/Dockerfile b/opensuse/leap/15.0/Dockerfile new file mode 100644 index 0000000..4281676 --- /dev/null +++ b/opensuse/leap/15.0/Dockerfile @@ -0,0 +1,24 @@ +FROM opensuse/leap:15.0 +MAINTAINER Alexander V. Tikhonov + +# Install base toolset +RUN zypper install -y \ + autoconf \ + ccache \ + cmake \ + curl \ + devscripts \ + dnf \ + fakeroot \ + gdb \ + git \ + lsb-release \ + rpm-build \ + sudo \ + tar \ + wget \ + xz \ + yum-utils + +# Enable sudo without password +RUN echo '%users ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers diff --git a/opensuse/leap/15.1/Dockerfile b/opensuse/leap/15.1/Dockerfile new file mode 100644 index 0000000..0571705 --- /dev/null +++ b/opensuse/leap/15.1/Dockerfile @@ -0,0 +1,24 @@ +FROM opensuse/leap:15.1 +MAINTAINER Alexander V. Tikhonov + +# Install base toolset +RUN zypper install -y \ + autoconf \ + ccache \ + cmake \ + curl \ + devscripts \ + dnf \ + fakeroot \ + gdb \ + git \ + lsb-release \ + rpm-build \ + sudo \ + tar \ + wget \ + xz \ + yum-utils + +# 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 new file mode 100644 index 0000000..823417c --- /dev/null +++ b/opensuse/leap/15.2/Dockerfile @@ -0,0 +1,24 @@ +FROM opensuse/leap:15.2 +MAINTAINER Alexander V. Tikhonov + +# Install base toolset +RUN zypper install -y \ + autoconf \ + ccache \ + cmake \ + curl \ + devscripts \ + dnf \ + fakeroot \ + gdb \ + git \ + lsb-release \ + rpm-build \ + sudo \ + tar \ + wget \ + xz \ + yum-utils + +# Enable sudo without password +RUN echo '%users ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers From 9d317effb271665cd99dbaa264b30bc9fa432617 Mon Sep 17 00:00:00 2001 From: Alexander Turenko Date: Mon, 27 Apr 2020 23:20:09 +0300 Subject: [PATCH 16/21] CentOS 7: remove dead extras-source repository It seems the problem appears when centos/7 mirrors starts to point to centos/7.8.* directory (centos/7.8.2003 now). If the problem will be resolved on CentOS infrastructure side, the workaround should be removed. Reported-by: Dmitriy Koltsov. --- centos/7/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/centos/7/Dockerfile b/centos/7/Dockerfile index d92f486..156aa4f 100644 --- a/centos/7/Dockerfile +++ b/centos/7/Dockerfile @@ -41,3 +41,21 @@ RUN rm -f /opt/rh/${DEVTOOLSET}/root/usr/bin/sudo # https://bugs.centos.org/view.php?id=12793 RUN sed -e '/\[centos-sclo-sclo-source\]/,+6d' -i /etc/yum.repos.d/CentOS-SCLo-scl.repo RUN sed -e '/\[centos-sclo-rh-source\]/,+6d' -i /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo + +# extras-source is not present for CentOS 7.8, while +# http://vault.centos.org/centos/7 now points to 7.8.2003. +# +# yum-builddep enables the repository and fetching of +# repomd.xml fails with 404 error. +# +# Don't know whether it is temporary effect or not, but +# it worth to remove the repository until it will be +# available on CentOS mirrors. +# +# How to check: +# +# $ curl -fSs 'http://vault.centos.org/centos/7/extras/Source/repodata/repomd.xml' +# curl: (22) The requested URL returned error: 404 Not Found +# +# The output above means that the problem is there. +RUN sed -e '/\[extras-source\]/,+6d' -i /etc/yum.repos.d/CentOS-Sources.repo From 554acbeae77b2ef0bfe4d4dc778a2b3907dd726d Mon Sep 17 00:00:00 2001 From: "Alexander V. Tikhonov" Date: Wed, 6 May 2020 19:32:29 +0300 Subject: [PATCH 17/21] Add Fedora 32 (x86_64) Created the new Dockerfile to build Fedora 32, based on Fedora 31 image. --- fedora/32/Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 fedora/32/Dockerfile diff --git a/fedora/32/Dockerfile b/fedora/32/Dockerfile new file mode 100644 index 0000000..abca419 --- /dev/null +++ b/fedora/32/Dockerfile @@ -0,0 +1,21 @@ +FROM fedora:32 +MAINTAINER Alexander V. Tikhonov + +# Fix missing locales +ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" + +# Install base toolset +RUN dnf -y group install 'Development Tools' +RUN dnf -y group install 'C Development Tools and Libraries' +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 -s https://packagecloud.io/install/repositories/packpack/backports/script.rpm.sh | bash + +# Enable cache system-wide +ENV PATH /usr/lib/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin + +# Enable sudo without tty +RUN sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers From 0405023fbd6d08cd541940e5712ccfe2e84eba19 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Mon, 11 May 2020 14:11:58 +1000 Subject: [PATCH 18/21] travis: new format --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6c1e7a1..474df7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,9 @@ language: c services: docker os: -- linux-ppc64le +- linux +arch: +- ppc64le sudo: false env: From 6430b989fe6a0ae7f29037ff5550224b52513877 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Mon, 11 May 2020 16:33:11 +1000 Subject: [PATCH 19/21] remove debian/jessie and ubuntu/{cosmic,disco} --- debian/jessie/Dockerfile | 45 --------------------------------------- debian/jessie/preferences | 7 ------ ubuntu/cosmic/Dockerfile | 41 ----------------------------------- ubuntu/disco/Dockerfile | 41 ----------------------------------- 4 files changed, 134 deletions(-) delete mode 100644 debian/jessie/Dockerfile delete mode 100644 debian/jessie/preferences delete mode 100644 ubuntu/cosmic/Dockerfile delete mode 100644 ubuntu/disco/Dockerfile diff --git a/debian/jessie/Dockerfile b/debian/jessie/Dockerfile deleted file mode 100644 index b1d2703..0000000 --- a/debian/jessie/Dockerfile +++ /dev/null @@ -1,45 +0,0 @@ -FROM debian:jessie -MAINTAINER Roman Tsisyk - -# Fix missing locales -ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" - -# Skip interactive post-install scripts -ENV DEBIAN_FRONTEND=noninteractive - -# Don't install recommends -RUN echo 'apt::install-recommends "false";' > /etc/apt/apt.conf.d/00recommends - -# Drop EOL repositories -RUN sed -i '/jessie-updates/d' /etc/apt/sources.list - -# Enable extra repositories -RUN apt-get update && apt-get install -y --force-yes \ - apt-transport-https \ - curl \ - wget \ - gnupg \ - ca-certificates -ADD preferences /etc/apt/preferences.d/ -RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/script.deb.sh | bash - -# Install base toolset -RUN apt-get update && apt-get install -y --force-yes \ - sudo \ - git \ - build-essential \ - cmake \ - gdb \ - ccache \ - devscripts \ - debhelper \ - cdbs \ - fakeroot \ - lintian \ - equivs \ - rpm \ - alien \ - dh-systemd - -# Enable sudo without password -RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers diff --git a/debian/jessie/preferences b/debian/jessie/preferences deleted file mode 100644 index 28a3d50..0000000 --- a/debian/jessie/preferences +++ /dev/null @@ -1,7 +0,0 @@ -Package: * -Pin: release a=jessie-backports -Pin-Priority: 100 - -Package: cmake cmake-data -Pin: release a=jessie-backports -Pin-Priority: 800 diff --git a/ubuntu/cosmic/Dockerfile b/ubuntu/cosmic/Dockerfile deleted file mode 100644 index 268568e..0000000 --- a/ubuntu/cosmic/Dockerfile +++ /dev/null @@ -1,41 +0,0 @@ -FROM ubuntu:cosmic -MAINTAINER Roman Tsisyk - -# Fix missing locales -ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" - -# Skip interactive post-install scripts -ENV DEBIAN_FRONTEND=noninteractive - -# Don't install recommends -RUN echo 'apt::install-recommends "false";' > /etc/apt/apt.conf.d/00recommends - -# Enable extra repositories -RUN apt-get update && apt-get install -y --force-yes \ - apt-transport-https \ - curl \ - wget \ - gnupg \ - ca-certificates \ - software-properties-common - -# Install base toolset -RUN apt-get update && apt-get install -y --force-yes \ - sudo \ - git \ - build-essential \ - cmake \ - gdb \ - ccache \ - devscripts \ - debhelper \ - cdbs \ - fakeroot \ - lintian \ - equivs \ - rpm \ - alien \ - dh-systemd - -# Enable sudo without password -RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers diff --git a/ubuntu/disco/Dockerfile b/ubuntu/disco/Dockerfile deleted file mode 100644 index 38be652..0000000 --- a/ubuntu/disco/Dockerfile +++ /dev/null @@ -1,41 +0,0 @@ -FROM ubuntu:disco -MAINTAINER Alexey Kopytov - -# Fix missing locales -ENV LC_ALL="C.UTF-8" LANG="C.UTF-8" - -# Skip interactive post-install scripts -ENV DEBIAN_FRONTEND=noninteractive - -# Don't install recommends -RUN echo 'apt::install-recommends "false";' > /etc/apt/apt.conf.d/00recommends - -# Enable extra repositories -RUN apt-get update && apt-get install -y --force-yes \ - apt-transport-https \ - curl \ - wget \ - gnupg \ - ca-certificates \ - software-properties-common - -# Install base toolset -RUN apt-get update && apt-get install -y --force-yes \ - sudo \ - git \ - build-essential \ - cmake \ - gdb \ - ccache \ - devscripts \ - debhelper \ - cdbs \ - fakeroot \ - lintian \ - equivs \ - rpm \ - alien \ - dh-systemd - -# Enable sudo without password -RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers From 202e85aadd30d936d4f14da49fafb6a7b7fc90c1 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Mon, 11 May 2020 21:01:01 +1000 Subject: [PATCH 20/21] centos8; pygpgme in package python3-gpg already installed --- centos/8/Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/centos/8/Dockerfile b/centos/8/Dockerfile index 1aa84cd..4775604 100644 --- a/centos/8/Dockerfile +++ b/centos/8/Dockerfile @@ -14,8 +14,6 @@ RUN yum config-manager --set-enabled PowerTools # CentOS and PowerTools / EPEL repositories, e.g. some Python 2 packages # - fix missing locales ENV LC_ALL="C" LANG="en_US.UTF-8" -# - install the backport repository -RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/script.rpm.sh | bash # Install base toolset RUN yum -y groupinstall 'Development Tools' From 99b19df773561fb6496b2be1f3a4ecc0cd052ba9 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Mon, 11 May 2020 21:03:07 +1000 Subject: [PATCH 21/21] add alpine:3.11 --- alpine/3.11/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 alpine/3.11/Dockerfile diff --git a/alpine/3.11/Dockerfile b/alpine/3.11/Dockerfile new file mode 100644 index 0000000..f0b1842 --- /dev/null +++ b/alpine/3.11/Dockerfile @@ -0,0 +1,6 @@ +FROM alpine:3.11 +MAINTAINER Konstantin Nazarov + +RUN set -x \ + && apk add --no-cache su-exec make git tar xz alpine-sdk sudo \ + && sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers