Skip to content

Commit

Permalink
fix unwanted certs removal
Browse files Browse the repository at this point in the history
  • Loading branch information
tarnowsc committed Sep 15, 2023
1 parent cf0bb64 commit 3eaf3b9
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 3eaf3b9

Please sign in to comment.