---
# System prepended metadata

title: Installazione scheduler
tags: [Scheduler]

---

---
tags: Scheduler
---

# Installazione scheduler

```
$ git clone https://github.com/liqotech/scheduling.git

# opzione 1: tenere flowlessly

# spostare in pkg/scheduler/algoritmFirmament/flowlessly la cartella Flowlessly (nel .zip è FlowlesslyLicense) di Gabriele Castellano (mail)
$ cd scheduling/pkg/scheduler/algorithmFirmament/flowlessly/
$ cp -r custom_c_files/. Flowlessly/

$ cd Flowlessly
$ nano src/CMakeLists.txt # eliminare la sezione "test" dal file 
$ nano src/graphs/forward_star_graph.h # aggiungere "public: " a riga 106
$ ./scripts/install_packages.sh
$ mkdir build && cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=./
$ make
$ make install
$ cd ../..

# questo comando a me non sono mai andato perchè non trova la cartella "lib"
$ cp Flowlessly/build/lib/libflowlessly.a flowlesslywrapper/

$ cp custom_c_files/src/flowlessly.h flowlesslywrapper/flowlesslywrapper.h
$ cd ../../../..

# fine opzione1

# opzione 2: eliminare flowlessly

$ rm -rf pkg/scheduler/algorithmFirmament/
# in file pkg/scheduler/schedulingManager.go comment lines 9 and 64-67

# fine opzione2

# in file pkg/metrics/traceable.go comment lines 37-74
$ go env -w GOPRIVATE=github.com/liqotech      
$ go get -u github.com/liqotech/scheduling-validation
$ go env -w GOPRIVATE=
# aggiungere al file pkg/graph/graph.go all'interno dell'intefaccia Graph -> SetInitialResources()
$ go build -o scheduler cmd/scheduler/main.go
$ ./scheduler -f examples/config.yml --klog.v=1

```