Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add curl and jq to release image #578

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

BenjaminHerbert
Copy link
Contributor

Resolves #548 - adds curl and jq to the release image.

The apk command is changed to download the index only one time. Afterwards the cache is cleared.

curl \
jq \
wget \
&& rm /var/cache/apk/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not pass --no-cache? Or maybe I don't understand the motivation to clear the cache here.

Copy link
Contributor Author

@BenjaminHerbert BenjaminHerbert Jun 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right... I thought the index would be downloaded multiple times, but it isn't. My change would only be helpful for multiple apk add statements, not for a single one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simar7 Could you have a look?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

This adds curl and jq to the release image.
@simar7 simar7 merged commit a321902 into aquasecurity:main Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add curl and jq to the postee release build
3 participants