Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

English #526

Open
wants to merge 223 commits into
base: english
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
4e84715
Fixed error
khs1994 Sep 1, 2019
96aa9b9
deploy pages to docker-practice/zh-cn
khs1994 Sep 5, 2019
dd060d0
add docker-practice.com
khs1994 Sep 5, 2019
49ef715
[install] Update settings
khs1994 Sep 20, 2019
1aef2b7
[cases] Fixed typo
khs1994 Sep 20, 2019
4873267
Update format
khs1994 Sep 20, 2019
803b93c
Update format
khs1994 Sep 20, 2019
21a811d
[install] Fixed error
khs1994 Sep 20, 2019
f17f29b
Update format
khs1994 Sep 20, 2019
f260e3b
Add wechat group
khs1994 Sep 20, 2019
224fbe9
Fixed outdated content
khs1994 Sep 20, 2019
38e810a
[install] Fixed script install, default channel is stable
khs1994 Sep 25, 2019
b11cac8
[Registry Mirror] Update mirror
khs1994 Sep 25, 2019
3923858
Update format
khs1994 Sep 25, 2019
008f015
Update docker hub
khs1994 Sep 25, 2019
a3647ec
Update centos.md
uscwifi Oct 5, 2019
7690686
Merge pull request #423 from uscwifi/patch-1
khs1994 Oct 5, 2019
c788212
Use vuepress build book
khs1994 Oct 29, 2019
fadf84b
Archive docker-machine mesos docker-swarm, close #425
khs1994 Nov 5, 2019
eb274b1
Add Docker Buildx
khs1994 Nov 5, 2019
f44a3ee
Add ide with docker
khs1994 Nov 5, 2019
3ba7560
Add experimental
khs1994 Nov 5, 2019
709c77a
Update title style
khs1994 Nov 5, 2019
6f96aaf
[CI] Fixed actions
khs1994 Nov 6, 2019
61492ff
[vuepress] push dist to coding.net
khs1994 Nov 6, 2019
99e470e
Update link
khs1994 Nov 6, 2019
5cb92f6
Update title style
khs1994 Nov 6, 2019
c836c65
Update command
khs1994 Nov 14, 2019
e1961d6
Fixed 404 link
khs1994 Nov 14, 2019
fde5496
Update kubernetes
khs1994 Nov 15, 2019
e02f015
Fixed #430
khs1994 Nov 18, 2019
c574178
Fix issue #431: AUFS全称修改为Wikipedia的内容
loopever Nov 26, 2019
8e38bee
Merge pull request #432 from loopever/master
khs1994 Nov 26, 2019
83619ad
[Public] coding.net domain is *.mirror.docker-practice.com
khs1994 Nov 29, 2019
a85ae7d
Fixed buildx
khs1994 Dec 1, 2019
0ac2482
Add enable kubernetes on docker-sektop,close #262
khs1994 Dec 9, 2019
a601a83
Update vuepress
khs1994 Dec 9, 2019
f940d22
Add CODEOWNERS
khs1994 Dec 9, 2019
fbfab11
Update registry mirror
khs1994 Dec 9, 2019
3ba77a7
Drone agent use drone/drone-runner-docker:1
khs1994 Dec 9, 2019
2092deb
[Cloud] Remove docker cloud
khs1994 Dec 9, 2019
5931762
Update link
khs1994 Dec 22, 2019
bbfe14e
Update docker commit, Fixed #437
khs1994 Dec 26, 2019
0dcc67d
Add kubeadm, close #438
khs1994 Dec 31, 2019
9f0b2c7
Add podman
khs1994 Dec 31, 2019
386b1e4
Replace dead link
khs1994 Dec 31, 2019
e77c9ec
[Kubernetes] Add dashboard
khs1994 Jan 9, 2020
9d450ff
[Compose] Add lnmp
khs1994 Jan 9, 2020
9a0a76a
Fix a markdown grammatical error
firejq Feb 10, 2020
2f46c51
Merge pull request #439 from firejq/patch-1
khs1994 Feb 11, 2020
5577c9c
Change CoreOS to Fedora CoreOS(FCOS)
khs1994 Feb 1, 2020
a2e8595
vuepress remove archived content
khs1994 Feb 22, 2020
6c0fc9e
cp _images to vuepress dist
khs1994 Feb 23, 2020
33c2b22
[actions] check md files link
khs1994 Feb 23, 2020
1e026fb
Remove 404 link
khs1994 Feb 23, 2020
d887c8b
Update link
khs1994 Feb 23, 2020
d2f5e12
Fixed github pages
khs1994 Feb 23, 2020
ca5502e
Update alpine content: replace default repo
khs1994 Feb 27, 2020
3a24901
Change AUFS to OverlayFS
khs1994 Mar 4, 2020
c720d69
Docker Desktop Support Windows Home
khs1994 Mar 10, 2020
5634eb2
Update aliyun customer case
khs1994 Mar 10, 2020
d8e5cfe
Update install
khs1994 Mar 10, 2020
e4a68ea
Fix issue #440
HoshinoTouko Mar 12, 2020
fced785
Fixed #440 on fedora
khs1994 Mar 12, 2020
c887661
Add docker roadmap
khs1994 Mar 12, 2020
e38ea82
remove github actions files on gitbook dist
khs1994 Mar 12, 2020
bd74c85
gitbook dist commit message include main repo sha
khs1994 Mar 12, 2020
44fdf58
Correct the wrong word
joojtech-bobliu Mar 31, 2020
e9dc8dc
Merge pull request #443 from boblau8686/master
khs1994 Mar 31, 2020
a691aa6
remove azk8s.cn mirror
khs1994 Apr 4, 2020
e079751
Update buildx image
khs1994 Apr 7, 2020
34b6b61
docker镜像的导入和导出修改了章节名字
Apr 12, 2020
ff28d72
Recommit (#446)
khs1994 Apr 26, 2020
4561243
FCOS live iso require 3GB RAM
khs1994 Apr 26, 2020
0fd981a
[buildx] buildkit image support tencent cloud env
khs1994 Apr 26, 2020
18ab306
Update soft to latest version
khs1994 Apr 26, 2020
41da49b
Migrating to new gitbook link
yeasy Apr 29, 2020
bdc8bd6
Fix issue #447: 删除了一个多余的"对" (line 97)
May 8, 2020
8952dee
Merge pull request #448 from niebayes/master
khs1994 May 8, 2020
683cf95
build vuepress docker image
khs1994 Apr 28, 2020
9cfd1fd
offline read docker image add tips
khs1994 Apr 28, 2020
1316e41
offline read image use cn mirror image
khs1994 Apr 28, 2020
acc5c6e
Add link
khs1994 May 10, 2020
f580130
Add baidu registry mirror
khs1994 May 11, 2020
4d3d2d2
fix typo: "运用"疑似笔误
staticdax May 19, 2020
ddec664
Merge pull request #451 from staticdax/master
khs1994 May 20, 2020
f0568eb
Update install content
khs1994 Jun 16, 2020
d4d09f5
docker hub support buildx
khs1994 Jun 16, 2020
67213bc
Update ide content
khs1994 Jun 16, 2020
139b0ca
Update raspberry os name
khs1994 Jun 17, 2020
8b186fb
[windows] install by winget
khs1994 Jun 22, 2020
911ce1a
Fixed #454
khs1994 Jul 3, 2020
6c668a9
Update README
khs1994 Jul 4, 2020
6efe029
Remove download link #455
khs1994 Jul 13, 2020
4aa20ec
Update actions 301 link
khs1994 Jul 13, 2020
c815720
Update image link
khs1994 Jul 14, 2020
61bda4b
Fixed docker image
khs1994 Jul 14, 2020
83fbb87
Add the word to read more fluently
huiyifyj Jul 30, 2020
cf7d53d
Merge pull request #456 from huiyifyj/master
khs1994 Jul 30, 2020
85b2325
Update link
khs1994 Jul 23, 2020
acb8662
wechat is first
khs1994 Aug 10, 2020
edf1a3a
remove outdated content #458
khs1994 Aug 10, 2020
9a46604
ip.cn not support https
khs1994 Aug 10, 2020
9bc245d
[Windows] v1903+ support WSL2
khs1994 Aug 22, 2020
6eb603a
Fix issue #459
myccccccc Aug 25, 2020
5fb17c9
Merge pull request #460 from myccccccc/master
khs1994 Aug 25, 2020
ee26243
use nginx:alpine as demo
khs1994 Aug 25, 2020
4682ba3
improve content
khs1994 Aug 25, 2020
c25c728
remove opensource
khs1994 Aug 25, 2020
eac2a57
Update vuepress nav
khs1994 Aug 27, 2020
e021b27
registry image not include htpasswd
khs1994 Aug 29, 2020
4b70a27
link-check exclude ip.cn
khs1994 Aug 29, 2020
d1e303d
fix #461 https://github.com/yeasy/docker_practice/issues/461#issue-69…
Sep 4, 2020
6ceeec7
Merge pull request #462 from jackeylu/master
khs1994 Sep 4, 2020
90a7316
buildkit more arg
khs1994 Sep 6, 2020
b0ccb74
[install] Add CentOS 8
khs1994 Sep 6, 2020
cc210f7
[install] Update CentOS8
khs1994 Sep 6, 2020
c1c7a79
Fixed 301 link
khs1994 Sep 6, 2020
4f7b448
[install] remove nightly version
khs1994 Sep 6, 2020
4f08e73
[install] Update CentOS8
khs1994 Sep 6, 2020
6fcf302
Update format
khs1994 Sep 6, 2020
4878552
Fixed kubeadm error
khs1994 Sep 6, 2020
5d91c5a
replace ip.cn
khs1994 Sep 6, 2020
cbaa24c
Dockerfile add shell label
khs1994 Sep 6, 2020
58c0978
Add link
khs1994 Sep 6, 2020
d071ed7
Fixed 404 link
khs1994 Sep 16, 2020
83929dd
[vuepress] support dark mode, close #463
khs1994 Sep 16, 2020
68d85ac
Update laravel, close #465
khs1994 Oct 7, 2020
1c932ef
Fixed link
khs1994 Oct 7, 2020
f6ec3b2
Update mirror
khs1994 Oct 10, 2020
4751e59
rename docker ce to docker
khs1994 Oct 12, 2020
ff1f48a
Update mirror: check docker.service first
khs1994 Oct 13, 2020
fc8b886
[vuepress] Update config
khs1994 Oct 13, 2020
1b2c480
Add vscode devcontainer
khs1994 Oct 13, 2020
fd85d5a
project docker image add bash
khs1994 Oct 13, 2020
c572a39
[vuepress] Update config
khs1994 Oct 14, 2020
47ec0e2
[vuepress] bump 1.6.0
khs1994 Oct 14, 2020
bcc901a
[install] Docker 20.10 beta support CentOS 8
khs1994 Oct 14, 2020
0fdc2d6
based Docker v20.10
khs1994 Oct 14, 2020
f9182e5
[vuepress] bump 1.7.0
khs1994 Oct 15, 2020
8e81267
[vuepress] Fixed https://github.com/Mister-Hope/vuepress-theme-hope/i…
khs1994 Oct 16, 2020
17ad494
remove outdated content
khs1994 Oct 22, 2020
0b1812a
Update fcos
khs1994 Nov 2, 2020
00274b0
Update Dockerfile USER,close #473
khs1994 Nov 2, 2020
7d51bac
[compose] Remove outdated content
khs1994 Nov 2, 2020
e8d45d3
[install] Update outdated content
khs1994 Nov 3, 2020
7b5a21b
[install] Update debian
khs1994 Nov 3, 2020
2b7f954
[install] use aliyun mirror
khs1994 Nov 9, 2020
da09321
close #478
khs1994 Nov 21, 2020
9d62668
close #479
khs1994 Dec 9, 2020
da10b3a
remove docker desktop edge channel
khs1994 Dec 11, 2020
47e83e7
docker v20.10.0 released
khs1994 Dec 20, 2020
cc72642
Update compose version
khs1994 Dec 20, 2020
fb162df
remove project travis ci
khs1994 Dec 20, 2020
2cd0fac
remove mesos
khs1994 Dec 20, 2020
aa3d56f
remove travis ci
khs1994 Dec 20, 2020
d414505
fix wrong cmd
GFZRZK Jan 11, 2021
d148009
Merge pull request #482 from GFZRZK/patch-1
khs1994 Jan 19, 2021
6265d02
[vuepress] Update version
khs1994 Mar 2, 2021
5ebd6fb
Update brew command, fixed #484
khs1994 Mar 6, 2021
ea00e0d
Update format
khs1994 Mar 7, 2021
ce48a15
Update registry
khs1994 Mar 7, 2021
8dd3141
Update format
khs1994 Mar 7, 2021
0a87d2a
Update container markdown format
khs1994 Mar 7, 2021
6f810c8
Update cmd result
khs1994 Mar 7, 2021
7afb899
Update install
khs1994 Mar 11, 2021
bc43b30
Update image
khs1994 Mar 11, 2021
aa08e32
Update repository
khs1994 Mar 11, 2021
9fe6c35
Remove us-en url
khs1994 Mar 11, 2021
1e577a8
Update hello-world example
khs1994 Mar 14, 2021
da614e8
Update link
khs1994 Mar 20, 2021
6cfc12e
cli experimental is deprecated on 20.10
khs1994 Apr 18, 2021
96fc5ac
Update laravel demo
khs1994 May 28, 2021
ba36c90
Update vuepress config
khs1994 May 31, 2021
8705ced
Update jd.com link
khs1994 May 31, 2021
baeb222
Update vuepress config
khs1994 Jun 6, 2021
330beb4
don't push pages to coding.net
khs1994 Jun 6, 2021
985e295
Add compose v2
khs1994 Jun 12, 2021
31ea892
Update aliyun mirror
khs1994 Jun 27, 2021
64b75e9
Update project compose file
khs1994 Jun 27, 2021
ca29ab5
Update SUMMARY.md
khs1994 Jul 4, 2021
1787c39
Update os version requirement
khs1994 Jul 6, 2021
533f30a
Update dead url
khs1994 Jul 6, 2021
95aed00
Update minio case
khs1994 Jul 15, 2021
5caddf4
[Kubernetes] kubeadm cri based containerd
khs1994 Jul 16, 2021
8dfdbc5
remove docker search
khs1994 Jul 16, 2021
d4fc0a9
remove deprecated features: machine and swarm
khs1994 Jul 16, 2021
d1d4f0f
Update link
khs1994 Jul 16, 2021
a613c78
[Drone] update to v2
khs1994 Sep 19, 2021
d5ce7f0
Update DD download link
khs1994 Sep 19, 2021
31f3540
fix: typo
Dup4 Nov 1, 2021
10a77ad
Merge pull request #495 from Dup4/master
yeasy Nov 8, 2021
b9455b2
Fix format
yeasy Dec 1, 2021
1ed8c2c
Update best_practices.md
smartlixx Jan 4, 2022
7340796
Merge pull request #496 from smartlixx/patch-1
khs1994 Jan 4, 2022
664ac88
update https://registry.npm.taobao.org to https://registry.npmmirror.com
Feb 11, 2022
1e415ac
update https://registry.npm.taobao.org to https://registry.npmmirror.com
Feb 12, 2022
d4c6e59
Merge pull request #497 from npmmirror/master
yeasy Feb 16, 2022
7c78d1c
centos refer to centos:8, deprecated
khs1994 Feb 24, 2022
18028b8
Update dockerhub autobuild
khs1994 Feb 24, 2022
7014e4d
Create FUNDING.yml
yeasy Mar 16, 2022
1c4a43e
Update secret.md
mrnyg Apr 9, 2022
88f9183
Merge pull request #500 from mrnyg/patch-1
yeasy Apr 11, 2022
85be300
Update words
yeasy May 12, 2022
93ea51f
修改语病
WitchElaina Oct 22, 2022
30f0032
Merge pull request #512 from WitchElaina/master
yeasy Oct 22, 2022
fe7530c
docs(install): 修改Mac安装系统要求
Hazel-Lin Nov 11, 2022
d9c5d2f
Merge pull request #514 from Hazel-Lin/install/mac
yeasy Nov 12, 2022
d80f343
fix: typo
kingyue737 Dec 21, 2022
e76b0b6
fix: wrong key of registry mirrors
kingyue737 Dec 21, 2022
35b2646
Merge pull request #516 from kingyue737/patch-2
khs1994 Dec 22, 2022
ce5ae6a
Merge pull request #515 from kingyue737/patch-1
khs1994 Dec 22, 2022
6443ddc
fix: typo
hezhizhen Jan 7, 2023
ce4428a
Merge pull request #517 from hezhizhen/patch-1
khs1994 Jan 8, 2023
13b8e12
[issue-518] Add document on how to use HTTP/HTTPS proxy
docete Jan 16, 2023
cc683fd
Merge pull request #519 from docete/issue-518
yeasy Jan 17, 2023
eb327bf
修改错别字
ReginaldChen Feb 24, 2023
ed4b3ef
Merge pull request #520 from ReginaldChen/patch-1
khs1994 Feb 27, 2023
6acf209
Update volume.md
wushu037 May 7, 2023
57873b1
Merge pull request #523 from wushu037/patch-1
khs1994 May 15, 2023
1563879
Translating into english access_control
tmmercad May 24, 2023
07a819c
Second translating commit
tmmercad May 24, 2023
281b2a9
Third translation
tmmercad May 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// https://code.visualstudio.com/docs/remote/devcontainerjson-reference

{
"image": "yeasy/docker_practice:latest",
"mounts": [
"source=dp-code-remote-cache,target=/root/.vscode-server,type=volume"
],
"settings": {
"terminal.integrated.shell.linux": "/bin/sh"
},
"forwardPorts": [
4000
],
"runArgs": [
"--cap-add=SYS_ADMIN"
],
"postStartCommand": [
"sh",
"-cx",
"pwd ; cd /workspaces/docker_practice ; mkdir -p ${PWD}/node_modules; mkdir -p ${PWD}/_book; mount --bind /srv/gitbook/node_modules ${PWD}/node_modules ; mount --bind /mnt ${PWD}/_book"
]
}
11 changes: 11 additions & 0 deletions .docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env sh

echo
echo
echo "Please open your browser: 127.0.0.1:4000"
echo
echo "欢迎加入 QQ 群:【 145983035 】 分享 Docker 资源,交流 Docker 技术"
echo
echo

exec nginx -g "daemon off;"
39 changes: 39 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
* @yeasy @khs1994
/.github/* @khs1994
/.travis/* @khs1994
/.vuepress/* @khs1994
/advanced_network/* @yeasy @khs1994
/appendix/* @yeasy @khs1994
/archive/* @khs1994
/basic_concept/* @yeasy @khs1994
/buildx/* @khs1994
/cases/* @yeasy @khs1994
/cloud/* @khs1994
/compose/* @yeasy @khs1994
/container/* @yeasy @khs1994
/coreos/* @khs1994
/data_management/* @khs1994
/etcd/* @khs1994
/IDE/* @khs1994
/image/* @yeasy @khs1994
/install/* @khs1994
/introduction/* @yeasy @khs1994
/kubernetes/* @yeasy @khs1994
/network/* @yeasy @khs1994
/opensource/* @khs1994
/repository/* @khs1994
/security/* @yeasy @khs1994
/underly/* @yeasy @khs1994
/.drone.yml @khs1994
/.editorconfig/ @khs1994
/.gitattributes @khs1994
/.gitignore @khs1994
/_config.yml @yeasy @khs1994
/book.json @yeasy @khs1994
/CHANGELOG.md @yeasy @khs1994
/CONTRIBUTING.md @yeasy @khs1994
/docker-compose.yml @khs1994
/manifest @khs1994
/package.json @khs1994
/README.md @yeasy @khs1994
/SUMMARY.md @yeasy @khs1994
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: yeasy
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ about: Create a report to help us improve
* [x] Others (Pls describe below)

### Docker Version
<!--如果你的 Docker 版本低于 19.03 请尽可能升级到该版本,保留你的 Docker 版本,其他选项删除-->
<!--if Docker version under 19.03, please upgrade Docker to 19.03-->
<!--如果你的 Docker 版本低于 20.10 请尽可能升级到该版本,保留你的 Docker 版本,其他选项删除-->
<!--if Docker version under 20.10, please upgrade Docker to 20.10-->

* [x] Edge (v19.03)
* [x] Stable (v19.03)
* [x] Test (v20.10)
* [x] Stable (v20.10)
* [x] 1.13.0 or Before

### Problem Description
Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/Custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ about: Create a issue about Docker
* [x] Others (Pls describe below)

### Docker Version
<!--如果你的 Docker 版本低于 19.03 请尽可能升级到该版本,保留你的 Docker 版本,其他选项删除-->
<!--if Docker version under 19.03, please upgrade Docker to 19.03-->
<!--如果你的 Docker 版本低于 20.10 请尽可能升级到该版本,保留你的 Docker 版本,其他选项删除-->
<!--if Docker version under 20.10, please upgrade Docker to 20.10-->

* [x] Edge (v19.03)
* [x] Stable (v19.03)
* [x] Test (v20.10)
* [x] Stable (v20.10)
* [x] 1.13.0 or Before

### Problem Description
Expand Down
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
See [CONTRIBUTING](CONTRIBUTING.md) for contribution guidelines.
-->

### Proposed changes (Mandatory)
**Proposed changes (Mandatory)**

<!--
Tell us what you did and why:
Expand All @@ -13,7 +13,7 @@
And details in other paragraphs.
-->

### Fix issues (Optional)
**Fix issues (Optional)**

<!--
Tell us what issues you fixed, e.g., fix #123
Expand Down
69 changes: 69 additions & 0 deletions .github/workflows/check-link.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Check link

on:
# push:
# pull_request:
workflow_dispatch:

jobs:
check-link:
name: check-link
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
# search Issues :-(
- run: |
docker run -i --rm \
-v $PWD:/mnt:ro \
dkhamsing/awesome_bot \
--white-list "localhost","0.0.0.0",\
"server","example.com","docker",\
"docker.domain.com","YourIP","register",\
"172.16.238.100","172.16.238.101","172.16.238.102",\
"192.168.199.100",\
"github.com/settings",\
"github.com/docker/compose/releases/download",\
"github.com/etcd-io/etcd/releases/download",\
"github.com/tianon/gosu/releases/download",\
"github.com/yeasy/docker_practice",\
"github.com/AliyunContainerService/k8s-for-docker-desktop/raw",\
"dl-cdn.alpinelinux.org/alpine/edge/testing",\
"www.w3.org/1999/xhtml",\
"cr.console.aliyun.com",\
"cloud.tencent.com",\
"nodejs.org/dist/",\
"c.163.com/hub",\
"drone.yeasy.com",\
"docs.docker.com",\
"dockerhub.azk8s.cn",\
"reg-mirror.qiniu.com",\
"registry.docker-cn.com",\
"mirror.ccs.tencentyun.com",\
"vuepress.mirror.docker-practice.com",\
"mc.qcloudimg.com/static/img",\
"www.daocloud.io/mirror",\
"download.docker.com",\
"www.ubuntu.com",\
"archive.ubuntu.com",\
"security.ubuntu.com/ubuntu",\
"nginx.com",\
"img.shields.io/github/release/yeasy/docker_practice",\
"launchpad.net",\
"www.w3.org/1999",\
"chat.freenode.net",\
"en.wikipedia.org/wiki/UnionFS",\
"product.china-pub.com",\
"union-click.jd.com",\
"x.x.x.x/base",\
"x.x.x.x:9090",\
"yeasy.gitbooks.io",\
"download.fastgit.org",\
"www.aliyun.com" \
--allow-dupe \
--skip-save-results \
-t 10 \
`find . \( -path "./mesos" -o -path "./swarm_mode" \) -prune -o -name "*.md" -exec ls {} \;`
name: check-link
timeout-minutes: 25
145 changes: 143 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,159 @@
on:
push:
pull_request:
workflow_dispatch:

name: CI

defaults:
run:
shell: bash --noprofile --norc -exo pipefail {0}

jobs:
build:
name: Build GitBook
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 2
- name: Build
- name: Build Gitbook
uses: docker://yeasy/docker_practice
with:
args: build
- name: Build Gitbook Docker Image
if: github.repository == 'docker-practice/docker_practice'
run: |
sudo chmod -R 777 _book
echo "FROM nginx:alpine" >> Dockerfile
echo "COPY _book /usr/share/nginx/html" >> Dockerfile
echo "COPY .docker/docker-entrypoint.sh /" >> Dockerfile
echo "ENTRYPOINT [\"/docker-entrypoint.sh\"]" >> Dockerfile

export VCS_REF=`git rev-parse --short HEAD`

docker build \
-t dockerpracticesig/docker_practice \
-t dockerpracticesig/docker_practice:gitbook \
--label org.opencontainers.image.revision=$VCS_REF \
--label org.opencontainers.image.source="https://github.com/yeasy/docker_practice" \
--label maintainer="https://github.com/docker-practice" \
.

docker run -d --rm -p 4000:80 dockerpracticesig/docker_practice

sleep 5

echo "::group::Test"
curl 127.0.0.1:4000
echo "::endgroup::"

echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push dockerpracticesig/docker_practice
docker push dockerpracticesig/docker_practice:gitbook
env:
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
- name: Upload Gitbook dist
uses: docker://pcit/pages
if: github.repository == 'docker-practice/docker_practice'
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/docker-practice/zh-cn
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: _book
PCIT_MESSAGE: Build from yeasy/docker_practice@${{github.sha}}
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
- name: vuepress
run: |
sudo rm -rf _book
# npm i vuepress --save-dev
npm i

git clone https://github.com/docker-practice/.vuepress .vuepress2
cp -r .vuepress2/. .vuepress/
rm -rf .vuepress2
find . \( -path "./mesos" -o -path "./swarm_mode" -o -path "./node_modules" -o -path "./.vuepress" -o -path "./_book" -o -path "./CHANGELOG.md" -o -path "./CONTRIBUTING.md" \) -prune -o -name "*.md" -exec sed -i 'N;2a\<AdSenseTitle/>\n' {} \;

npx vuepress --version

npm run vuepress:build
# echo "vuepress.docker-practice.com" > .vuepress/dist/CNAME
echo "vuepress.mirror.docker-practice.com" > .vuepress/dist/CNAME

cp -r _images .vuepress/dist
cp -r advanced_network/_images .vuepress/dist/advanced_network
cp -r appendix/_images .vuepress/dist/appendix
cp -r cases/ci/drone/_images .vuepress/dist/cases/ci/drone
cp -r cases/os/_images .vuepress/dist/cases/os
cp -r cloud/_images .vuepress/dist/cloud
cp -r data_management/_images .vuepress/dist/data_management
cp -r etcd/_images .vuepress/dist/etcd
cp -r image/_images .vuepress/dist/image
cp -r install/_images .vuepress/dist/install
cp -r introduction/_images .vuepress/dist/introduction
cp -r kubernetes/_images .vuepress/dist/kubernetes
cp -r underly/_images .vuepress/dist/underly

echo "include: [_images]" > .vuepress/dist/_config.yml
- name: Upload Vuepress dist
uses: docker://pcit/pages
if: github.repository == 'docker-practice/docker_practice'
env:
PCIT_EMAIL: [email protected]
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
PCIT_GIT_URL: github.com/docker-practice/vuepress
PCIT_KEEP_HISTORY: "true"
PCIT_LOCAL_DIR: .vuepress/dist
PCIT_MESSAGE: Build from yeasy/docker_practice@${{github.sha}}
PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994
# - name: Set coding.net CNAME
# run: |
# echo "vuepress.mirror.docker-practice.com" > .vuepress/dist/CNAME
# - name: Upload Vuepress dist to coding.net
# uses: docker://pcit/pages
# if: github.repository == 'docker-practice/docker_practice'
# env:
# PCIT_EMAIL: [email protected]
# PCIT_GIT_TOKEN: ${{ secrets.CODING_GIT_TOKEN }}
# PCIT_GIT_URL: e.coding.net/dpsigs/docker_practice
# PCIT_KEEP_HISTORY: "true"
# PCIT_LOCAL_DIR: .vuepress/dist
# PCIT_MESSAGE: Build from yeasy/docker_practice@${{github.sha}}
# PCIT_TARGET_BRANCH: master
# PCIT_USERNAME: ptt0xjqzbke3
- name: Build vuepress docker image
if: github.repository == 'docker-practice/docker_practice'
run: |
sudo rm -rf .vuepress/dist/.git

echo "FROM nginx:alpine" > Dockerfile
echo "COPY .vuepress/dist /usr/share/nginx/html" >> Dockerfile
echo "COPY .docker/docker-entrypoint.sh /" >> Dockerfile
echo "ENTRYPOINT [\"/docker-entrypoint.sh\"]" >> Dockerfile

echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

VCS_REF=`git rev-parse --short HEAD`

docker build -t dockerpracticesig/docker_practice:vuepress \
--label org.opencontainers.image.revision=$VCS_REF \
--label org.opencontainers.image.source="https://github.com/yeasy/docker_practice" \
--label maintainer="https://github.com/docker-practice" \
.

docker push dockerpracticesig/docker_practice:vuepress

docker run -it --rm -d -p 4001:80 dockerpracticesig/docker_practice:vuepress

sleep 5

echo "::group::Test"
curl 127.0.0.1:4001
echo "::endgroup::"
env:
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ _book/
*.swp
*.edx
.DS_Store

node_modules/
package-lock.json

docker-compose.override.yml
Loading