[Tarantool-patches] [PATCH v3] Add CentOS 8 image dockerfile
Alexander V. Tikhonov
avtikhon at tarantool.org
Fri Oct 25 14:18:41 MSK 2019
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 at 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
More information about the Tarantool-patches
mailing list