contrib/packaging/docker/centos7
author Kyle Lippincott <spectral@google.com>
Tue, 30 Mar 2021 13:05:22 -0700
changeset 46871 887f89b100ac
parent 45935 eccbfa7e19c0
child 47344 9b8f326731ac
permissions -rw-r--r--
exthelper: improve docs to indicate what module vars are needed I recently tried creating an extension "from scratch" using exthelper, and it wasn't obvious that you needed these. I believe that a careful reading of one of the comments would tell you that they were required, but it's easy to miss and having the examples be "complete" is helpful. Differential Revision: https://phab.mercurial-scm.org/D10295
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23033
1d354814ff4d docker: add centos7 target for CentOS / Red Hat 7 support
Mads Kiilerich <madski@unity3d.com>
parents: 22444
diff changeset
     1
FROM centos:centos7
38457
11eda1f1b6e7 packaging: consistently create build user in Dockerfiles
Gregory Szorc <gregory.szorc@gmail.com>
parents: 38003
diff changeset
     2
41234
4c0d4bbdc395 packaging: allow running packaging with custom uid+gid for CentOS
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 38457
diff changeset
     3
RUN groupadd -g %GID% build && \
4c0d4bbdc395 packaging: allow running packaging with custom uid+gid for CentOS
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 38457
diff changeset
     4
    useradd -u %UID% -g %GID% -s /bin/bash -d /build -m build
38457
11eda1f1b6e7 packaging: consistently create build user in Dockerfiles
Gregory Szorc <gregory.szorc@gmail.com>
parents: 38003
diff changeset
     5
45836
de1f4c431619 packaging: switch centos 7 packaging to python 3
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 41234
diff changeset
     6
RUN yum install -y epel-release
34423
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 23033
diff changeset
     7
RUN yum install -y \
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 23033
diff changeset
     8
	gcc \
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 23033
diff changeset
     9
	gettext \
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 23033
diff changeset
    10
	make \
45836
de1f4c431619 packaging: switch centos 7 packaging to python 3
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 41234
diff changeset
    11
	python3-devel \
de1f4c431619 packaging: switch centos 7 packaging to python 3
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 41234
diff changeset
    12
	python36-docutils \
34423
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 23033
diff changeset
    13
	rpm-build \
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 23033
diff changeset
    14
	tar
1baa077214ae docker: try to follow the best practices for writing Dockerfiles
muxator <a.mux@inwind.it>
parents: 23033
diff changeset
    15
22444
49ea49823769 dockerrpm: create a yum/dnf repo from the generated rpms
Mads Kiilerich <madski@unity3d.com>
parents: 22442
diff changeset
    16
# For creating repo meta data
49ea49823769 dockerrpm: create a yum/dnf repo from the generated rpms
Mads Kiilerich <madski@unity3d.com>
parents: 22442
diff changeset
    17
RUN yum install -y createrepo
45935
eccbfa7e19c0 packaging: enable rust extensions on centos
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 45836
diff changeset
    18
eccbfa7e19c0 packaging: enable rust extensions on centos
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 45836
diff changeset
    19
# For rust extensions
eccbfa7e19c0 packaging: enable rust extensions on centos
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 45836
diff changeset
    20
RUN yum install -y cargo