-
Notifications
You must be signed in to change notification settings - Fork 0
Building EdgeOS for cloud and edge
This page explains how EdgeOS cloud and edge are built.
EdgeOS Cloud is built with elixir Phoenix Framework. The main reason for using elixir here is for it's the OTP (Open Telecom Platform) libraries that ships with it's Erlang code under the hood. It makes cluster management and IO so easy.
To build EdgeOS Cloud from source, you need to use mix
, which comes with standard elixir installation on your build machine.
For OS like ubuntu, you can use the following commands to install elixir.
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install esl-erlang
sudo apt-get install elixir
After it's done, try this command to see if your mix is working.
mix --version
With mix installed, building EdgeOS Cloud because super simple.
-
cd
intoedge-os/cloud
- do
mix deps.get
to download all dependencies in under the folder above - finally, do
MIX_ENV=prod mix release
to build EdgeOS Cloud for production environment - your built binaries will be in
edge-os/cloud/_build/prod/rel/edge_os_cloud
folder
Please refer to the following post to know how to use it.
EdgeOS Edge built with Rust. The main reason why Rust is chosen, instead of Golang, is because I like it better and I would like to work on it more. Rust is also a very mature system software language. It compiles to native code, it's makes code safe, and it's super fast.
To build EdgeOS Edge from source, we need to use cargo
, which comes with standard Rust installation too. A simple command below should get your environment:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
After it's done, try this command to see if your cargo is working.
cargo --version
With cargo working, building EdgeOS Edge because super simple too.
-
cd
intoedge-os/edge
- do
cargo build --release
to build EdgeOS Cloud for production environment - your built binaries will be in
edge-os/edge/target/
folder. If you follow the instructions above, the location of your executable file will be atedge-os/edge/target/edge-os-edge
.
Please refer to the following post to know how to use it.
©EdgeOS at sailoi.com