Docker image of DeviceOS for building locally firmware for Particle Devices.
Each image tag is associated to a release of the DeviceOS:
Clone the docker-compose.template.yml inside the firmware folder and run the following command:
docker-compose run --rm buildThe firmware folder (current directory where docker-compose is started) is mounted inside the container in the /app directory.
The DeviceOS folder (located in the /deviceos directory inside the container) is mounted inside a Docker volume to store build artifacts between consecutive builds.
version: "3"
services:
build:
image: lucamora/device-os:1.2.3
container_name: deviceos
volumes:
- ./:/app
- deviceos:/deviceos
environment:
- SYSTEMDIR=/deviceos
- APPDIR=/app
volumes:
deviceos:During the build process, the Dockerfile defines two environment variables with the version of the DeviceOS which are available inside the container:
DEVICEOS_VERSION_STRING(ex:1.2.3)DEVICEOS_VERSION_NUMBER(ex:0x01020300)
Version number is encoded as a 32 bit hexadecimal number.
Format: 0xAABBCCDE
AA: major releaseBB: minor releaseCC: patch numberD: pre-release labelA: alphaB: betaC: rc
E: pre-release number