Tarantool development patches archive
 help / color / mirror / Atom feed
From: "Alexander V. Tikhonov" <avtikhon@tarantool.org>
To: Alexander Turenko <alexander.turenko@tarantool.org>
Cc: tarantool-patches@freelists.org, tarantool-patches@dev.tarantool.org
Subject: [Tarantool-patches] [PATCH v3] Add CentOS 8 image dockerfile
Date: Fri, 25 Oct 2019 14:18:41 +0300	[thread overview]
Message-ID: <a3ea508cba89e85b06ee4638b6f9bd6f612a7a24.1572002110.git.avtikhon@tarantool.org> (raw)

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
 - at CentOS 8 the localization environment changed to "C";
 - removed curl which is allready installed at the parent image
   (needed by backport repository);
 - changed pygpgme to python3-gpg which was removed at CentOS 8 (check A.3.
   "Removed packages part") (needed by backport repository);
 - 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 | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 centos/8/Dockerfile

diff --git a/centos/8/Dockerfile b/centos/8/Dockerfile
new file mode 100644
index 0000000..2f15e2c
--- /dev/null
+++ b/centos/8/Dockerfile
@@ -0,0 +1,29 @@
+FROM centos:8
+MAINTAINER Alexander V. Tikhonov <avtikhon@tarantool.org>
+
+# 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 dnf 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"
+# - add python3-gpg instead of pygpgme
+RUN yum -y install python3-gpg
+# - 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
-- 
2.17.1

             reply	other threads:[~2019-10-25 11:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-25 11:18 Alexander V. Tikhonov [this message]
2019-10-25 14:04 ` Alexander Turenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a3ea508cba89e85b06ee4638b6f9bd6f612a7a24.1572002110.git.avtikhon@tarantool.org \
    --to=avtikhon@tarantool.org \
    --cc=alexander.turenko@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [Tarantool-patches] [PATCH v3] Add CentOS 8 image dockerfile' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox