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.

FROM rockylinux/rockylinux:9

RUN groupadd -g %GID% build && \
    useradd -u %UID% -g %GID% -s /bin/bash -d /build -m build

RUN dnf install 'dnf-command(config-manager)' -y
# crb repository is necessary for docutils
RUN dnf config-manager --set-enabled crb

RUN yum install -y \
	gcc \
	gettext \
	make \
	python3-devel \
	python3-docutils \
	rpm-build

# For creating repo meta data
RUN yum install -y createrepo

# For rust extensions
RUN yum install -y cargo

# avoid incorrect docker image permissions on /tmp preventing writes by non-root users
RUN chmod 1777 /tmp