update TiUP offline deployment; rename tiup mirrors to tiup mirror#3425
Conversation
| ## 6. 部署 TiDB 集群 | ||
|
|
||
| `/path/to/mirror` 是 `tiup mirrors <target-dir>` 中输出的 package 所在离线机器的位置: | ||
| `/path/to/mirror` 是执行 `local_install.sh` 提示中输出的离线镜像包的位置: |
There was a problem hiding this comment.
| `/path/to/mirror` 是执行 `local_install.sh` 提示中输出的离线镜像包的位置: | |
| `/path/to/mirror` 是执行 `local_install.sh` 命令时输出的离线镜像包的位置: |
|
DNM now, I have some other documents to update. |
|
|
||
| ```bash | ||
| tiup mirrors package --os=linux v4.0.0 | ||
| tiup mirror clone package v4.0.0 --os=linux --arch=amd64 |
| --- | ||
| title: 搭建私有镜像 | ||
| category: tools | ||
| aliases: ['/docs-cn/dev/reference/tools/tiup/mirror/'] |
There was a problem hiding this comment.
| aliases: ['/docs-cn/dev/reference/tools/tiup/mirror/'] | |
| aliases: ['/docs-cn/dev/tiup/tiup-mirrors/','/docs-cn/dev/reference/tools/tiup/mirror/'] |
文件改名涉及url的变动,需要加个新 alias
|
tiup mirrors 组件是改名成 tiup mirror 了吗? @lichunzhu @lonng 搜了下全站的文档,发现还有几处用的是 tiup mirrors:
如果组件改名了,那么 url、变量名是否也需要相应更新下? |
这几个不影响,tiup mirrors 弃用了,改成 tiup mirror |
ok, @lichunzhu 更新完了吗?ready for review 了麻烦 at 我下 |
| wget https://download.pingcap.org/xxx.tar.gz | ||
| mv xxx.tar.gz package.tar.gz |
There was a problem hiding this comment.
等上传包后,我会更新这里,然后再合 PR
@yikeke 可以看了,现在 tiup 从 pingcap-incubar 移到了 pingcap,tiup-cluster 合入了 tiup repo,更新了一下 link。离线包这里我会在上传包后更新包名 |
|
|
||
| ### 使用 TiUP 离线安装 TiDB 集群 | ||
|
|
||
| 以在隔离的环境中安装一个 v4.0.0-rc 的 TiDB 集群为例,可以执行以下步骤: |
| 环境变量 `TIUP_COMPONENT_INSTALL_DIR` 会由 TiUP 在运行时传入,指向该组件的安装目录。 | ||
|
|
||
| 3. 参考[搭建私有镜像](/tiup/tiup-mirrors.md) 搭建离线镜像或私有镜像(因为目前官方镜像未开放 publish 功能,所以不能发布自己的包),搭建完之后确保 `TIUP_MIRRORS` 变量指向搭建的镜像。 | ||
| 3. 参考[搭建私有镜像](/tiup/tiup-mirror.md) 搭建离线镜像或私有镜像(因为目前官方镜像未开放 publish 功能,所以不能发布自己的包),搭建完之后确保 `TIUP_MIRRORS` 变量指向搭建的镜像。 |
There was a problem hiding this comment.
可以把 tiup-package 删掉了,我们以后不需要这个组件了。
|
|
||
| ### 使用 TiUP 离线安装 TiDB 集群 | ||
|
|
||
| 这里可以参考[使用 TiUP 离线部署](/production-offline-deployment-using-tiup.md)安装 TiUP 离线镜像,部署并启动 TiDB 集群。 |
There was a problem hiding this comment.
| 这里可以参考[使用 TiUP 离线部署](/production-offline-deployment-using-tiup.md)安装 TiUP 离线镜像,部署并启动 TiDB 集群。 | |
| 参考[使用 TiUP 离线部署](/production-offline-deployment-using-tiup.md#方式二使用-tiup-mirror-clone-命令手动打包离线组件包)安装 TiUP 离线镜像,部署并启动 TiDB 集群。 |
…unzhu/docs-cn into updateTiUPOfflineDeployment
|
/merge |
|
/run-all-tests |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
|
cherry pick to release-4.0 in PR #3455 |
* translate pingcap/docs-cn#3204 and pingcap/docs-cn#3425 * align https://github.com/pingcap/docs-cn/pull/3570/files * trigger ci Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
* create and rename file; update TOC and docs guide * align the rest of pingcap/docs-cn#3197 * Update TOC.md * add an alias * align https://github.com/pingcap/docs-cn/pull/3417/files * align pingcap/docs-cn#3463 and pingcap/docs-cn#3425 * update aliases * Apply suggestions from code review Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> * add summary and update format * Apply suggestions from code review Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> * Update tiup/tiup-component-management.md Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
What is changed, added or deleted? (Required)
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?