Skip to content

Commit

Permalink
Add RH CA certs to the containerized Agent base container
Browse files Browse the repository at this point in the history
  • Loading branch information
webbnh committed Aug 25, 2023
1 parent 7e22b8d commit e6f09c7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions agent/containers/images/Dockerfile.base.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
# {{ distro_name }} pbench-agent base image
FROM {{ image_repo }}/{{ image_name }}:{{ image_tag }}

# Since the Pbench Server requires TLS access and it is hosted on an internal
# Red Hat host, we need the Red Hat CA certificates in order to validate the
# connection to it when we upload results.
ADD \
https://certs.corp.redhat.com/certs/2015-IT-Root-CA.pem \
https://certs.corp.redhat.com/certs/2022-IT-Root-CA.pem \
/etc/pki/ca-trust/source/anchors/
RUN update-ca-trust

# Install the appropriate pbench repository file for {{ distro_name }}.
COPY ./{{ pbench_repo_file }} /etc/yum.repos.d/pbench.repo

Expand Down

0 comments on commit e6f09c7

Please sign in to comment.