Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
8bcedb8d
Commit
8bcedb8d
authored
2 years ago
by
Sebastien Merle
Browse files
Options
Downloads
Patches
Plain Diff
Details a bit more the Erlang environment setup documentation
parent
9134f14b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!142
Release TeraFlowSDN 2.1
,
!133
Integration of TE component
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tutorial/1-6-setup-erlang-environmnet.md
+16
-8
16 additions, 8 deletions
tutorial/1-6-setup-erlang-environmnet.md
tutorial/2-6-te-demo.md
+2
-2
2 additions, 2 deletions
tutorial/2-6-te-demo.md
with
18 additions
and
10 deletions
tutorial/1-6-setup-erlang-environmnet.md
+
16
−
8
View file @
8bcedb8d
# 1.5. Setup Erlang Environment
# 1.5. Setup Erlang Environment
First we need to install Erlang. There is multiple way, for development we will be using asdf.
First we need to install Erlang. There is multiple way, for development we will
be using
*ASDF*
, a tool that allows the installation of multiple version of Erlang
at the same time, and switch from one version to the other at will.
## 1.5.1. Setup Erlang using asdf
## 1.5.1. Setup Erlang using asdf
...
@@ -8,31 +11,36 @@ First, install any missing dependencies:
...
@@ -8,31 +11,36 @@ First, install any missing dependencies:
sudo apt install curl git autoconf libncurses-dev build-essential m4 libssl-dev
sudo apt install curl git autoconf libncurses-dev build-essential m4 libssl-dev
Download
asdf
:
Download
*ASDF*
tool to the local account
:
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2
Make
asdf
activate on login by adding these lines at the end of the
`~/.bashrc`
file:
Make
*ASDF*
activate on login by adding these lines at the end of the
`~/.bashrc`
file:
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash
. $HOME/.asdf/completions/asdf.bash
Logout and log back in to activate
asdf
.
Logout and log back in to activate
*ASDF*
.
Install asdf plugin for Erlang:
*ASDF*
supports multiple tools by installing there corresponding plugins.
Install
*ASDF*
plugin for Erlang:
asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
Install Erlang:
Install
a version of
Erlang:
asdf install erlang 24.3.4.2
asdf install erlang 24.3.4.2
Activate Erlang locally for TFS controller:
Activate Erlang locally for TFS controller. This will create a local file
called
`.tool-versions`
defining which version of the tools to use when
running under the current directory:
cd tfs-ctrl/
cd tfs-ctrl/
asdf local erlang 24.3.4.2
asdf local erlang 24.3.4.2
Install rebar3:
Erlang projects uses a build tool called rebar3. It is used to manager project
dependenecies, compile a project and generate project releases.
Install rebar3 localy from source:
cd ~
cd ~
git clone https://github.com/erlang/rebar3.git
git clone https://github.com/erlang/rebar3.git
...
...
This diff is collapsed.
Click to expand it.
tutorial/2-6-te-demo.md
+
2
−
2
View file @
8bcedb8d
# 2.6. Traffic Engineering Demo (
PENDING
)
# 2.6. Traffic Engineering Demo (
WIP
)
## Setup Test-Bed
## Setup Test-Bed
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
### Setup Free Range Routing
### Setup Free Range Routing
$ sudo apt update
$ sudo apt update
$ sudo apt-get install git autoconf automake libtool make libreadline-dev texinfo
pkg-config libpam0g-dev libjson-c-dev bison flex libc-ares-dev python3-dev python3-sphinx install-info build-essential libsnmp-dev perl libcap-dev python2 libelf-dev libunwind-dev protobuf-c-compiler libprotobuf-c-dev libsystemd-dev
$ sudo apt-get install git autoconf automake libtool make libreadline-dev texinfo pkg-config libpam0g-dev libjson-c-dev bison flex libc-ares-dev python3-dev python3-sphinx install-info build-essential libsnmp-dev perl libcap-dev python2 libelf-dev libunwind-dev protobuf-c-compiler libprotobuf-c-dev libsystemd-dev
$ mkdir -p ~/testbed
$ mkdir -p ~/testbed
$ cd ~/testbed
$ cd ~/testbed
$ git clone git@github.com:opensourcerouting/frr.git
$ git clone git@github.com:opensourcerouting/frr.git
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment