Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimized Dockerfile #577

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Dockerfile.egzumer
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM archlinux:latest
RUN pacman -Syyu make git which arm-none-eabi-gcc arm-none-eabi-newlib python-crcmod --noconfirm
RUN mkdir -p /app && chmod 777 /app
WORKDIR /app
8 changes: 5 additions & 3 deletions compile-with-docker.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh
docker build -t uvk5 .
docker run --rm -v ${PWD}/compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make && cp firmware* compiled-firmware/"
#!/bin/env sh
mkdir -p compiled-firmware
docker build -t egzumer -f Dockerfile.egzumer .
docker run --rm --user `id -u`:`id -g` -v `pwd`:/app egzumer \
/bin/bash -c 'make && mv firmware firmware.bin firmware.packed.bin compiled-firmware && chmod -R 644 compiled-firmware/*'