diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 81f7995..bc951b3 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,7 +1,6 @@ * @yeasy @khs1994 /.github/* @khs1994 /.travis/* @khs1994 -/.vuepress/* @khs1994 /01_introduction/* @yeasy @khs1994 /02_basic_concept/* @yeasy @khs1994 /03_install/* @khs1994 diff --git a/.github/workflows/check-link.yml b/.github/workflows/check-link.yml index e711a4c..c460b2c 100644 --- a/.github/workflows/check-link.yml +++ b/.github/workflows/check-link.yml @@ -44,7 +44,6 @@ jobs: "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",\ diff --git a/.vuepress/.gitignore b/.vuepress/.gitignore deleted file mode 100644 index c01fe45..0000000 --- a/.vuepress/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/* -!.gitignore -!config.js diff --git a/.vuepress/config.js b/.vuepress/config.js deleted file mode 100644 index 8feb68f..0000000 --- a/.vuepress/config.js +++ /dev/null @@ -1,463 +0,0 @@ -const { config } = require('vuepress-theme-hope') - -module.exports = config({ - title: 'Docker 从入门到实践', - base: '/', - head: [['script', {}, ` - var _hmt = _hmt || []; - (function() { - var hm = document.createElement("script"); - hm.src = "//hm.baidu.com/hm.js?81a3490c9cd141dbcf6d00bc18b6edae"; - var s = document.getElementsByTagName("script")[0]; - s.parentNode.insertBefore(hm, s); - })(); -`], - [ - 'script', {}, ` - (function(){ - var bp = document.createElement('script'); - var curProtocol = window.location.protocol.split(':')[0]; - if (curProtocol === 'https') { - bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; - } - else { - bp.src = 'http://push.zhanzhang.baidu.com/push.js'; - } - var s = document.getElementsByTagName("script")[0]; - s.parentNode.insertBefore(bp, s); -})(); - ` - ] - ], - plugins: { - // sitemap: { - // hostname: 'https://vuepress.mirror.docker-practice.com' - // }, - // 'git-log': { - // additionalArgs: '--no-merge', - // onlyFirstAndLastCommit: true, - // }, - }, - locales: { - "/": { - lang: "zh-CN" - } - }, - themeConfig: { - blog: false, - // comment: false, - comment: { - type: "disable", // 使用 Valine - appId: "...", // your appId - appKey: "...", // your appKey - }, - pageInfo: [ - // 'author', - 'reading-time', - 'word', - ], - footer: { - content: "Made with vuepress-theme-hope", - display: true, - copyright: false, - }, - searchPlaceholder: 'Search', - repo: 'yeasy/docker_practice', - repoLabel: 'GitHub', - repoDisplay: true, - hostname: 'https://vuepress.mirror.docker-practice.com', - // author: 'yeasy', - mdEnhance: { - lineNumbers: true, - }, - git: { - contributor: false, - }, - themeColor: { - blue: '#2196f3', - // red: '#f26d6d', - // green: '#3eaf7c', - // orange: '#fb9b5f' - }, - locales: { - "/": { - lang: "zh-CN" - } - }, - - darkmode: 'auto-switch', - - // - - showAds: true, - - docsRepo: 'yeasy/docker_practice', - docsDir: '/', - docsBranch: 'master', - editLinks: true, - nav: [ - { - text: '微信交流群', - link: 'https://docker_practice.gitee.io/pic/dpsig-wechat.jpg', - }, - { - text: '小程序', - link: 'https://docker_practice.gitee.io/pic/dp-wechat-miniprogram.jpg', - }, - { - text: '安装 Docker', - link: '/03_install/', - }, - { - text: 'Docker 入门', - link: '/' - }, - { - text: 'Docker 实战', - link: '/15_cases/os/' - }, - { - text: 'CI/CD', - link: '/15_cases/ci/' - }, - { - text: 'Compose', - link: '/10_compose/', - }, - { - text: 'Kubernetes', - link: '/12_orchestration/kubernetes/', - }, - { - text: "云计算", - link: "/13_ecosystem/cloud/", - }, - // { - // text: 'GitHub', - // link: 'https://github.com/yeasy/docker_practice' - // }, - // { - // text: '捐赠', - // link: '' - // }, - { - text: '云服务器99/元首年特惠', - link: 'https://cloud.tencent.com/act/cps/redirect?redirect=1062&cps_key=3a5255852d5db99dcd5da4c72f05df61&from=console' - }, - // { - // text: '语言', - // items: [{ - // text: 'English', - // link: '' - // }] - // } - ], - sidebar: "auto", - legacySidebar: { - '/cloud/': [ - 'intro', - 'tencentCloud', - 'alicloud', - 'aws', - 'summary', - ], - '/kubernetes/': [ - 'intro', - 'concepts', - 'design', - { - title: "部署 Kubernetes", - collapsable: true, - children: [ - "setup/", - "setup/kubeadm", - "setup/docker-desktop", - "setup/systemd", - "setup/dashboard", - ] - }, - { - title: "Kubernetes 命令行 kubectl", - collapsable: true, - children: [ - 'kubectl/' - ] - } - ], - '/compose/': [ - 'introduction', - 'v2', - 'install', - 'usage', - 'commands', - 'compose_file', - 'django', - 'rails', - 'wordpress', - 'lnmp', - ], - '/install/': [ - 'ubuntu', - 'debian', - 'fedora', - 'centos', - 'raspberry-pi', - // 'offline', - 'mac', - 'windows', - 'mirror', - 'experimental', - ], - '/cases/os/': [ - { - title: "操作系统", - collapsable: false, - children: [ - 'busybox', - 'alpine', - 'debian', - 'centos', - 'summary', - ], - }, - { - title: "在 IDE 中使用 Docker", - collapsable: false, - children: [ - '/ide/', - '/ide/vsCode', - ], - }, - ], - '/cases/ci/': [ - 'actions/', - { - title: "Drone", - collapsable: true, - children: [ - 'drone/', - 'drone/install' - ] - }, - ], - '/': [ - '/', - '/CHANGELOG', - '/CONTRIBUTING', - { - title: "Docker 简介", - collapsable: false, - children: [ - 'introduction/', - 'introduction/what', - 'introduction/why', - ] - }, { - title: "基本概念", - collapsable: false, - children: [ - 'basic_concept/', - 'basic_concept/image', - 'basic_concept/container', - 'basic_concept/repository' - ] - }, - { - title: "使用镜像", - collapsable: false, - children: [ - 'image/', - 'image/pull', - 'image/list', - 'image/rm', - 'image/commit', - 'image/build', - 'image/other.md', - 'image/internal.md', - ] - }, - { - title: 'Dockerfile', - collapsable: true, - children: [ - "image/dockerfile/", - 'image/dockerfile/copy', - 'image/dockerfile/add', - 'image/dockerfile/cmd', - 'image/dockerfile/entrypoint', - 'image/dockerfile/env', - 'image/dockerfile/arg', - 'image/dockerfile/volume', - 'image/dockerfile/expose', - 'image/dockerfile/workdir', - 'image/dockerfile/user', - 'image/dockerfile/healthcheck', - 'image/dockerfile/label', - 'image/dockerfile/shell', - 'image/dockerfile/onbuild', - 'image/dockerfile/references', - 'image/dockerfile/7.17_multistage_builds.md', - 'image/dockerfile/7.18_multistage_builds_laravel.md', - 'image/manifest', - ] - }, { - title: "操作容器", - collapsable: false, - children: [ - 'container/', - 'container/run', - 'container/daemon', - 'container/stop', - 'container/attach_exec', - 'container/import_export', - 'container/rm', - ], - }, - { - title: "Docker 仓库", - collapsable: false, - children: [ - 'repository/', - 'repository/dockerhub', - 'repository/registry', - 'repository/registry_auth', - 'repository/nexus3_registry', - ], - }, - { - title: "数据管理", - collapsable: false, - children: [ - 'data_management/', - 'data_management/volume', - 'data_management/bind-mounts', - ], - }, { - title: "使用网络", - collapsable: false, - children: [ - 'network/', - 'network/port_mapping', - 'network/linking', - 'network/dns', - ], - }, - { - title: "高级网络配置", - collapsable: true, - children: [ - 'advanced_network/', - 'advanced_network/quick_guide', - 'advanced_network/access_control', - 'advanced_network/port_mapping', - 'advanced_network/bridge', - 'advanced_network/example', - 'advanced_network/config_file', - 'advanced_network/ptp', - ], - }, - { - title: "Swarm mode", - collapsable: true, - children: [ - 'swarm_mode/', - 'swarm_mode/overview', - 'swarm_mode/create', - 'swarm_mode/deploy', - 'swarm_mode/stack', - 'swarm_mode/secret', - 'swarm_mode/config', - 'swarm_mode/rolling_update', - ], - }, - { - title: "安全", - collapsable: true, - children: [ - 'security/', - 'security/kernel_ns', - 'security/control_group', - 'security/daemon_sec', - 'security/kernel_capability', - 'security/other_feature', - 'security/summary', - ], - }, - { - title: "底层实现", - collapsable: true, - children: [ - 'underly/', - 'underly/arch', - 'underly/namespace', - 'underly/cgroups', - 'underly/ufs', - 'underly/container_format', - 'underly/network', - ], - }, - { - title: "Docker Buildx", - collapsable: false, - children: [ - "buildx/", - "buildx/buildkit", - "buildx/buildx", - "buildx/multi-arch-images", - ], - }, - { - title: "Etcd", - collapsable: true, - children: [ - 'etcd/', - 'etcd/intro', - 'etcd/install', - 'etcd/cluster', - 'etcd/etcdctl', - ], - }, - { - title: "Fedora CoreOS", - collapsable: true, - children: [ - 'coreos/', - 'coreos/intro', - 'coreos/install', - ], - }, - 'podman/', - 'appendix/faq/', - { - title: "热门镜像介绍", - collapsable: true, - children: [ - 'appendix/repo/', - 'appendix/repo/ubuntu', - 'appendix/repo/centos', - 'appendix/repo/nginx', - 'appendix/repo/php', - 'appendix/repo/nodejs', - 'appendix/repo/mysql', - 'appendix/repo/wordpress', - 'appendix/repo/mongodb', - 'appendix/repo/redis', - 'appendix/repo/minio', - ], - }, - { - title: "Docker 命令", - collapsable: true, - children: [ - 'appendix/command/', - 'appendix/command/docker', - 'appendix/command/dockerd', - ] - }, - 'appendix/best_practices', - 'appendix/debug', - 'appendix/resources', - ], - }, - } -}); diff --git a/.zhlintignore b/.zhlintignore index d2d66a7..be0443a 100644 --- a/.zhlintignore +++ b/.zhlintignore @@ -1,3 +1,2 @@ node_modules/ -.vuepress/ .git/ diff --git a/README.md b/README.md index 1c955c1..5e87e66 100644 --- a/README.md +++ b/README.md @@ -84,12 +84,6 @@ brew tap yeasy/tap && brew install mdpress mdpress serve ``` -或使用 Docker 镜像一条命令启动: - -```bash -docker run -it --rm -p 4000:80 ccr.ccs.tencentyun.com/dockerpracticesig/docker_practice:vuepress -``` - ## 社区交流 - [GitHub Issues](https://github.com/yeasy/docker_practice/issues/new/choose)(内容错误、建议) diff --git a/check_project_rules.py b/check_project_rules.py index 4a3ed2e..2768c8c 100644 --- a/check_project_rules.py +++ b/check_project_rules.py @@ -21,7 +21,6 @@ SKIP_DIRS = { ".obsidian", ".playwright-cli", ".pytest_cache", - ".vuepress", "__pycache__", "_book", "dist", diff --git a/docker-compose.yml b/docker-compose.yml index 2037c30..a7e5052 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,12 +15,7 @@ services: # docker run -it --rm -p 4000:80 dockerpracticesig/docker_practice mdpress-offline: - &mdpress-offline # this image build by GitHub Action image: dockerpracticesig/docker_practice:mdpress ports: - 4000:80 - - vuepress-offline: - << : *mdpress-offline - image: dockerpracticesig/docker_practice:vuepress