A middleware server Docker Image based on NGIX Unit that transforms and exchanges data between an IoT device and Verizon Thingspace using Verizon's ThingSpace Connectivity Management API.
./init.sh
This script inits, updates, and resets the git submodules. It then runs bundle && bun install
on the front-end submodule, and finally it runs make clean && make
.
./build.sh
build.sh
Flags:p
: prune Docker containers, images, and buildx cache after buildr
: runs the docker container after building with the options --rm -p 8081:80 --name niddss_dev
d
: Adds the docker build option --build-arg debug=true
ls='ls -F --color=auto'
& grep='grep -nI --color=auto'
to /root/.bashrc
unitd
& libunit.a
with the --debug
optiionm
: Builds Dockerfile.minsize
; not recomended for development as it offers far less cachingdocker run --rm -p 8081:80 --name niddss_dev niddss:dev
The server will be viewable at http://localhost:8081
docker exec -it niddss_dev /bin/bash