-
Notifications
You must be signed in to change notification settings - Fork 183
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
[FLINK-16260] Change generate-stackbrew-library.sh to support new release.metadata file #31
Conversation
…ease.metadata file
Thank you for your review. I addressed your comments. |
local repo="$1"; shift | ||
local officialImagesUrl='https://github.com/docker-library/official-images/raw/master/library/' | ||
# Inputs: | ||
# - tags: comma-seprated list of image tags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
variable name does not match (I'd use tags
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another minor comment, otherwise +1.
local key="$1" | ||
local file="$2" | ||
local line=$(cat $file | grep "$key:") | ||
echo $line | cut -d ':' -f 2 | tr -d ' ' # remove key from line, remove whitespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked at various entries in https://github.com/docker-library/official-images and they all separated tags with a comma and space ,
😢
We could use sed
again: echo $line | sed "s/${key}: //g"
Thank you for your thorough review! Merging ... |
The final stackbrew file is identical (except for the order of the entries) with the old file.
Once this and #32 are merged, I'll open PRs to update the individual branches and master.