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.
- VSCode
- Build & run tasks are included
- Configured to use Clang-Tidy
- Docker Buildx
./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
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
- Adds vim to the built image
- Adds the aliases
ls='ls -F --color=auto'
&grep='grep -nI --color=auto'
to/root/.bashrc
- Builds
unitd
&libunit.a
with the--debug
optiion
m
: BuildsDockerfile.minsize
; not recomended for development as it offers far less caching
docker 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