Skip to content

Commit

Permalink
feat(contrib): add rpi4 image build script
Browse files Browse the repository at this point in the history
  • Loading branch information
nimdanitro committed Jun 10, 2024
1 parent 097c9fb commit ace8f4c
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 7 deletions.
2 changes: 1 addition & 1 deletion contrib/images/rpi4/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euf -o pipefail

echo "Generating Ignotion config from config.yaml"
butane config.yaml > config.ign
butane -d ../.. config.yaml > config.ign


echo "Generating Raw Image"
Expand Down
11 changes: 5 additions & 6 deletions contrib/images/rpi4/config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
variant: fcos
version: 1.5.0
ignition:
config:
merge:
- local: shared.ign
passwd:
users:
- name: sitrep
password_hash: $y$j9T$1Risz6zDWWycc.7AwElfT0$iNik1akIkBAsx33xe7L9tR/NSuEBzif1aKTuGc1UHX3 # LetMeIn
groups:
- wheel
- sudo
shell: /bin/bash
ignition:
config:
merge:
# source
#local: shared.ign

30 changes: 30 additions & 0 deletions contrib/shared-butane.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
variant: fcos
version: 1.5.0
storage:
directories:
- path: /etc/sitrep
mode: 0644
files:
- path: /etc/hostname
mode: 0644
contents:
inline: sitrep
- path: /etc/containers/systemd/sitrep.kube
mode: 0644
contents:
inline: |
[Unit]
Description=Sitrep Quadlet Service
[Kube]
AutoUpdate=registry
Yaml=/etc/sitrep/local.yaml
ConfigMap=/etc/sitrep/local.config.yaml
PublishPort=4180:4180
[Install]
WantedBy=default.target
- path: /etc/sitrep/local.yaml
mode: 0644
contents:
local: local.yaml
1 change: 1 addition & 0 deletions contrib/shared.ign
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"ignition":{"version":"3.4.0"},"storage":{"directories":[{"path":"/etc/sitrep","mode":420}],"files":[{"path":"/etc/hostname","contents":{"compression":"","source":"data:,sitrep"},"mode":420},{"path":"/etc/containers/systemd/sitrep.kube","contents":{"compression":"gzip","source":"data:;base64,H4sIAAAAAAAC/2zLPYrDMBDF8X5O4RPYu7DFsqBiP5olBByMCcG4GEtjZ2AsCWkU8O1DnDbNa97vP/SedYQ/yjZxVA7edKyJYnUq6IS06ijd2BLAcCgTjfBdNPTRoZJJtHDWtMEFVzENqW3yHjcSLEq94SrwG/zMyxHjC2D37+naMgnnaxuSmo/3z7evxwAM/z4rioxwRq/kfjbjaMYiWiumhRTuAQAA///IWTlywwAAAA=="},"mode":420},{"path":"/etc/sitrep/local.yaml","contents":{"compression":"gzip","source":"data:;base64,H4sIAAAAAAAC/8RXb2/bNhN/708h5HkAt11kxc3adQL2QrGYRKstqaSctkMwgpZoWYskqiStxJj33QdKluO/agok2BtBd+T9fnck73gkRXJDuUhYbmplv3OX5JGp+SzqZFSSiEhidjQtJROaCvWnaaQoTE0kktOiksO5kCyj3NQimrGOpuUko80MvdKJgobKOGS5JElOeQWlazQva0x9ZeR7KLiCAGHfQuizB+1qVNNKks7pJWeZuVJUWNMkHpHiI11AOn0caByoJ2yo7+jiGEOSkViZxLwX0dIIZyTJ4znhkVEwIWNOhZkSSYXsPOI3I5WqYFyKJpZ1mD7j0tR+7n84W7kxY0LWyvPz836/0pYsnWd0xOb5I0KmJJ/ImakZJeFGmkzWnnxLDbUtnc1YS8J1pdSbSbpi0s8Or7JnjYPrt9iH3pevGALbQXjguS4YBI7n4jEcbq66qXEaJcI0jJSFJFW45vvzX349jjjwvI8OwAgMIAiefQP30ducGCB4iX0AMQSfxgAF25GdSD6nJ8dBxj4KILBGaNtsmqTUNAxDSCKT0PifcTqTsthaoQ9nH86Msm/EnBSzb+l3/QRffAeCbZr3Z1mL3dABboCd58+QbeSD5Oij46vfG8cGEF+Mg8Bzf2xlV2FDcAkBut62PW+LG4IbABGopR/jRAAhdcBR4EGAg68+OHDOj5s38W4bsSQKn3YKD23xu6w9MSEYBLsJ+SybvAfedsheKpP30I8fNqXA0BsHYCcXu93uFQh++9PISJ5MqZC3vX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