Docker 使用规范
docker
Docker 使用约定。
- License 许可
- Apache-2.0
- 最近更新
- 2026-07-20
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- docker
- description
- Conventions for docker
03 SKILL.md 正文
1. Update eclipse temurin image usages to the latest java version.
Example 1:
If the latest java version is 25and there is an image being used like:
FROM eclipse-temurin:21-alpine
Then it should be updated to:
FROM eclipse-temurin:25-alpine
Example 2:
This example is only valid for CircleCI configuration files located in .circleci/config.yml.
Replace this:
docker:
- image: eclipse-temurin:21-alpine
with:
docker:
- image: eclipse-temurin:25-alpine
2. Do not use docker-compose
The usage of docker-compose has been deprecated and in some cases it doesn't work anymore.
Please replace docker-compose with docker compose everywhere, namely in bash scripts, Makefile and Makefile.mk files, .md files, all kinds of Markdown files, and other files you may find it.
Leave all binary files untouched.
3. Checklist
[] No Dockerfile should use older Java version images [] No Testcontainers code should use older Java version images
04 同仓库更多 Skills
Spring Boot 依赖注入与 Mock 规范
spring
本项目中 Spring Boot 的依赖注入与 mock 约定。在编写、审查或重构集成测试类时(任何标注 @SpringBootTest 的类,或 src/test 下与真实 Spring 上下文交互的类)使用,尤其是在决定如何装配依赖或 mock 协作者时。在任何测试类中添加 @Autowired、@MockBean、@MockitoBean 或字段注入之前,也应先参考本技能。
Spring Boot 集成测试依赖装配
spring-integration-test-wiring
本项目中 Spring Boot 集成测试的依赖注入与 mock 约定。在编写、审查或重构集成测试类时(任何标注 @SpringBootTest 的类,或 src/test 下与真实 Spring 上下文交互的类)使用,尤其是在决定如何装配依赖或 mock 协作者时。在任何测试类中添加 @Autowired、@MockBean、@MockitoBean 或字段注入之前,也应先参考本技能。
Shell 与 Python 脚本规范
Scripts patterns
使用 sh、bash、bat、python 脚本时应遵循的约定。
README 文档编写规范
Readme standards
README 文件中应遵循的约定规范。
Jupiter 测试并行化
parallelization
在所有使用 Jupiter 的测试中使用并行化的约定。
Maven pom.xml 配置规范
Maven standards
在 Maven 文件中(主要是 `pom.xml` 文件)使用的约定。