离线安装(allinone)
当前安装方式可以仅通过运行一个容器快速体验到 Rainbond 完整功能。仅适用于体验 Rainbond 功能或者个人开发环境。支持 Windows
、MacOS
、Linux
三大操作系统,以及 x86_64
、Arm64
两种主流架构。
前提
caution
- 安装 Docker
- 可用内存至少大于 4G,推荐 8G 以上
- 可用磁盘 50G 以上
- 机器上 80、443、6060、6443、7070、8443 端口可用
部署流程
- Linux
- Linux Arm64
1. 获取 Allinone 离线镜像
将 Rainbond dind 镜像在有网络的环境下 PULL 到本地并打成 tar 包。
docker pull rainbond/rainbond:v5.8.1-dind-allinone
docker save -o rainbond-v5.8.1-dind-allinone.tar rainbond/rainbond:v5.8.1-dind-allinone
导入 tar 包到目标服务器中。
docker load -i rainbond-v5.8.1-dind-allinone.tar
2. 设置 EIP 环境变量(必填)
你需要指定一个 IP 地址,在部署完成后,将使用该 IP 地址访问 Rainbond 控制台。该 IP 通过环境变量 EIP 进行设置。
该地址可以是部署机器上的公网 IP 或内网 IP。IP 地址可以通过执行 ifconfig
命令获得。
caution
当你填写内网IP,如 192.168.3.25 时,切换网络环境后可能无法访问。因此如果仅本地测试体验,可以填写本地回环地址。
如 export EIP=127.0.0.1
export EIP=<你的IP地址>
3. 启动 Rainbond
docker run --privileged -d -p 7070:7070 -p 80:80 -p 443:443 -p 6060:6060 -p 8443:8443 \
--name=rainbond-allinone --restart=on-failure \
-v ~/.ssh:/root/.ssh \
-v ~/rainbonddata:/app/data \
-v /opt/rainbond:/opt/rainbond \
-v ~/dockerdata:/var/lib/docker \
-e EIP=$EIP \
rainbond/rainbond:v5.8.1-dind-allinone \
&& docker logs -f rainbond-allinone
执行完上述命令后,耐心等待 5-10 分钟,可以看到如下日志输出,表示 Rainbond 已启动完成
安装日志输出如下:
2022-09-12 15:58:06 INFO: Memory: 7821 MB, CPUs: 2, Disk: 31919 MB
2022-09-12 15:58:08 INFO: Docker is starting, please wait ············································
2022-09-12 15:58:08 INFO: Docker started successfully
2022-09-12 15:58:08 INFO: Loading images
Loaded image: rainbond/rbd-monitor:v5.8.1-release
Loaded image: rainbond/registry:2.6.2
Loaded image: rainbond/metrics-scraper:v1.0.4
Loaded image: rainbond/rbd-init-probe:v5.8.1-release
Loaded image: rainbond/rbd-mq:v5.8.1-release
Loaded image: rainbond/rbd-resource-proxy:v5.8.1-release
Loaded image: rainbond/rainbond-operator:v5.8.1-release
Loaded image: rainbond/rbd-node:v5.8.1-release
Loaded image: registry.cn-hangzhou.aliyuncs.com/goodrain/smallimage:latest
Loaded image: rancher/mirrored-pause:3.1
Loaded image: rancher/mirrored-coredns-coredns:1.8.4
Loaded image: rancher/mirrored-metrics-server:v0.5.0
Loaded image: rancher/mirrored-library-busybox:1.32.1
Loaded image: rainbond/etcd:v3.3.18
Loaded image: rainbond/rbd-mesh-data-panel:v5.8.1-release
Loaded image: rainbond/rbd-webcli:v5.8.1-release
Loaded image: rainbond/kubernetes-dashboard:v2.6.1
Loaded image: rainbond/rbd-db:8.0
Loaded image: rainbond/rbd-chaos:v5.8.1-release
Loaded image: rainbond/rbd-worker:v5.8.1-release
Loaded image: rainbond/rbd-gateway:v5.8.1-release
Loaded image: rainbond/metrics-server:v0.4.1
Loaded image: rainbond/mysqld-exporter:latest
Loaded image: rainbond/rbd-eventlog:v5.8.1-release
Loaded image: rainbond/rbd-api:v5.8.1-release
Loaded image: rancher/local-path-provisioner:v0.0.20
2022-09-12 15:59:08 INFO: Docker images success
2022-09-12 15:59:09 INFO: K3s is starting, please wait ············································
2022-09-12 15:59:26 INFO: K3s started successfully
namespace/rbd-system created
2022-09-12 15:59:26 INFO: Create namespace rbd-system
NAME: rainbond-operator
LAST DEPLOYED: Mon Sep 12 15:59:28 2022
NAMESPACE: rbd-system
STATUS: deployed
REVISION: 1
TEST SUITE: None
2022-09-12 15:59:28 INFO: Helm rainbond-operator installed
2022-09-12 15:59:29 INFO: Rainbond Region installed
2022-09-12 15:59:29 INFO: Rainbond Region is starting, please wait ············································
2022-09-12 16:00:55 INFO: Rainbond Region started successfully
2022-09-12 16:00:57 INFO: Rainbond console is starting, please wait ············································
2022-09-12 16:01:13 INFO: Rainbond started successfully, Please pass http://39.105.155.87:7070 Access Rainbond
访问 Rainbond
此时,你已经成功安装了 Rainbond,你现在可以根据日志中提示的访问地址进行访问,开始你的体验之旅
1. 获取 Allinone 离线镜像
将 Rainbond dind 镜像在有网络的环境下 PULL 到本地并打成 tar 包。
docker pull rainbond/rainbond:v5.8.0-arm64-dind-allinone
docker save -o rainbond-v5.8.0-arm64-dind-allinone.tar rainbond/rainbond:v5.8.0-arm64-dind-allinone
导入 tar 包到目标服务器中。
docker load -i rainbond-v5.8.0-arm64-dind-allinone.tar
2. 设置 EIP 环境变量(必填)
你需要指定一个 IP 地址,在部署完成后,将使用该 IP 地址访问 Rainbond 控制台。该 IP 通过环境变量 EIP 进行设置。
该地址可以是部署机器上的公网 IP 或内网 IP。IP 地址可以通过执行 ifconfig
命令获得。
caution
当你填写内网IP,如 192.168.3.25 时,切换网络环境后可能无法访问。因此如果仅本地测试体验,可以填写本地回环地址。
如 export EIP=127.0.0.1
export EIP=<你的IP地址>
3. 启动 Rainbond
docker run --privileged -d -p 7070:7070 -p 80:80 -p 443:443 -p 6060:6060 -p 8443:8443 \
--name=rainbond-allinone --restart=on-failure \
-v ~/.ssh:/root/.ssh \
-v ~/rainbonddata:/app/data \
-v /opt/rainbond:/opt/rainbond \
-v ~/dockerdata:/var/lib/docker \
-e EIP=$EIP \
rainbond/rainbond:v5.8.0-arm64-dind-allinone \
&& docker logs -f rainbond-allinone
执行完上述命令后,耐心等待 5-10 分钟,可以看到如下日志输出,表示 Rainbond 已启动完成
安装日志输出如下:
2022-09-12 15:58:06 INFO: Memory: 7821 MB, CPUs: 2, Disk: 31919 MB
2022-09-12 15:58:08 INFO: Docker is starting, please wait ············································
2022-09-12 15:58:08 INFO: Docker started successfully
2022-09-12 15:58:08 INFO: Loading images
Loaded image: rainbond/rbd-monitor:v5.8.1-release
Loaded image: rainbond/registry:2.6.2
Loaded image: rainbond/metrics-scraper:v1.0.4
Loaded image: rainbond/rbd-init-probe:v5.8.1-release
Loaded image: rainbond/rbd-mq:v5.8.1-release
Loaded image: rainbond/rbd-resource-proxy:v5.8.1-release
Loaded image: rainbond/rainbond-operator:v5.8.1-release
Loaded image: rainbond/rbd-node:v5.8.1-release
Loaded image: registry.cn-hangzhou.aliyuncs.com/goodrain/smallimage:latest
Loaded image: rancher/mirrored-pause:3.1
Loaded image: rancher/mirrored-coredns-coredns:1.8.4
Loaded image: rancher/mirrored-metrics-server:v0.5.0
Loaded image: rancher/mirrored-library-busybox:1.32.1
Loaded image: rainbond/etcd:v3.3.18
Loaded image: rainbond/rbd-mesh-data-panel:v5.8.1-release
Loaded image: rainbond/rbd-webcli:v5.8.1-release
Loaded image: rainbond/kubernetes-dashboard:v2.6.1
Loaded image: rainbond/rbd-db:8.0
Loaded image: rainbond/rbd-chaos:v5.8.1-release
Loaded image: rainbond/rbd-worker:v5.8.1-release
Loaded image: rainbond/rbd-gateway:v5.8.1-release
Loaded image: rainbond/metrics-server:v0.4.1
Loaded image: rainbond/mysqld-exporter:latest
Loaded image: rainbond/rbd-eventlog:v5.8.1-release
Loaded image: rainbond/rbd-api:v5.8.1-release
Loaded image: rancher/local-path-provisioner:v0.0.20
2022-09-12 15:59:08 INFO: Docker images success
2022-09-12 15:59:09 INFO: K3s is starting, please wait ············································
2022-09-12 15:59:26 INFO: K3s started successfully
namespace/rbd-system created
2022-09-12 15:59:26 INFO: Create namespace rbd-system
NAME: rainbond-operator
LAST DEPLOYED: Mon Sep 12 15:59:28 2022
NAMESPACE: rbd-system
STATUS: deployed
REVISION: 1
TEST SUITE: None
2022-09-12 15:59:28 INFO: Helm rainbond-operator installed
2022-09-12 15:59:29 INFO: Rainbond Region installed
2022-09-12 15:59:29 INFO: Rainbond Region is starting, please wait ············································
2022-09-12 16:00:55 INFO: Rainbond Region started successfully
2022-09-12 16:00:57 INFO: Rainbond console is starting, please wait ············································
2022-09-12 16:01:13 INFO: Rainbond started successfully, Please pass http://39.105.155.87:7070 Access Rainbond
访问 Rainbond
此时,你已经成功安装了 Rainbond,你现在可以根据日志中提示的访问地址进行访问,开始你的体验之旅
常见问题
安装问题:
- 单节点体验版本安装过程中如果长时间未完成,那么请参考文档 单机体验版本安装问题排查指南 进行故障排查。
- 离线安装目前仅支持 Allinone,如需集群版本安装请参阅 Rainbond企业版
使用问题:
- 离线部署开源版本不支持源码构建,离线只能从镜像或内部应用市场开始部署组件。