Mercurial > hg
annotate contrib/packaging/docker/rhel9 @ 51402:2e10ddbb9faa
phases: check secret presence the right way during discovery
There is an official function for this, lets use it.
This will prevent the code to break in the future while we refactor the phase
code.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 20 Feb 2024 17:17:54 +0100 |
parents | 2edb41ed6c49 |
children |
rev | line source |
---|---|
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 |