728x90
발단
intellij 환경에서 gradle 플러그인을 통해 bootBuildImage 로 docker 의 image 를 관리할 때 생성일자가 과거로 설정되어있는 것을 확인하였다.
환경
- Spring Boot 3.1.3(kotlin)
- build.gradle.kts
해결
tasks.withType<BootBuildImage>{
...
createdDate = "now" // 또는 ISO 8601 규격에 맞는 값을 입력
}
참고
- stack overflow 를 통한 원인
Spring Boot 2.3.0 buildpack builds image with creation date 40 years ago
I've tried to use buildpack in a maven project with Spring Boot 2.3.0 running: mvn spring-boot:build-image Image was created just fine, but I see the following info for it: REPOSITORY ...
stackoverflow.com
- spring boot 배포 문서
Spring Boot 3.1.0 RC1 Release Notes
Spring Boot. Contribute to spring-projects/spring-boot development by creating an account on GitHub.
github.com
- spring 측 gradle 문서(`createdDate` 를 검색하세요)
Spring Boot Maven Plugin Documentation
While you may start your Spring Boot application very easily from your test (or test suite) itself, it may be desirable to handle that in the build itself. To make sure that the lifecycle of your Spring Boot application is properly managed around your inte
docs.spring.io
728x90