contrib/packaging/docker/rhel9
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 11 Apr 2023 21:56:16 +0200
changeset 51161 f816ca29a285
parent 49419 2edb41ed6c49
permissions -rw-r--r--
setup: try a non-pure version of the local Mercurial if the pure fails Things like `zstd` can make the pure version fails.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
49419
2edb41ed6c49 contrib: add support for rhel9
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 49278
diff changeset
     1
FROM rockylinux/rockylinux:9
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
49419
2edb41ed6c49 contrib: add support for rhel9
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 49278
diff changeset
     6
RUN dnf install 'dnf-command(config-manager)' -y
2edb41ed6c49 contrib: add support for rhel9
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 49278
diff changeset
     7
# crb repository is necessary for docutils
2edb41ed6c49 contrib: add support for rhel9
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 49278
diff changeset
     8
RUN dnf config-manager --set-enabled crb
2edb41ed6c49 contrib: add support for rhel9
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 49278
diff changeset
     9
43405
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    10
RUN yum install -y \
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    11
	gcc \
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    12
	gettext \
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    13
	make \
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    14
	python3-devel \
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    15
	python3-docutils \
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    16
	rpm-build
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    17
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    18
# For creating repo meta data
7c9d42c1042d packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff changeset
    19
RUN yum install -y createrepo
47464
25d36300ba8e Backed out changeset 9b8f326731ac
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 47344
diff changeset
    20
25d36300ba8e Backed out changeset 9b8f326731ac
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 47344
diff changeset
    21
# For rust extensions
25d36300ba8e Backed out changeset 9b8f326731ac
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 47344
diff changeset
    22
RUN yum install -y cargo
49278
234aaf0184f3 docker: avoid /tmp write access issues by fixing permissions
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 48773
diff changeset
    23
234aaf0184f3 docker: avoid /tmp write access issues by fixing permissions
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 48773
diff changeset
    24
# avoid incorrect docker image permissions on /tmp preventing writes by non-root users
234aaf0184f3 docker: avoid /tmp write access issues by fixing permissions
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 48773
diff changeset
    25
RUN chmod 1777 /tmp