This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.2.10.2. 서브스크립션 자격을 빌드 보안으로 추가
Red Hat 서브스크립션을 사용하여 콘텐츠를 설치하는 빌드에는 자격 키가 빌드 보안으로 포함되어야 합니다.
사전 요구 사항
서브스크립션을 통해 Red Hat 자격에 액세스할 수 있어야 하며 자격에는 별도의 공개 및 개인 키 파일이 있어야 합니다.
작은 정보
RHEL(Red Hat Enterprise Linux) 7을 사용하여 인타이틀먼트 빌드를 수행할 때 yum
명령을 실행하기 전에 Dockerfile에 다음 지침이 있어야 합니다.
RUN rm /etc/rhsm-host
RUN rm /etc/rhsm-host
프로세스
자격이 포함된 보안을 생성하여 공개 및 개인 키가 포함된 별도의 파일이 있는지 확인합니다.
oc create secret generic etc-pki-entitlement --from-file /path/to/entitlement/{ID}.pem \ --from-file /path/to/entitlement/{ID}-key.pem ...
$ oc create secret generic etc-pki-entitlement --from-file /path/to/entitlement/{ID}.pem \ > --from-file /path/to/entitlement/{ID}-key.pem ...
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 빌드 구성에 빌드 입력으로 보안을 추가합니다.
source: secrets: - secret: name: etc-pki-entitlement destinationDir: etc-pki-entitlement
source: secrets: - secret: name: etc-pki-entitlement destinationDir: etc-pki-entitlement
Copy to Clipboard Copied! Toggle word wrap Toggle overflow