foreword
In the past, the installation and deployment of Rainbond could not bypass the construction of Kubernetes clusters. Whether it is used as a development environment or for production delivery, the deployment process is very dependent on servers or cloud hosts. This sets a high threshold for experiencing the Rainbond cloud-native application management platform. However, for individual developers, it is very extravagant to prepare one server or even multiple servers before they can experience this enterprise-level product. Starting today, Rainbond has opened up a path that can be quickly experienced, with the help of Docker Desktop on common personal PC platforms (such as MacOS, Windows, etc.), at the cost of launching a container, providing a full-featured Rainbond experience environment. This deployment process has been compressed into one command run, 10 minutes to experience the latest version of Rainbond. Next, I will introduce how to install and use Rainbond on a personal MAC notebook.
MAC is currently divided into two chips, one is intel chip, and the other is Apple's latest M1 chip (ARM version). Rainbond currently not only supports intel chips, but also provides support for the new M1. This adaptation Rainbond can be easily launched on any MAC, an experience especially suitable for individual developers. By installing Rainbond in this way, you will get a complete set of out-of-the-box stand-alone environment in a short time, eliminating the pain of tedious installation of clusters and the pain of docking clusters, allowing you to use any laptop or desktop computer anytime, anywhere. Enable efficient development and testing.
Install Docker Desktop
Before installing Rainbond, we need to install Docker Desktop on our personal PC, which can help us run containers on MAC. Rainbond's console will run as a container, and in the console container, all components that support Rainbond's advanced functions will be run in the form of Docker In Docker. At the same time, K3s is built into the console container to provide the scheduling and orchestration capabilities of the container.
The installed Docker Desktop has certain requirements for versions and resource limits:
Docker Desktop version | MAC memory | MAC CPU |
---|---|---|
4.2 and below | 8G reserved | 2 reserved |
Install Rainbond
Before starting, you need to define the IP address of the Rainbond gateway to ensure that the outside world can access the internal application components. The IP address on the MAC can be obtained by executing theifconfig
command on the terminal, or pressing theOption
key and clicking the WIFI icon in the upper right corner. But one thing to note is that unless you are sure that the business deployed in this cluster will not provide services to others except this machine, do not fill in 127.0.0.1.
Open the MAC terminal, the subsequent commands will be executed under the command line interface
set IP variable
export EIP=IP地址
Intel version startup command (choose one to execute with M1):
docker run --privileged -d -p 7070:7070 -p 80:80 -p 443:443 -p 6060:6060 -p 8443:8443 \
--name=rainbond-allinone --restart=unless-stopped \
-v ~/.ssh:/root/.ssh \
-v ~/opt/rainbond:/opt/rainbond \
-e ENABLE_CLUSTER=true \
-e EIP=$EIP \
registry.cn-hangzhou.aliyuncs.com/goodrain/rainbond:v5.5.0-dind-allinone \
&& docker logs -f rainbond-allinone
M1 version startup command (choose one with Intel):
docker run --privileged -d -p 7070:7070 -p 80:80 -p 443:443 -p 6060:6060 -p 8443:8443 \
--name=rainbond-allinone --restart=unless-stopped \
-v ~/.ssh:/root/.ssh \
-v ~/opt/rainbond:/opt/rainbond \
-e ENABLE_CLUSTER=true \
-e EIP=$EIP \
registry.cn-hangzhou.aliyuncs.com/goodrain/rainbond:v5.5.0-dind-arm64-allinone \
&& docker logs -f rainbond-allinone
After successful startup, you will see the following prompt:
正在加载数据,预计3分钟,时间取决于磁盘性能...
正在启动Rainbond,预计5分钟...
Rainbond启动成功,可以通过访问: http://$EIP:7070 进入Rainbond控制台
Switch into the container and view the cluster status
docker exec -ti rainbond-allinone bash
root@e600f21466b6:~# kubectl get po -n rbd-system
Get the following return, indicating that Rainbond has been installed
NAME READY STATUS RESTARTS AGE
rbd-etcd-0 1/1 Running 2 (4d4h ago) 6d2h
rbd-gateway-4l2l7 1/1 Running 2 (4d4h ago) 6d2h
dashboard-metrics-scraper-7db45b8bb4-5lsfv 1/1 Running 2 (4d4h ago) 6d2h
rbd-webcli-6d64c66cb7-4g8bh 1/1 Running 2 (4d4h ago) 6d2h
kubernetes-dashboard-fbd4fb949-d6wbx 1/1 Running 2 (4d4h ago) 6d2h
rbd-mq-c95cf9857-x4m5b 1/1 Running 2 (4d4h ago) 6d2h
rainbond-operator-7d8649cd8b-cbllk 1/1 Running 3 (4d4h ago) 6d2h
rbd-db-0 2/2 Running 4 (4d4h ago) 6d2h
rbd-hub-64777d89d8-sjhgt 1/1 Running 2 (4d4h ago) 6d2h
rbd-node-8nfmj 1/1 Running 2 (4d4h ago) 6d2h
rbd-monitor-0 1/1 Running 2 (4d4h ago) 6d2h
rbd-eventlog-0 1/1 Running 2 (4d4h ago) 6d2h
rbd-worker-85d4f9696c-lkjn6 1/1 Running 2 (4d4h ago) 6d2h
rbd-resource-proxy-67879f484-tlq26 1/1 Running 4 (4d4h ago) 6d2h
rbd-chaos-2m7nt 1/1 Running 2 (4d4h ago) 6d2h
rbd-api-dff6bc49d-ttxrg 1/1 Running 2 (4d4h ago) 6d2h
Quickly familiarize yourself with Rainbond
In order to let everyone get familiar with 161dfea1e941a9 , after the installation is successful, there will be a sample application by default:
Click on the team interface -> admin team -> default application, you can view the Ghost example, the example will take about 2 minutes to start for the first time, and you can access it when it turns green, as shown below:
write at the end
This article briefly introduces a way to quickly experience Rainbond in a MAC computer environment, which is very friendly to individual developers, or small businesses and small teams that lack sufficient server hardware support. Rainbond has been fully adapted to Arm64 architecture chips. For developers whose end-user environment is Arm64 architecture, Rainbond can be used to build a targeted development environment.
There will be articles on how to quickly experience Rainbond in a Windows environment, so stay tuned.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。