...
Build Demo App
Build ParsecClient
$ cd cassini/smartcities/ParsecClient/
$ ./build.sh
$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
parsec-client v1.0 aef2a010b6b5 3 months ago 17.3MB
$
sudo docker save aef2a010b6b5 > parsec-client-v1.0-docker-aarch64.tar
The saved parsec-client-v1.0-docker-aarch64.tar will use to delpoy on SONiC and Nvidia Nona.
Build NodeAuthServer
$ cd cassini/smartcities/NodeAuthServer/
$ go build
Build NodeAuthAgent
$ cd cassini/smartcities/NodeAuthAgent/
$ go build
Build CameraClient
$ cd cassini/smartcities/CameraClient/
$ go build
Build TritonClient
$ cd cassini/smartcities/TritonClient/
$ ./build.sh
$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
triton
-client v1.0 deaf4b1027ed 3 weeks ago 1.32 GB$
sudo docker save deaf4b1027ed > triton-client-v1.0-docker-aarch64.tar
The saved triton-client-v1.0-docker-aarch64.tar will use to delpoy on Nvidia Nona.
Deploy Demo App on SONiC
Connect to SONiC
Use serial console connect to SONiC device, serial param is below:Baud rate: 115200
Data bit: 8
Parity: None
Stop bits: 1
Contorol: None
Deploy Parsec server
- add system user parsec (NEED login by admin)
$ sudo useradd -m parsec
$ sudo passwd parsec
$ sudo usermod -s /bin/bash parsec
$ sudo groupadd parsec-clients
- create necessary directorys (NEED login by admin)
$ sudo mkdir /var/lib/parsec
$ sudo chown parsec:parsec /var/lib/parsec
$ sudo chmod 700 /var/lib/parsec
$ sudo mkdir /etc/parsec
$ sudo chown parsec:parsec /etc/parsec
$ sudo chmod 700 /etc/parsec
$ sudo mkdir /usr/libexec/parsec
$ sudo chown parsec:parsec /usr/libexec/parsec
$ sudo chmod 700 /usr/libexec/parsec
$ sudo mkdir /home/parsec/run/
$ sudo chown parsec:parsec-clients /home/parsec/run/
$ sudo chmod 750 /home/parsec/run/
- deploy files (NEED login by parsec)
$ cd ~
$ pwd
/home/parsec
$ cp xxx/parsec-server-aarch64/parsec /usr/libexec/parsec
$ chmod +x /usr/libexec/parsec/parsec
$ cp xxx/parsec-server-aarch64/config.toml /etc/parsec/config.toml
- add service for systemctl
$ sudo vim /etc/systemd/system/parsec.service
[Unit]
Description=Parsec Service
Documentation=https://parallaxsecond.github.io/parsec-book/parsec_service/install_parsec_linux.html[Service]
WorkingDirectory=/home/parsec/
ExecStart=/usr/libexec/parsec/parsec --config /etc/parsec/config.toml[Install]
WantedBy=multi-user.target - start parsec servive
$ sudo systemctl enable parsec.service
$ sudo systemctl start parsec.service
- add system user parsec (NEED login by admin)
Deploy Parsec Client
Deploy NodeAuthServer
Deploy k3s Server
Deploy EdgeFaas
Deploy Demo App on Nvidia Nano
Maintenance
Blue Print Package Maintenance
...