https://github.com/teknoir/cpp-app-template
A small footprint c++ app. A base for building c++ apps on the teknoir platform.
https://github.com/teknoir/cpp-app-template
Last synced: 4 months ago
JSON representation
A small footprint c++ app. A base for building c++ apps on the teknoir platform.
- Host: GitHub
- URL: https://github.com/teknoir/cpp-app-template
- Owner: teknoir
- Created: 2022-09-30T11:45:24.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-12T05:33:35.000Z (almost 3 years ago)
- Last Synced: 2025-06-05T11:02:33.681Z (4 months ago)
- Language: C++
- Size: 144 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Teknoir App C++ Template
A small footprint c++ app.
A base for building c++ apps on the teknoir platform.## Build
```bash
gcloud builds submit . --config=cloudbuild.yaml --timeout=3600 --substitutions=SHORT_SHA="$(date +v%Y%m%d)-$(git describe --tags --always --dirty)-$(git diff | shasum -a256 | cut -c -6)"
```## Build locally
```bash
mkdir build
cd build
cmake ..
make
make install
```## Run locally
```bash
docker run -it --rm -p 1883:1883 -p 9001:9001 --name mqtt-broker eclipse-mosquitto
# and in another terminal window run:
docker run -it --rm -e HMQ_SERVICE_HOST= tekn0ir/teknoir-app-cpp:amd64
```
To stop the example press `ctrl-c`.## Legacy build and publish docker images
```bash
docker build -t tekn0ir/teknoir-app-cpp:amd64 -f amd64.Dockerfile .
docker push tekn0ir/teknoir-app-cpp:amd64```