From 3eaf3b9ab65a0eb04fb8eeb3f5a4a6cd8ca41e8d Mon Sep 17 00:00:00 2001 From: cezary tarnowski Date: Fri, 15 Sep 2023 13:40:35 +0200 Subject: [PATCH] fix unwanted certs removal --- Dockerfile | 4 ++-- Dockerfile.ubi | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2fe6080e40..cbc2916084 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,9 +13,9 @@ RUN bundle config set --local without 'test development' && \ bundle config --local jobs "$(nproc --all)" && \ bundle install && \ # Remove private keys brought in by gems in their test data - find / -name openid_connect -type d -exec find {} -name '*.pem' -type f -delete \; && \ + find / -name 'openid_connect-*' -type d -exec find {} -name '*.pem' -type f -delete \; && \ find / -name 'httpclient-*' -type d -exec find {} -name '*.key' -type f -delete \; && \ - find / -name httpclient -type d -exec find {} -name '*.pem' -type f -delete \; + find / -name 'httpclient-*' -type d -exec find {} -name '*.pem' -type f -delete \; FROM cyberark/ubuntu-ruby-fips:latest diff --git a/Dockerfile.ubi b/Dockerfile.ubi index c2f9924ede..644e44f6e9 100644 --- a/Dockerfile.ubi +++ b/Dockerfile.ubi @@ -17,7 +17,7 @@ RUN bundle config set --local without 'test development' && \ find / -name 'httpclient-*' -type d -exec find {} -name '*.pem' -type f -delete \; && \ find / -name 'httpclient-*' -type d -exec find {} -name '*.key' -type f -delete \; && \ # remove the private key in the oidc_connect gem spec directory - find / -name openid_connect -type d -exec find {} -name '*.pem' -type f -delete \; + find / -name 'openid_connect-*' -type d -exec find {} -name '*.pem' -type f -delete \; # Conjur Base Image (UBI) FROM cyberark/ubi-ruby-fips:latest