-
Notifications
You must be signed in to change notification settings - Fork 141
Pass AL_TAG to build_plugins.sh #966
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ ARGUMENT_LIST=( | |
"CLOUDWATCH_PLUGIN_TAG" | ||
"CLOUDWATCH_PLUGIN_BRANCH" | ||
"DOCKER_BUILD_FLAGS" | ||
"AL_TAG" | ||
) | ||
|
||
# A variable to hold the build arguments for docker build | ||
|
@@ -43,13 +44,14 @@ KINESIS_PLUGIN_TAG="" | |
FIREHOSE_PLUGIN_TAG="" | ||
CLOUDWATCH_PLUGIN_TAG="" | ||
|
||
AL_TAG="" | ||
|
||
# Method to display usage of the script | ||
usage() { | ||
echo "Usage: $0 [--KINESIS_PLUGIN_CLONE_URL <string>] [--KINESIS_PLUGIN_TAG <string>] [--KINESIS_PLUGIN_BRANCH <string>]\ | ||
[--FIREHOSE_PLUGIN_CLONE_URL <string>] [--FIREHOSE_PLUGIN_TAG <string>] [--FIREHOSE_PLUGIN_BRANCH <string>]\ | ||
[--CLOUDWATCH_PLUGIN_CLONE_URL <string>] [--CLOUDWATCH_PLUGIN_TAG <string>] [--CLOUDWATCH_PLUGIN_BRANCH <string>] \ | ||
[--DOCKER_BUILD_FLAGS <string>]" 1>&2; | ||
[--DOCKER_BUILD_FLAGS <string>] [--AL_TAG <string>]" 1>&2; | ||
exit 1; | ||
} | ||
|
||
|
@@ -107,6 +109,12 @@ do | |
--DOCKER_BUILD_FLAGS) | ||
if [ -n "$2" ];then PLUGIN_BUILD_ARGS="$PLUGIN_BUILD_ARGS $2";fi | ||
shift 2;; | ||
--AL_TAG) | ||
if [ -n "$2" ]; then | ||
PLUGIN_BUILD_ARGS="$PLUGIN_BUILD_ARGS --build-arg AL_TAG=$2" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where/how is this eventually used? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The -AL_TAG override will be used when calling make-release/make-debug which currently assigns a default 2 in the makefile. For AL2023, we will override that default to AL2023 and it will flow down to all make targets and get passed into this script I tried to cut-up the larger PR for all of the changes to make it easier to focus and not get lost in details There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see. But why do the plugin builds need to be AL aware? We're doing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suppose that is true, they do not need to be aware. We go build each plugin and then source that into the final image |
||
AL_TAG=$2 | ||
fi | ||
shift 2;; | ||
# End of arguments. End here and break. | ||
--) shift; break ;; | ||
# Any other argument is an invalid arg. | ||
|
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.
nit: indentation seems off
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.
Huh, whitespace mysteries, can fix