Compare commits

...
3 Commits
4 changed files with 31 additions and 16 deletions
@@ -1,4 +1,4 @@
name: Build PDF on Release
name: Auto Release
on:
push:
@@ -10,12 +10,10 @@ permissions:
contents: write
jobs:
build-pdf:
name: Generate PDF
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- uses: actions/checkout@v6
- name: Install Chromium and CJK fonts
run: |
@@ -27,9 +25,9 @@ jobs:
LATEST_TAG=$(curl -fsSL -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ github.token }}" https://api.github.com/repos/yeasy/mdpress/releases/latest | jq -r .tag_name)
VERSION="${LATEST_TAG#v}"
echo "Installing mdpress $VERSION"
curl -fsSL "https://github.com/yeasy/mdPress/releases/download/$LATEST_TAG/mdpress_${VERSION}_linux_amd64.tar.gz" -o mdpress.tar.gz
tar xzf mdpress.tar.gz
sudo mv mdpress /usr/local/bin/
curl -fsSL "https://github.com/yeasy/mdPress/releases/download/$LATEST_TAG/mdpress_${VERSION}_linux_amd64.tar.gz" -o /tmp/mdpress.tar.gz
tar xzf /tmp/mdpress.tar.gz -C /tmp mdpress
sudo mv /tmp/mdpress /usr/local/bin/
mdpress --version
- name: Extract tag name
@@ -39,7 +37,7 @@ jobs:
- name: Build PDF
run: mdpress build --format pdf --output docker_practice-${{ steps.tag.outputs.TAG_NAME || 'latest' }}.pdf
- name: Create Release and upload PDF
- name: Create Release with PDF
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
+2
View File
@@ -2,6 +2,8 @@ name: CI
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
+6 -7
View File
@@ -14,9 +14,7 @@
* [阿里云加速器](https://cr.console.aliyun.com/cn-hangzhou/instances) (需登录获取个人加速地址)
本节以 [AtomHub 可信镜像中心](https://hub.atomgit.com/)镜像服务 `https://hub.atomgit.com` 为例进行介绍
> `hub.atomgit.com` 仅包含部分官方镜像可以满足初学者的使用
本节以 [毫秒镜像](https://docker.1ms.run) 镜像服务 `https://docker.1ms.run` 为例进行介绍。由于镜像加速服务经常变动,建议查阅上方的镜像测试仓库获取最新可用地址
### 3.9.2 Ubuntu 22.04+Debian 12+Rocky/Alma/CentOS Stream 9+
@@ -34,7 +32,7 @@ $ systemctl cat docker | grep '\-\-registry\-mirror'
```json
{
"registry-mirrors": [
"https://hub.atomgit.com"
"https://docker.1ms.run"
]
}
```
@@ -54,7 +52,7 @@ $ sudo systemctl restart docker
```json
{
"registry-mirrors": [
"https://hub.atomgit.com"
"https://docker.1ms.run"
]
}
```
@@ -66,7 +64,7 @@ $ sudo systemctl restart docker
```json
{
"registry-mirrors": [
"https://hub.atomgit.com"
"https://docker.1ms.run"
]
}
```
@@ -77,7 +75,7 @@ $ sudo systemctl restart docker
```bash
Registry Mirrors:
https://hub.atomgit.com/
https://docker.1ms.run/
```
### 3.9.6 Kubernetes 官方镜像地址迁移
@@ -96,6 +94,7 @@ $ docker pull registry.k8s.io/xxx
某些镜像不再提供服务添加无用的镜像加速器会拖慢镜像拉取速度你可以从镜像配置列表中删除它们
* https://hub.atomgit.com **已于 2024 年底关闭**
* https://dockerhub.azk8s.cn **已转为私有**
* https://reg-mirror.qiniu.com
* https://registry.docker-cn.com
+16
View File
@@ -101,6 +101,16 @@ docker run -it --rm -p 4000:80 ccr.ccs.tencentyun.com/dockerpracticesig/docker_p
> * 341410255 (I), 419042067 (II), 210028779 (III), 483702734 (IV), 460598761 (V)
> * 581983671 (VI), 252403484 (VII), 544818750 (VIII), 571502246 (IX), 145983035 (X)
## 推荐阅读
本书是技术丛书的一部分以下书籍与本书形成互补
| 书名 | 与本书的关系 |
|------|------------|
| [智能体 Harness 工程指南](https://yeasy.gitbook.io/harness_engineering_guide) | Agent 基础设施中的容器化部署与隔离 |
| [大模型安全权威指南](https://yeasy.gitbook.io/ai_security_guide) | 容器安全与 AI 系统安全的交叉实践 |
| [区块链技术指南](https://yeasy.gitbook.io/blockchain_guide) | 区块链节点的容器化部署 |
## 参与贡献
欢迎[参与项目维护](CONTRIBUTING.md)
@@ -137,4 +147,10 @@ docker run -it --rm -p 4000:80 ccr.ccs.tencentyun.com/dockerpracticesig/docker_p
</a>
</p>
## 许可证
本书采用 [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) 许可证。
您可以自由分享和演绎但需署名非商业使用相同方式共享
[1]: https://item.jd.com/10200902362001.html