-
Notifications
You must be signed in to change notification settings - Fork 17
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
refactor: simplify make commands #32
Conversation
Makefile
Outdated
targets ?= training serving | ||
build: ## Build and push training/serving container image using Docker. Specify target=<training|serving> |
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.
target or targets?
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.
targets
- it now accepts a list of targets so you can choose to build both training and serving containers with one command
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.
targets ?= training serving | |
build: ## Build and push training/serving container image using Docker. Specify target=<training|serving> | |
targets ?= training serving | |
build: ## Build and push training and/or serving container(s) image using Docker. Specify targets=<training serving> e.g. targets=training or targets=training serving (default) |
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 think it would need to be targets="training serving"
(in quotes) to be interpreted correctly by the shell
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.
Makefile
Outdated
$(MAKE) test-components GROUP=$$(basename $$component_group) ; \ | ||
done | ||
targets ?= "training serving" | ||
build: ## Build and push training and/or serving container(s) image using Docker. Specify targets=<training serving> e.g. targets=training or targets=training serving (default) |
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.
add quotes to the docstring as well e.g. targets=training or targets="training serving" (default)
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.
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.
/gcbrun |
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.
Changes look good - please make sure to go through each of the README files to update any instructions that refer to the make
commands
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.
LGTM
Description
This PR refines the make commands to be simpler and I have implemented this by merging old commands into new ones
Files updated are the Makefile and the cloudbuild files accordingly.
How has this been tested?
Please explain how you have tested the new changes.
Checklist
Pipeline run links: