Skip to content

Commit

Permalink
Merge pull request #2954 from cyberark/remove_certs
Browse files Browse the repository at this point in the history
CNJR-2591: fix unwanted certs removal
  • Loading branch information
tarnowsc authored Sep 15, 2023
2 parents cf0bb64 + 3eaf3b9 commit 51cae50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.ubi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51cae50

Please sign in to comment.