From 30fefe8f633f929b3e6500f56f44933280a34b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B1=BC=E9=A6=99ROS?= <87068644+fishros@users.noreply.github.com> Date: Mon, 7 Nov 2022 12:31:49 +0800 Subject: [PATCH] =?UTF-8?q?doc(README):=20=E6=9B=B4=E6=96=B0Dockerfile?= =?UTF-8?q?=E4=B8=AD=E4=BD=BF=E7=94=A8=E6=A0=B7=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 040d480..4562d35 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,24 @@ RUN apt update \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ && apt-get clean && apt autoclean ``` +一键换源 +``` +FROM ubuntu:22.04 + +# 一键换源 +RUN apt update \ + && apt install wget python3 python3-yaml -y python3-distro\ + && echo "chooses:\n" > fish_install.yaml \ + && echo "- {choose: 5, desc: '一键安装:ROS(支持ROS和ROS2,树莓派Jetson)'}\n" >> fish_install.yaml \ + && echo "- {choose: 2, desc: 更换源继续安装}\n" >> fish_install.yaml \ + && echo "- {choose: 1, desc: 清理三方源}\n" >> fish_install.yaml \ + && wget http://fishros.com/install -O fishros && /bin/bash fishros \ + # 进行最后的清理 + && rm -rf fish_install.yaml \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ + && apt-get clean && apt autoclean +``` ## 贡献指南