contrib/packaging/docker/rhel9
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 27 Feb 2024 22:52:00 +0100
changeset 51459 077d5a784c58
parent 49419 2edb41ed6c49
permissions -rw-r--r--
test-clonebundles: simplify matching to be less flavor depends We keep the files and bytes output for the first call, but then we mostly check that we are being served a stream-clone bundle, not the actual content and size of the bundle. That aspect being tested by the stream clone test themselves.
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