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

[FLINK-16260] Change generate-stackbrew-library.sh to support new release.metadata file #31

Closed
wants to merge 2 commits into from

Conversation

rmetzger
Copy link
Contributor

@rmetzger rmetzger commented Jul 27, 2020

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.

generate-stackbrew-library.sh Outdated Show resolved Hide resolved
generate-stackbrew-library.sh Outdated Show resolved Hide resolved
generate-stackbrew-library.sh Outdated Show resolved Hide resolved
@rmetzger
Copy link
Contributor Author

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
Copy link
Contributor

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)

Copy link
Contributor

@zentol zentol left a 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
Copy link
Contributor

@zentol zentol Jul 28, 2020

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"

@zentol zentol assigned zentol and unassigned zentol Jul 28, 2020
@rmetzger
Copy link
Contributor Author

Thank you for your thorough review!

Merging ...

@rmetzger rmetzger closed this in e47a802 Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants