"public/2024Q2/architecture/osom/index.html" did not exist on "7845c3f62f4869269236368776eb141f3cae578e"
Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
TeraFlow Traffic Engineering Service
====================================
The Traffic Engineering service is tested on Ubuntu 20.04. Follow the instructions below to build, test, and run this service on your local environment.
## Build
$ rebar3 compile
## Execute Unit Tests
$ rebar3 eunit
## Run Service Console
First you need to crete a configuration file if not already done, and customize it if required:
$ cp config/dev.config.template config/dev.config
Then you can start the service in console mode:
$ rebar3 shell
## Build Docker Image
$ docker build -t te:dev .
## Run Docker Container
$ docker run -d --name te --init te:dev
## Open a Console to a Docker Container
$ docker exec -it te /tfte/bin/tfte remote_console
## Open a Console to a Kubernetes Pod
$ kubectl --namespace tfs exec -ti $(kubectl --namespace tfs get pods --selector=app=teservice -o name) -- /tfte/bin/tfte remote_console
## Show Logs
$ docker logs te