@@ -33,6 +33,8 @@ docker run -it --rm --privileged \
3333 -e SOURCE_GET_URL=file:///podman/source \
3434 -e DEST_PUT_URL=file:///podman/dest \
3535 -e BUILDER_SHIM_IMAGE=bk-builder-heroku-bionic:v1.0.2 \
36+ -e CACHE_REGISTRY=' mirrors.example.com/foo' \
37+ -e REGISTRY_AUTH=' {"mirrors.example.com": "Basic xxx"}' \
3638 -v $APP_PATH :/podman/source \
3739 -v $SMART_PATH :/podman/dest \
3840 smart-app-builder:pind
@@ -49,6 +51,8 @@ docker run -it --rm --privileged \
4951- ` DEST_PUT_URL ` : S-Mart 包的生成路径。同样地,` podman ` 用户需要对目录具有读写权限(如示例中的 ` /podman/dest ` )。
5052- ` BUILDER_SHIM_IMAGE ` : CNB
5153 构建工具镜像。镜像的制作方法可以参考 [ cnb-builder-shim] ([ blueking-paas/cnb-builder-shim/README.md at builder-stack · TencentBlueKing/blueking-paas · GitHub] ( https://github.com/TencentBlueKing/blueking-paas/blob/builder-stack/cnb-builder-shim/README.md ) )。
54+ - ` CACHE_REGISTRY ` : (可选) 用于缓存的镜像仓库。设置后, 构建过程会启用缓存功能, 否则不启用。
55+ - ` REGISTRY_AUTH ` : (可选) 镜像仓库凭证。如果镜像仓库需要鉴权, 则必须设置此参数。
5256
5357#### 2.2 基于 DIND 构建
5458
@@ -70,6 +74,8 @@ docker run -it --rm --privileged \
7074 -e SOURCE_GET_URL=file:///tmp/source \
7175 -e DEST_PUT_URL=file:///tmp/dest \
7276 -e BUILDER_SHIM_IMAGE=bk-builder-heroku-bionic:v1.0.2 \
77+ -e CACHE_REGISTRY=' mirrors.example.com/foo' \
78+ -e REGISTRY_AUTH=' {"mirrors.example.com": "Basic xxx"}' \
7379 -v $APP_PATH :/tmp/source \
7480 -v $SMART_PATH :/tmp/dest \
7581 smart-app-builder:dind
@@ -84,6 +90,8 @@ docker run -it --rm --privileged \
8490- ` DEST_PUT_URL ` : S-Mart 包的生成路径
8591- ` BUILDER_SHIM_IMAGE ` : CNB
8692 构建工具镜像。镜像的制作方法可以参考 [ cnb-builder-shim] ([ blueking-paas/cnb-builder-shim/README.md at builder-stack · TencentBlueKing/blueking-paas · GitHub] ( https://github.com/TencentBlueKing/blueking-paas/blob/builder-stack/cnb-builder-shim/README.md ) )。
93+ - ` CACHE_REGISTRY ` : (可选) 用于缓存的镜像仓库。设置后, 构建过程会启用缓存功能, 否则不启用。
94+ - ` REGISTRY_AUTH ` : (可选) 镜像仓库凭证。如果镜像仓库需要鉴权, 则必须设置此参数。
8795
8896#### 2.3 PIND vs DIND
8997
0 commit comments