https://docs.google.com/document/d/1t9QvoWhPR7CVWirhijPv0t2RCODyFzMmXFVsGG7M9a0/edit
Purpose
This document describes the procedure to build FIPS-UBI images.
Scope
To Enable the UBI images for FIPS compliance and details out the steps to build images.
Prerequisites
Virtual M/C, Awareness on building images, Access to build UBI images, Quay, Jenkins, Dockers
Procedure
Here is the detailed procedure.
Instance with Base Image
Please follow the below instructions :-
Step-1 : docker pull registry.access.redhat.com/ubi8/ubi:8.7
Step-2 : docker run -itd <docker id> bash
Step-3 : docker exec -it <id> bash
Step-4 : fips-mode-setup --check
Step-5 : fips-mode-setup --enable
Step-6 : update-crypto-policies --set FIPS
Step-7 : docker ps
Step-8 : docker stop <id>
Step-9 : docker ps -a
Step-10 : docker start <id>
Step-11 : docker exec -it <id> bash
Steps-12 : fips-mode-setup --check
Output :
FIPS mode is enabled.
Step13:docker commit <id> quay.io/opsmxpublic/ubifips:8.7
Step-14 : docker login quay.io -u <> -p <>
Step-15 : docker push quay.io/opsmxpublic/ubifips :8.7
Dockerfile
Creating new docker ubi8 file with above base image:
Deploy the new docker image build with the above docker file and check the fips status by using below command.
fips-mode-setup --check
FIPS mode is enabled.