contrib/packaging/docker/rhel8
author Mathias De Mare <mathias.de_mare@nokia.com>
Tue, 15 Feb 2022 15:33:33 +0100
branchstable
changeset 48740 6387562e68b3
parent 48739 contrib/packaging/docker/centos8@aeeb54261099
child 48773 6cfa30681a1d
permissions -rw-r--r--
contrib: refer to RHEL and derivatives instead of CentOS specifically Differential Revision: https://phab.mercurial-scm.org/D12182
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
48739
aeeb54261099 packaging: replace centos8 by rockylinux 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 47464
diff changeset
     1
FROM rockylinux/rockylinux:8
43405
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
     2
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
     3
RUN groupadd -g %GID% build && \
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
     4
    useradd -u %UID% -g %GID% -s /bin/bash -d /build -m build
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
     5
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
     6
RUN yum install -y \
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
     7
	gcc \
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
     8
	gettext \
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
     9
	make \
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    10
	python3-devel \
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    11
	python3-docutils \
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    12
	rpm-build
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    13
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    14
# For creating repo meta data
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    15
RUN yum install -y createrepo
47464
25d36300ba8e Backed out changeset 9b8f326731ac
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 47344
diff changeset
    16
25d36300ba8e Backed out changeset 9b8f326731ac
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 47344
diff changeset
    17
# For rust extensions
25d36300ba8e Backed out changeset 9b8f326731ac
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 47344
diff changeset
    18
RUN yum install -y cargo