-
Notifications
You must be signed in to change notification settings - Fork 1
WIP Fixes and refactoring before release #45
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
Conversation
* @param dockerfile dockerfile for building custom tarantool image | ||
*/ | ||
public TarantoolImageParams(String tag, File dockerfile) { |
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'd rather leave both variants (String and File). Both are useful
final File dockerfile; | ||
try { | ||
dockerfile = new File( | ||
Objects.requireNonNull(TarantoolContainerImageHelper.class.getClassLoader().getResource( |
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.
A message can be added here, otherwise it will be an unreadable stacktrace.
* | ||
* @param imageParams parameters for building tarantool image | ||
* @return image name | ||
*/ | ||
static String getImage(TarantoolImageParams imageParams) { | ||
final String tag = imageParams.getTag(); | ||
|
||
if (StringUtils.isEmpty(tag)) { | ||
if (tag.isEmpty()) { |
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.
Is tag really never null?
To speed up the release I've left only necessary changed here |
No description provided.