Mercurial > hg
annotate contrib/packaging/docker/rhel8 @ 49278:234aaf0184f3 stable
docker: avoid /tmp write access issues by fixing permissions
author | Mathias De Mare <mathias.de_mare@nokia.com> |
---|---|
date | Wed, 08 Jun 2022 14:03:23 +0200 |
parents | 6cfa30681a1d |
children |
rev | line source |
---|---|
48739
aeeb54261099
packaging: replace centos8 by rockylinux 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
47464
diff
changeset
|
1 FROM rockylinux/rockylinux:8 |
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 |
7c9d42c1042d
packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff
changeset
|
6 RUN yum install -y \ |
7c9d42c1042d
packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff
changeset
|
7 gcc \ |
7c9d42c1042d
packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff
changeset
|
8 gettext \ |
7c9d42c1042d
packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff
changeset
|
9 make \ |
7c9d42c1042d
packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff
changeset
|
10 python3-devel \ |
7c9d42c1042d
packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff
changeset
|
11 python3-docutils \ |
7c9d42c1042d
packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff
changeset
|
12 rpm-build |
7c9d42c1042d
packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff
changeset
|
13 |
7c9d42c1042d
packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff
changeset
|
14 # For creating repo meta data |
7c9d42c1042d
packaging: add support for CentOS 8
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
diff
changeset
|
15 RUN yum install -y createrepo |
47464
25d36300ba8e
Backed out changeset 9b8f326731ac
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
47344
diff
changeset
|
16 |
25d36300ba8e
Backed out changeset 9b8f326731ac
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
47344
diff
changeset
|
17 # For rust extensions |
25d36300ba8e
Backed out changeset 9b8f326731ac
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
47344
diff
changeset
|
18 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
|
19 |
234aaf0184f3
docker: avoid /tmp write access issues by fixing permissions
Mathias De Mare <mathias.de_mare@nokia.com>
parents:
48773
diff
changeset
|
20 # 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
|
21 RUN chmod 1777 /tmp |