|
1 | | -To build image for RHEL-7, RHEL-8 need define variables `repo_owner`, `base_image`, `image_tag`, `rhel_username`, `rhel_password` and |
| 1 | +To build image for RHEL-7, RHEL-8 need define variables `repo_owner`, `base_image`, `image_tag`, `RHEL_USERNAME`, `RHEL_PASSWORD` and |
2 | 2 | then start build image like |
3 | 3 |
|
4 | 4 | ```sh |
5 | | -export repo_owner=safarov |
6 | | -export base_image=rhel |
7 | | -export image_tag=8 |
8 | | -export rhel_username=${your_username} |
9 | | -export rhel_password=${your_password} |
10 | | -docker build \ |
11 | | - --build-arg base_image=registry.redhat.io/ubi${image_tag} \ |
12 | | - --build-arg image_tag=latest \ |
13 | | - --build-arg rhel_username=${rhel_username} \ |
14 | | - --build-arg rhel_password=${rhel_password} \ |
15 | | - -t ${repo_owner}/pkg-kamailio-docker:${base_image}-${image_tag} . |
| 5 | +export repo_owner=example |
| 6 | +export base_image=rhel-9 |
| 7 | +export RHEL_USERNAME=${your_username} |
| 8 | +export RHEL_PASSWORD=${your_password} |
| 9 | +export platform=x86_64 |
| 10 | +docker buildx build \ |
| 11 | + --platform linux/${platform} \ |
| 12 | + --secret id=RHEL_USERNAME,env=RHEL_USERNAME \ |
| 13 | + --secret id=RHEL_PASSWORD,env=RHEL_PASSWORD \ |
| 14 | + --build-arg base_image="registry.redhat.io/ubi9/ubi:latest" \ |
| 15 | + -t ${repo_owner}/kamailio-builder:${base_image} . |
16 | 16 | ``` |
17 | 17 |
|
18 | | -To build image for other rpm dists need to define environement variables `repo_owner`, `base_image`, `image_tag` and then start build image like |
| 18 | +To build image for other dist need to define environment variables `repo_owner`, `base_image`, `image_tag` and then start build image like |
19 | 19 |
|
20 | 20 | ```sh |
21 | | -export repo_owner=safarov |
22 | | -export base_image=fedora |
23 | | -export image_tag=31 |
24 | | -docker build \ |
| 21 | +export repo_owner=example |
| 22 | +export base_image=fedora-42 |
| 23 | +export platform=x86_64 |
| 24 | +docker buildx build \ |
| 25 | + --platform linux/${platform} \ |
25 | 26 | --build-arg base_image=${base_image} \ |
26 | | - --build-arg image_tag=${image_tag} \ |
27 | | - -t ${repo_owner}/pkg-kamailio-docker:${base_image}-${image_tag} . |
| 27 | + -t ${repo_owner}/kamailio-builder:${base_image} . |
28 | 28 | ``` |
| 29 | + |
| 30 | +To build for CentOS Stream |
| 31 | +```sh |
| 32 | +export repo_owner=example |
| 33 | +export base_image=centos-10 |
| 34 | +export platform=x86_64 |
| 35 | +docker buildx build \ |
| 36 | + --platform linux/${platform} \ |
| 37 | + --build-arg base_image="quay.io/centos/centos:stream10" \ |
| 38 | + -t ${repo_owner}/kamailio-builder:${base_image} . |
| 39 | +``` |
| 40 | + |
| 41 | +Suported dist |
| 42 | + |
| 43 | +| dist | version | arch | |
| 44 | +|---------------------|---------|-------------------------------- |
| 45 | +| rhel | 10 |x86_64, aarch64, s390x | |
| 46 | +| rhel | 9 |x86_64, aarch64 | |
| 47 | +| rhel | 8 |x86_64, aarch64 | |
| 48 | +| centos | 10 |x86_64, aarch64, s390x, ppc64le| |
| 49 | +| centos | 9 |x86_64, aarch64, s390x, ppc64le| |
| 50 | +| centos | 8 |x86_64, aarch64, s390x | |
| 51 | +| rocky | 9 |x86_64, aarch64, s390x, ppc64le| |
| 52 | +| fedora | 42 |x86_64, aarch64, s390x, ppc64le| |
| 53 | +| fedora | 41 |x86_64, aarch64, s390x, ppc64le| |
0 commit comments