Before building the software, edit config.yaml. In the build process the config file is needed and copied to docker image.
Then, edit DOCKER/Dockerfile.CPL and DOCKER/Dockerfile to specify the base image.
- FROM arm32v7/alpine:3.12 => for Raspberry Pi 4
Finish editing the Dockerfile, execute the following command.
$ docker build -t alpine-dev -f DOCKER/Dockerfile.CPL .
$ docker run --name cppdev -v "$PWD":/home -it alpine-dev
/ $ cd home; make build
$ cp -a ble-cts-central.service /etc/systemd/system/
$ systemctl enable ble-cts-periph
$ docker logs ble-cts-docker_periph_1 -f
You can view the journal logs, too.
$ journalctl -u ble-cts-periph.service --no-pager --since="2023-01-27 18:00:00"