Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
huataihuang committed Sep 10, 2024
1 parent b02cf76 commit 563ca68
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ RUN bash -c 'source /home/admin/venv3/bin/activate && pip install sphinxcontrib-

# node program: nvm install node
RUN bash -c "cd /home/admin && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash"
RUN bash -c "source /home/admin/.bashrc && npm install 22"
RUN bash -c "source /home/admin/.bashrc && nvm install 22"

# entrypoint.sh 需要使用root身份执行
USER root
Expand Down
2 changes: 1 addition & 1 deletion source/docker/startup/rockylinux_docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Rocky Linux作为CentOS的后继者,部署 Docker Engine 方法和 :ref:`insta

请参考 :ref:`colima_proxy` 使用 :ref:`dnf_proxy` :ref:`across_the_great_wall` 。

另外,阿里云提供的rocky linux直接将软件仓库设置为阿里云自己的镜像网站,一旦 :re:`dnf_proxy` 会导致反向访问阿里云仓库过于缓慢甚至无法正常使用的问题,所以需要修订 ``/etc/yum.repos.d`` 目录下的仓库配置,将阿里云相关的 ``baseurl`` 注释掉,恢复默认的 ``mirrorlist`` (以下是 ``rocky.repo`` 配置修改案例:
另外,阿里云提供的rocky linux直接将软件仓库设置为阿里云自己的镜像网站,一旦配置 :ref:`dnf_proxy` 会导致反向访问阿里云仓库过于缓慢甚至无法正常使用的问题,所以需要修订 ``/etc/yum.repos.d`` 目录下的仓库配置,将阿里云相关的 ``baseurl`` 注释掉,恢复默认的 ``mirrorlist`` (以下是 ``rocky.repo`` 配置修改案例:

.. literalinclude:: rockylinux_docker/rocky.repo
:caption: 修订仓库配置,恢复默认的 ``mirrorlist``
Expand Down
1 change: 1 addition & 0 deletions source/docker/startup/rockylinux_docker/install_docker
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
6 changes: 3 additions & 3 deletions source/linux/redhat_linux/centos/introduce_centos.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ CentOS已死

从2021年底开始,由于CentOS8停止更新,在 :ref:`docker` 容器化运行环境中,就不得不 :ref:`centos_8_replacement_docker_image` 。这也迫使用户要么选择购买RedHat的企业级Linux,要么选择采用替代发行版。主要可选的RedHat兼容发行版:

- :ref:`almalinux` : 开源社区驱动的二进制兼容Red Hat Enterprise Linux发行版
- `Rocky Linux <https://rockylinux.org/>`_ : 目前最流行的Red Hat Enterprise Linux bug-for-bug 兼容的企业级发行版
- `almalinux <https://almalinux.org>`_ : 开源社区驱动的二进制兼容Red Hat Enterprise Linux发行版
- :ref:`rockylinux` : 目前最流行的Red Hat Enterprise Linux bug-for-bug 兼容的企业级发行版

:ref:`almalinux_vs_rockylinux` ,我选择尝试 :ref:`almalinux` 以磨练在RedHat系发行版的技能。
:ref:`almalinux_vs_rockylinux` ,我选择尝试 :ref:`rockylinux` 以磨练在RedHat系发行版的技能。
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ AlmaLinux vs. Rocky Linux
2021年12月31日,随着CentOS Linux 8来到生命周期重点(End of Life, EoL),所有以CentOS作为Red Hat Enterprise Linux平替的企业和个人都需要考虑何去何从:

- CentOS将演变为CentOS Stream(9),作为RHEL的开发版本和"滚动发布"版本,意味着在生产环境中使用存在风险
- 作为个人爱好者,期望有企业级的开发学习环境,并且紧跟RHEL技术发展,可以选择社区驱动快速迭代的 :ref:`almalinux`
- `Rocky Linux <https://rockylinux.org/>`_ 承诺bug级复制的RHEL,则更为适合需要完全复制Red Hat Enterprise Linux的企业用户(有时候bug的兼容也很重要,避免触发生产环境work around失效),也适合企业规模升级后切换到Red Hat Enterprise Linux
- 作为个人爱好者,期望有企业级的开发学习环境,并且紧跟RHEL技术发展,可以选择社区驱动快速迭代的 `almalinux <https://almalinux.org>`_
- :ref:`rockylinux` 承诺bug级复制的RHEL,则更为适合需要完全复制Red Hat Enterprise Linux的企业用户(有时候bug的兼容也很重要,避免触发生产环境work around失效),也适合企业规模升级后切换到Red Hat Enterprise Linux

区别
======
Expand Down Expand Up @@ -43,7 +43,7 @@ AlmaLinux vs. Rocky Linux
:widths: 20,20,20,20,20
:header-rows: 1

由于我不想采用默认的AliOS,所以综合上述对比,选择采用 :strkie:`AlmaLinux` ``Rocky Linux`` 来学习开发:
由于我不想采用默认的AliOS,所以综合上述对比,选择采用 :strike:`AlmaLinux` ``Rocky Linux`` 来学习开发:

- 更为原生复制Red Hat Enterprise Linux,可以充分借鉴Red Hat的大量文档和知识库,很多时候线上系统的问题需要Red Hat这样严谨的厂商才能深入解决
- 和CentOS原先的下游身份一致,虽然由于Red Hat商业策略所限,下游更新会落后于商业版本大约半年甚至更久,但是对于中小企业很少会遇到头部大厂这样规模才会遇到的极端问题,相对来说风险可控
Expand Down

0 comments on commit 563ca68

Please sign in to comment.