contrib/packaging/docker/rhel9
author Matt Harbison <matt_harbison@yahoo.com>
Sat, 05 Oct 2024 15:00:37 -0400
changeset 51940 54d9f496f07a
parent 49419 2edb41ed6c49
permissions -rw-r--r--
interfaces: introduce and use a protocol class for the `charencoding` module See f2832de2a46c for details when this was done for the `bdiff` module. This lets us dump the hack where the `pure` implementation was imported during the type checking phase to provide signatures for the module methods it provides. Now the protocol classes are starting to shine, because these methods are provided by `pure.charencoding` and `cext.parsers`, and references to `cffi.charencoding` and `cext.charencoding` are forwarded to them as appropriate by the `policy` module. But none of that matters, as long as the module returned provides the listed methods. The interface was copy/pasted from the `pure` module, but `jsonescapeu8fallback` is omitted because it is accessed from the `pure` module directly when the escaping fails in the primary module's `jsonescapeu8()`.
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