Adding flash_docker function
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Eleon 2021-10-03 02:02:26 +02:00
parent 010279c191
commit 224fc57582
2 changed files with 7 additions and 2 deletions

View file

@ -19,6 +19,11 @@ clean:
+@make -C firmware clean
+@make -C pcb clean
flash_docker:
sh -c "docker build -t fiatlux_firmware_env docker/firmware"
sh -c "docker run --volume "$$(pwd)"/firmware:/app/firmware --device=/dev/ttyUSB0 fiatlux_firmware_env make -C firmware flash"
firmware_docker:
sh -c "docker build -t fiatlux_firmware_env docker/firmware"
sh -c "docker run --volume "$$(pwd)"/firmware:/app/firmware fiatlux_firmware_env make -C firmware all"

View file

@ -8,6 +8,6 @@ RUN cd app/modules/sdk; export CT_EXPERIMENTAL=y; export CT_ALLOW_BUILD_AS_ROOT=
USER 0
RUN apt remove --purge -y python2 && apt autoremove --purge -y && apt install -y python3 python3-serial perl
RUN apt install -y --reinstall python-is-python3
USER 1000
USER 0
WORKDIR /app
ENV PATH=/app/modules/sdk/xtensa-lx106-elf/bin:$PATH
ENV PATH=/app/modules/sdk/xtensa-lx106-elf/bin:$PATH