Moves the controller, bridge and led-driver default ESP-NOW channel to 11 and updates the led-driver and led-tool submodule pointers. Includes the rest of the working tree: web UI, desktop and sim-controller changes, API and bridge code, graphify output, and the .gitea and fixture-driver folders. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
30 lines
1.8 KiB
Docker
30 lines
1.8 KiB
Docker
# Desktop image of the controller firmware built for ESP-IDF's linux target: no hardware, no LAN.
|
|
# The web UI is embedded in the binary (main/CMakeLists.txt packs www_dist/www.pack), so no Node is needed.
|
|
# Build from the repo root: docker build -f Dockerfile.sim -t led-controller-sim .
|
|
# Run: docker run --rm -p 8080:8080 -v led-sim-data:/data led-controller-sim
|
|
# Editing needs a sign-in. Set the first admin with LED_ADMIN_USER and LED_ADMIN_PASSWORD (8+ characters);
|
|
# until a user exists the controller is open to everyone, so set them on the first run.
|
|
# docker run ... -e LED_ADMIN_USER=owner -e LED_ADMIN_PASSWORD='change-me-now' led-controller-sim
|
|
|
|
FROM espressif/idf:v6.1 AS build
|
|
WORKDIR /project
|
|
COPY . .
|
|
RUN bash -c ". /opt/esp/idf/export.sh && cd sim-controller && idf.py build"
|
|
# led-fixture: one led-driver per fixture of a DMX bridge, started by the controller from its own directory
|
|
RUN cmake -S fixture-driver -B /tmp/build-fixture -DCMAKE_BUILD_TYPE=Release && cmake --build /tmp/build-fixture -j"$(nproc)"
|
|
|
|
FROM debian:trixie
|
|
# The two shared libraries the binary needs, taken from the build image (no package install needed)
|
|
COPY --from=build /usr/lib/x86_64-linux-gnu/libbsd.so.0.12.1 /usr/lib/x86_64-linux-gnu/libbsd.so.0
|
|
COPY --from=build /usr/lib/x86_64-linux-gnu/libmd.so.0.1.0 /usr/lib/x86_64-linux-gnu/libmd.so.0
|
|
COPY --from=build /project/sim-controller/build/led_controller_sim.elf /usr/local/bin/led_controller_sim
|
|
COPY --from=build /tmp/build-fixture/led-fixture /usr/local/bin/led-fixture
|
|
RUN useradd --system --uid 10001 --no-create-home led && mkdir /data && chown led /data
|
|
ENV LED_SIM_DB=/data \
|
|
LED_SIM_HTTP_PORT=8080 \
|
|
LED_SIM_BRIDGE=127.0.0.1:8766
|
|
USER led
|
|
VOLUME ["/data"]
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/usr/local/bin/led_controller_sim"]
|