docker build script

This commit is contained in:
Krzysiek Egzmont
2023-10-01 21:27:21 +02:00
parent 5c413eb7cd
commit 82b8f6755f
4 changed files with 20 additions and 0 deletions
+1
View File
@@ -3,3 +3,4 @@
firmware firmware
/firmware.packed.bin /firmware.packed.bin
/firmware.bin /firmware.bin
/compiled-firmware
+12
View File
@@ -0,0 +1,12 @@
FROM archlinux:latest
RUN pacman -Syyu base-devel --noconfirm
RUN pacman -Syyu arm-none-eabi-gcc --noconfirm
RUN pacman -Syyu arm-none-eabi-newlib --noconfirm
RUN pacman -Syyu git --noconfirm
RUN pacman -Syyu python-pip --noconfirm
RUN pacman -Syyu python-crcmod --noconfirm
WORKDIR /app
COPY . .
RUN git submodule update --init --recursive
#RUN make && cp firmware* compiled-firmware/
+4
View File
@@ -0,0 +1,4 @@
@echo off
docker build -t uvk5 .
docker run -v %CD%\compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make clean && make && cp firmware* compiled-firmware/"
pause
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
docker build -t uvk5 .
docker run -v $(PWD)/compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make && cp firmware* compiled-firmware/"