diff --git a/Dockerfile b/Dockerfile index fd5e65ea2..81ca8a7a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,10 @@ RUN set -x && \ echo -e "deltarpm=0" >> /etc/dnf/dnf.conf && \ echo -e "install_weak_deps=0" >> /etc/dnf/dnf.conf +# Import extra CA certificates +COPY ./ca-trust/ /etc/pki/ca-trust/source/anchors/ +RUN update-ca-trust + # Copy extra repo files COPY ./repos.d/ /etc/yum.repos.d/ diff --git a/README.md b/README.md index 473585a81..12c7d2606 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,10 @@ default: If any additional repositories are needed to be added to the container image, you can place them into the `repos.d` directory (mainly useful for RHEL). +If any additional CA certificates are needed to be trusted in the container +image, e.g. for the additional repositories, you can place them into the +`ca-trust` directory. + During the build, any RPMs found in the `rpms` directory are installed in the image. Place your RPMs to be tested in this directory. diff --git a/ca-trust/.gitignore b/ca-trust/.gitignore new file mode 100644 index 000000000..72e8ffc0d --- /dev/null +++ b/ca-trust/.gitignore @@ -0,0 +1 @@ +*