Skip to content

Commit

Permalink
feat: added rpi container
Browse files Browse the repository at this point in the history
  • Loading branch information
mglants committed May 23, 2024
1 parent 5983c97 commit 4bd18c6
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 0 deletions.
18 changes: 18 additions & 0 deletions apps/raspberrypi4-uefi/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM docker.io/library/alpine:3.19 as rpi

COPY ./serials /serials

ADD https://github.com/pftf/RPi4/releases/download/v1.37/RPi4_UEFI_Firmware_v1.37.zip RPi4_UEFI_Firmware.zip

RUN apk add --update --no-cache \
unzip \
&& mkdir /rpi4 \
&& mv RPi4_UEFI_Firmware.zip /rpi4/RPi4_UEFI_Firmware.zip \
&& cd /rpi4 \
&& ls \
&& unzip RPi4_UEFI_Firmware.zip \
&& rm RPi4_UEFI_Firmware.zip \
&& mkdir /tftp \
&& ls /serials | while read serial; do mkdir /tftp/$serial && cp -r /rpi4/* /tftp/$serial && cp -r /serials/$serial/* /tftp/$serial/; done
FROM quay.io/poseidon/dnsmasq:v0.5.0-31-gdc1adc8
COPY --from=rpi /tftp /var/lib/tftpboot
9 changes: 9 additions & 0 deletions apps/raspberrypi4-uefi/ci/latest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env python

def get_latest(channel):
return "v0.0.1"

if __name__ == "__main__":
import sys
channel = sys.argv[1]
print(get_latest(channel))
12 changes: 12 additions & 0 deletions apps/raspberrypi4-uefi/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
app: "raspberrypi4-uefi"
base: false
semantic_versioning: true
channels:
- name: "stable"
platforms:
- linux/arm64
- linux/amd64
stable: true
tests:
enabled: false
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 4bd18c6

Please sign in to comment.