Giter Site home page Giter Site logo

native-intro's Introduction

Simple project to test springboot native image.

native-intro's People

Contributors

philippeagra avatar

Watchers

 avatar

native-intro's Issues

Host name must not be empty

Environment:

Windows 10:

Docker Engine v25.0.3

Graalvm

$ java --version
java 22 2024-03-19
Java(TM) SE Runtime Environment Oracle GraalVM 22+36.1 (build 22+36-jvmci-b02)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 22+36.1 (build 22+36-jvmci-b02, mixed mode, sharing)
$  ./mvnw -Pnative spring-boot:build-image
[INFO] <<< spring-boot:3.2.0:build-image (default-cli) < package @ intro <<<
[INFO]
[INFO]
[INFO] --- spring-boot:3.2.0:build-image (default-cli) @ intro ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  21.665 s
[INFO] Finished at: 2024-04-02T16:18:48-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.2.0:build-image (default-cli) on project intro: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:3.2.0:build-image failed: Host name must not be empty -> [Help 1]

Added to pom:

			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<!--https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#build-image-->
				<configuration>
					<imageName>${artifactId}</imageName>
					<!-- Configuration for building DockerDesktop Setting>General>Expose daemon on checkbox -->
					<docker>
						<host>tcp://localhost:2375</host>
					</docker>
				</configuration>
			</plugin>

I added the following which didn't work:
/c/ProgramData/DockerDesktop/config/daemon.json

{
  "hosts": ["npipe:////./pipe/docker_engine", "tcp://0.0.0.0:2375"]
}

Changed DockerDesktop Settings, same results.
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.