[ONL]How to build the ONL installer for Edgecore switches? Follow
Propose:
This post shows the procedures to build the ONL (Open Networking Linux) installer/binaries for Edgecore switches.
Procedures:
Step 1
- Prepare a Linux build server.
In the following step, we use the Ubuntu 18.04.6 LTS to build the ONL installer.
Step 2
The ONL built environment requires these tools.
- docker
- pyhton2
- binfmt-support
- apt-cacher-ng
sudo apt-get install docker.io
sudo apt install python2
sudo apt-get install -y binfmt-support
sudo apt-get install apt-cacher-ng
Step 3
- Clone the master code from ONL Github first, and using the "make docker" command to build the installer is the easiest way.
ts@ts_server-bot:~$ git clone https://github.com/opencomputeproject/OpenNetworkLinux
ts@ts_server-bot:~$ cd OpenNetworkLinux/
ts@ts_server-bot:~/OpenNetworkLinux$ export VERSION=9 ## Option: Choose Debian version
ts@ts_server-bot:~/OpenNetworkLinux$ make docker
- If the PR (Pull Request) has not merged to the ONL master code yet. You can merge the specific PR by the following command:
P.S. This example is to get the PR #832 from the ONL GitHub.
ts@ts_server-bot:~$ git clone https://github.com/opencomputeproject/OpenNetworkLinux
ts@ts_server-bot:~$ cd OpenNetworkLinux/
ts@ts_server-bot:~/OpenNetworkLinux$ git pull origin pull/832/head
ts@ts_server-bot:~/OpenNetworkLinux$ export VERSION=9
ts@ts_server-bot:~/OpenNetworkLinux$ make docker
Step 4
- After the compiled finish, you can find the ONL installer from the "RELEASE" directory.
Reference:
[1] https://opennetlinux.org/doc-building.html
[2] https://github.com/opencomputeproject/OpenNetworkLinux/blob/master/docs/Building.md
Comments
0 comments
Please sign in to leave a comment.