Adding flash_docker function
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
010279c191
commit
224fc57582
2 changed files with 7 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -19,6 +19,11 @@ clean:
|
||||||
+@make -C firmware clean
|
+@make -C firmware clean
|
||||||
+@make -C pcb 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:
|
firmware_docker:
|
||||||
sh -c "docker build -t fiatlux_firmware_env docker/firmware"
|
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"
|
sh -c "docker run --volume "$$(pwd)"/firmware:/app/firmware fiatlux_firmware_env make -C firmware all"
|
||||||
|
|
|
@ -8,6 +8,6 @@ RUN cd app/modules/sdk; export CT_EXPERIMENTAL=y; export CT_ALLOW_BUILD_AS_ROOT=
|
||||||
USER 0
|
USER 0
|
||||||
RUN apt remove --purge -y python2 && apt autoremove --purge -y && apt install -y python3 python3-serial perl
|
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
|
RUN apt install -y --reinstall python-is-python3
|
||||||
USER 1000
|
USER 0
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV PATH=/app/modules/sdk/xtensa-lx106-elf/bin:$PATH
|
ENV PATH=/app/modules/sdk/xtensa-lx106-elf/bin:$PATH
|
||||||
|
|
Loading…
Reference in a new issue