-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from nbw74/main
Fix broken docker build
- Loading branch information
Showing
3 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
# hadolint ignore=DL3007 | ||
FROM archlinux:latest | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
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 set -eux; \ | ||
pacman -Syy --noconfirm \ | ||
arm-none-eabi-gcc \ | ||
arm-none-eabi-newlib \ | ||
base-devel \ | ||
git \ | ||
python-crcmod | ||
|
||
RUN git submodule update --init --recursive | ||
#RUN make && cp firmware* compiled-firmware/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +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/" | ||
docker run -v "$(pwd)/compiled-firmware:/app/compiled-firmware" uvk5 /bin/bash -c "cd /app && make && cp firmware* compiled-firmware/" |