This builds an ESP32 firmware in a container providing an ESPHome build environment Configuration files for the firmware target are kept in a seperate repository and fetched during build
Configuration yaml files for ESPHome need to be supplied as build argument
and are fetched from esphome-cfg
BME280
$ podman build . -t compost-0 --build-arg ESPHOME_CFG=compost-0.yaml
DHT22 / AM2302
$ podman build . -t greenhouse-1 --build-arg ESPHOME_CFG=greenhouse-1.yaml
ESPHome
ESPHome Source Code
ESPHome Releases
ESPHome Configuration Files
BME280 Datasheet
DHT22/AM2302 Datasheet