Skip to content
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

Docker image file is not creating #23

Open
prakashkchauhan opened this issue Nov 17, 2022 · 3 comments
Open

Docker image file is not creating #23

prakashkchauhan opened this issue Nov 17, 2022 · 3 comments

Comments

@prakashkchauhan
Copy link

Below is the stack trace and error is about org.springframework.boot:spring-boot-maven-plugin:2.5.0:build-image. I have tried with different spring boot versions 2.5+ but still the same issues. If any one has idea then please reply.

[[1;34mINFO[m] [1m--- [0;32mmaven-resources-plugin:3.2.0:resources[m [1m(default-resources)[m @ [36mcurrency-exchange-service[0;1m ---[m
[[1;34mINFO[m] Using 'UTF-8' encoding to copy filtered resources.
[[1;34mINFO[m] Using 'UTF-8' encoding to copy filtered properties files.
[[1;34mINFO[m] Copying 1 resource
[[1;34mINFO[m] Copying 1 resource
[[1;34mINFO[m]
[[1;34mINFO[m] [1m--- [0;32mmaven-compiler-plugin:3.8.1:compile[m [1m(default-compile)[m @ [36mcurrency-exchange-service[0;1m ---[m
[[1;34mINFO[m] Changes detected - recompiling the module!
[[1;34mINFO[m] Compiling 5 source files to C:\v_prakash\study\workspace\microservice\spring-microservices-v2-main\04.docker\currency-exchange-service\target\classes
[[1;34mINFO[m]
[[1;34mINFO[m] [1m--- [0;32mmaven-resources-plugin:3.2.0:testResources[m [1m(default-testResources)[m @ [36mcurrency-exchange-service[0;1m ---[m
[[1;34mINFO[m] Using 'UTF-8' encoding to copy filtered resources.
[[1;34mINFO[m] Using 'UTF-8' encoding to copy filtered properties files.
[[1;34mINFO[m] skip non existing resourceDirectory C:\v_prakash\study\workspace\microservice\spring-microservices-v2-main\04.docker\currency-exchange-service\src\test\resources
[[1;34mINFO[m]
[[1;34mINFO[m] [1m--- [0;32mmaven-compiler-plugin:3.8.1:testCompile[m [1m(default-testCompile)[m @ [36mcurrency-exchange-service[0;1m ---[m
[[1;34mINFO[m] Changes detected - recompiling the module!
[[1;34mINFO[m] Compiling 1 source file to C:\v_prakash\study\workspace\microservice\spring-microservices-v2-main\04.docker\currency-exchange-service\target\test-classes
[[1;34mINFO[m]
[[1;34mINFO[m] [1m--- [0;32mmaven-surefire-plugin:2.22.2:test[m [1m(default-test)[m @ [36mcurrency-exchange-service[0;1m ---[m
[[1;34mINFO[m] Tests are skipped.
[[1;34mINFO[m]
[[1;34mINFO[m] [1m--- [0;32mmaven-jar-plugin:3.2.0:jar[m [1m(default-jar)[m @ [36mcurrency-exchange-service[0;1m ---[m
[[1;34mINFO[m] Building jar: C:\v_prakash\study\workspace\microservice\spring-microservices-v2-main\04.docker\currency-exchange-service\target\currency-exchange-service-0.0.1-SNAPSHOT.jar
[[1;34mINFO[m]
[[1;34mINFO[m] [1m--- [0;32mspring-boot-maven-plugin:2.5.0:repackage[m [1m(repackage)[m @ [36mcurrency-exchange-service[0;1m ---[m
[[1;34mINFO[m] Replacing main artifact with repackaged archive
[[1;34mINFO[m]
[[1;34mINFO[m] [1m<<< [0;32mspring-boot-maven-plugin:2.5.0:build-image[m [1m(default)[0;1m < [0;1mpackage[m @ [36mcurrency-exchange-service[0;1m <<<[m
[[1;34mINFO[m]
[[1;34mINFO[m]
[[1;34mINFO[m] [1m--- [0;32mspring-boot-maven-plugin:2.5.0:build-image[m [1m(default)[m @ [36mcurrency-exchange-service[0;1m ---[m
[[1;34mINFO[m] Building image 'docker.io/prakashkchauhan/mmv2-currency-exchange-service:0.0.1-SNAPSHOT'
[[1;34mINFO[m]
[[1;34mINFO[m] > Executing lifecycle version v0.15.1
[[1;34mINFO[m] > Using build cache volume 'pack-cache-8c160be836.build'
[[1;34mINFO[m]
[[1;34mINFO[m] > Running creator
[[1;34mINFO[m] [creator] ===> DETECTING
[[1;34mINFO[m] [creator] ======== Output: paketo-buildpacks/node-run-script@0.5.1 ========
[[1;34mINFO[m] [creator] open /workspace/package.json: no such file or directory
[[1;34mINFO[m] [creator] err: paketo-buildpacks/node-run-script@0.5.1 (1)
[[1;34mINFO[m] [creator] ======== Output: paketo-buildpacks/node-run-script@0.5.1 ========
[[1;34mINFO[m] [creator] open /workspace/package.json: no such file or directory
[[1;34mINFO[m] [creator] err: paketo-buildpacks/node-run-script@0.5.1 (1)
[[1;34mINFO[m] [creator] ======== Output: paketo-buildpacks/node-run-script@0.5.1 ========
[[1;34mINFO[m] [creator] open /workspace/package.json: no such file or directory
[[1;34mINFO[m] [creator] err: paketo-buildpacks/node-run-script@0.5.1 (1)
[[1;34mINFO[m] [creator] ======== Output: paketo-buildpacks/node-run-script@0.5.1 ========
[[1;34mINFO[m] [creator] open /workspace/package.json: no such file or directory
[[1;34mINFO[m] [creator] err: paketo-buildpacks/node-run-script@0.5.1 (1)
[[1;34mINFO[m] [creator] 6 of 24 buildpacks participating
[[1;34mINFO[m] [creator] paketo-buildpacks/ca-certificates 3.4.0
[[1;34mINFO[m] [creator] paketo-buildpacks/bellsoft-liberica 9.10.0
[[1;34mINFO[m] [creator] paketo-buildpacks/syft 1.22.1
[[1;34mINFO[m] [creator] paketo-buildpacks/executable-jar 6.5.0
[[1;34mINFO[m] [creator] paketo-buildpacks/dist-zip 5.4.0
[[1;34mINFO[m] [creator] paketo-buildpacks/spring-boot 5.20.0
[[1;34mINFO[m] [creator] ===> ANALYZING
[[1;34mINFO[m] [creator] Previous image with name "docker.io/prakashkchauhan/mmv2-currency-exchange-service:0.0.1-SNAPSHOT" not found
[[1;34mINFO[m] [creator] ===> RESTORING
[[1;34mINFO[m] [creator] ===> BUILDING
[[1;34mINFO[m] [creator]
[[1;34mINFO[m] [creator] Paketo Buildpack for CA Certificates 3.4.0
[[1;34mINFO[m] [creator] https://github.com/paketo-buildpacks/ca-certificates
[[1;34mINFO[m] [creator] Launch Helper: Contributing to layer
[[1;34mINFO[m] [creator] Creating /layers/paketo-buildpacks_ca-certificates/helper/exec.d/ca-certificates-helper
[[1;34mINFO[m] [creator]
[[1;34mINFO[m] [creator] Paketo Buildpack for BellSoft Liberica 9.10.0
[[1;34mINFO[m] [creator] https://github.com/paketo-buildpacks/bellsoft-liberica
[[1;34mINFO[m] [creator] Build Configuration:
[[1;34mINFO[m] [creator] $BP_JVM_JLINK_ARGS --no-man-pages --no-header-files --strip-debug --compress=1 configure custom link arguments (--output must be omitted)
[[1;34mINFO[m] [creator] $BP_JVM_JLINK_ENABLED false enables running jlink tool to generate custom JRE
[[1;34mINFO[m] [creator] $BP_JVM_TYPE JRE the JVM type - JDK or JRE
[[1;34mINFO[m] [creator] $BP_JVM_VERSION 16.* the Java version
[[1;34mINFO[m] [creator] Launch Configuration:
[[1;34mINFO[m] [creator] $BPL_DEBUG_ENABLED false enables Java remote debugging support
[[1;34mINFO[m] [creator] $BPL_DEBUG_PORT 8000 configure the remote debugging port
[[1;34mINFO[m] [creator] $BPL_DEBUG_SUSPEND false configure whether to suspend execution until a debugger has attached
[[1;34mINFO[m] [creator] $BPL_HEAP_DUMP_PATH write heap dumps on error to this path
[[1;34mINFO[m] [creator] $BPL_JAVA_NMT_ENABLED true enables Java Native Memory Tracking (NMT)
[[1;34mINFO[m] [creator] $BPL_JAVA_NMT_LEVEL summary configure level of NMT, summary or detail
[[1;34mINFO[m] [creator] $BPL_JFR_ARGS configure custom Java Flight Recording (JFR) arguments
[[1;34mINFO[m] [creator] $BPL_JFR_ENABLED false enables Java Flight Recording (JFR)
[[1;34mINFO[m] [creator] $BPL_JMX_ENABLED false enables Java Management Extensions (JMX)
[[1;34mINFO[m] [creator] $BPL_JMX_PORT 5000 configure the JMX port
[[1;34mINFO[m] [creator] $BPL_JVM_HEAD_ROOM 0 the headroom in memory calculation
[[1;34mINFO[m] [creator] $BPL_JVM_LOADED_CLASS_COUNT 35% of classes the number of loaded classes in memory calculation
[[1;34mINFO[m] [creator] $BPL_JVM_THREAD_COUNT 250 the number of threads in memory calculation
[[1;34mINFO[m] [creator] $JAVA_TOOL_OPTIONS the JVM launch flags
[[1;34mINFO[m] [creator] Using Java version 16.* from BP_JVM_VERSION
[[1;34mINFO[m] [creator] No valid JRE available, providing matching JDK instead. Using a JDK at runtime has security implications.
[[1;34mINFO[m] [creator] : Contributing to layer
[[1;34mINFO[m] [creator] Warning: Dependency has no SHA256. Skipping cache.
[[1;34mINFO[m] [creator] Downloading from
[[1;34mINFO[m] [creator] unable to invoke layer creator
[[1;34mINFO[m] [creator] unable to get dependency
[[1;34mINFO[m] [creator] unable to download
[[1;34mINFO[m] [creator] unable to request
[[1;34mINFO[m] [creator] Get "": unsupported protocol scheme ""
[[1;34mINFO[m] [creator] ERROR: failed to build: exit status 1
[[1;34mINFO[m] [1m------------------------------------------------------------------------[m
[[1;34mINFO[m] [1;31mBUILD FAILURE[m
[[1;34mINFO[m] [1m------------------------------------------------------------------------[m
[[1;34mINFO[m] Total time: 13.997 s
[[1;34mINFO[m] Finished at: 2022-11-17T11:03:29Z
[[1;34mINFO[m] [1m------------------------------------------------------------------------[m
[[1;31mERROR[m] Failed to execute goal [32morg.springframework.boot:spring-boot-maven-plugin:2.5.0:build-image[m [1m(default)[m on project [36mcurrency-exchange-service[m: [1;31mExecution default of goal org.springframework.boot:spring-boot-maven-plugin:2.5.0:build-image failed: Builder lifecycle 'creator' failed with status code 145[m -> [1m[Help 1][m
[[1;31mERROR[m]
[[1;31mERROR[m] To see the full stack trace of the errors, re-run Maven with the [1m-e[m switch.
[[1;31mERROR[m] Re-run Maven using the [1m-X[m switch to enable full debug logging.
[[1;31mERROR[m]
[[1;31mERROR[m] For more information about the errors and possible solutions, please read the following articles:
[[1;31mERROR[m] [1m[Help 1][m http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

@prakashkchauhan prakashkchauhan changed the title Docker image file is not happening Docker image file is not creating Nov 17, 2022
@amitava9018
Copy link

I am also facing the same issue and tried every way like reinstalling maven, java. It seems this forum is no longer updating anything or comment on any issue. However still any help will be appreciated

@Arnazarov
Copy link

I am also facing the same issue and tried every way like reinstalling maven, java. It seems this forum is no longer updating anything or comment on any issue. However still any help will be appreciated

Try using the same spring, cloud and java versions you used in Docker section of the course when creating first docker images for your services. For instance, I've used Spring 2.4.5, Spring cloud 2020.0.03 and Java 11 versions and it worked!

@amitava9018
Copy link

amitava9018 commented Mar 5, 2023 via email

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

No branches or pull requests

3 participants