Skip to content

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

Closed
wants to merge 5 commits into from
Closed

Conversation

vrogach2020
Copy link
Contributor

No description provided.

* @param dockerfile dockerfile for building custom tarantool image
*/
public TarantoolImageParams(String tag, File dockerfile) {
Copy link
Collaborator

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(
Copy link
Collaborator

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()) {
Copy link
Collaborator

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?

@vrogach2020
Copy link
Contributor Author

To speed up the release I've left only necessary changed here
#46

@wey1and wey1and deleted the prepare_0_5 branch May 19, 2022 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants