- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用 paketobuildpacks/builder:base
和 paketobuildpacks/run:base-cnb
图像在离线环境中构建图像。我正在运行 demo spring-boot project我通过 http://start.spring.io/ 创建的
所以这是我用来构建图像的命令
gradle clean build bootBuildImage
在我有互联网连接的机器上,一切正常,我能够成功构建图像。但是,当我将同一个项目带到我的离线环境并尝试执行相同的操作时,它会抛出一些错误。
唯一不同的是我需要在我的离线环境(build.gradle)中配置这个
bootBuildImage {
builder = "myprivateartifactory/paketobuildpacks/builder:base",
runImage = "myprivateartifactory/paketobuildpacks/run:base-cnb"
}
以下运行时启用了--debug
- gradle clean build bootBuildImage --debug
Gradle Test Executor 6 finished executing tests.
> Task :test
Finished generating test XML results (0.008 secs) into: C:\Users\joseph\Desktop\demo (9)\demo\build\test-results\test
Generating HTML test report...
Finished generating test html results (0.004 secs) into: C:\Users\joseph\Desktop\demo (9)\demo\build\reports\tests\test
:test (Thread[Execution worker for ':' Thread 7,5,main]) completed. Took 2.708 secs.
:check (Thread[Execution worker for ':' Thread 7,5,main]) started.
> Task :check
Skipping task ':check' as it has no actions.
:check (Thread[Execution worker for ':' Thread 7,5,main]) completed. Took 0.0 secs.
:build (Thread[Execution worker for ':' Thread 7,5,main]) started.
> Task :build
Skipping task ':build' as it has no actions.
:build (Thread[Execution worker for ':' Thread 7,5,main]) completed. Took 0.0 secs.
:bootBuildImage (Thread[Execution worker for ':' Thread 7,5,main]) started.
> Task :bootBuildImage
Caching disabled for task ':bootBuildImage' because:
Build cache is disabled
Task ':bootBuildImage' is not up-to-date because:
Task has not declared any outputs despite executing actions.
Building image 'docker.io/library/demo:0.0.1-SNAPSHOT'
> Pulling builder image 'cr.io/paketobuildpacks/builder:base' ..................................................
> Pulled builder image 'cr.io/paketobuildpacks/builder@sha256:dfbd2831033f37161f5027dfa46d5a658b29a3302c33aaf0219160a05fe5c12e'
> Task :bootBuildImage FAILED
:bootBuildImage (Thread[Execution worker for ':' Thread 7,5,main]) completed. Took 2.298 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bootBuildImage'.
> No 'io.buildpacks.builder.metadata' label found in image config labels 'io.buildpacks.stack.description,io.buildpacks.stack.distro.name,io.buildpacks.stack.distro.version,io.buildpacks.stack.homepage,io.buildpacks.stack.id,io.buildpacks.stack.maintainer,io.buildpacks.stack.metadata,io.buildpacks.stack.mixins,io.buildpacks.stack.released'
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 7s
8 actionable tasks: 8 executed
设置:
Spring 引导 2.4.1/梯度 6.7.1
我做错了什么?如果需要更多信息,请告诉我
谢谢!
最佳答案
参见 spring-boot#24641进行更多讨论。简而言之,上述错误的原因是使用了错误的图像。
关于spring - 无法在离线环境中使用 gradle bootBuildImage 构建镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65344886/
我正在尝试使用 paketobuildpacks/builder:base 和 paketobuildpacks/run:base-cnb 图像在离线环境中构建图像。我正在运行 demo spring
我不确定这是否可能在不使用自定义基础镜像的情况下使用,但我正在尝试使用自签名 SSL 证书在公司防火墙后面构建镜像: > Task :bootBuildImage Caching disabled f
TLDR: Spring Boot 梯度bootBuildImage任务因 x509 证书验证错误而失败(由于 zscaler)。在哪里添加根证书? 信息 我们正在使用 Spring Boot (2.
我已经更新了我的项目以使用 springboot 2.3.0 并尝试使用默认的 springboot gradle 任务 bootBuildImage 构建 docker 镜像。 该项目是一个简单的休
我正在尝试设置一个 Spring Boot/Gradle 项目以使用 bootBuildImage 构建我的 Docker 镜像,但遇到了障碍。我们的构建服务器上的外部网络访问权限有限;我们使用私有(
当我使用 spring boot 应用程序创建 docker 镜像时,我看到使用 spring boot 应用程序安装到正在运行的容器中的目录的文件名中存在编码问题。我通过 gradle 任务创建 d
我是一名优秀的程序员,十分优秀!