Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static ImageConfiguration getDefaultImageConfiguration(MavenProject project, String defaultImageName) {
- if(defaultImageName == null || defaultImageName.isEmpty()) {
- defaultImageName = project.getGroupId() + "/" + project.getArtifactId() + ":" +
- project.getVersion();
- }
- ImageConfiguration imageConfiguration = new ImageConfiguration.Builder()
- .name(defaultImageName)
- .buildConfig(new BuildImageConfiguration.Builder()
- .dockerFileDir("src/main/docker")
- .build())
- .build();
- return imageConfiguration;
- }
Add Comment
Please, Sign In to add comment