Skip to content
README.md 992 B
Newer Older
Sebastien Merle's avatar
Sebastien Merle committed
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