Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v3] Add CentOS 8 image dockerfile
@ 2019-10-25 11:18 Alexander V. Tikhonov
  2019-10-25 14:04 ` Alexander Turenko
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander V. Tikhonov @ 2019-10-25 11:18 UTC (permalink / raw)
  To: Alexander Turenko; +Cc: tarantool-patches, tarantool-patches

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-25 14:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-25 11:18 [Tarantool-patches] [PATCH v3] Add CentOS 8 image dockerfile Alexander V. Tikhonov
2019-10-25 14:04 ` Alexander Turenko

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