Skip to content

Commit

Permalink
add target to create custom iso
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Jan 3, 2025
1 parent 0742ffa commit 9578f0d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ UNAME := $(shell uname)
# We have experienced some issues with the latest image, that’s why it’s previous version
OFFICIAL_IMAGE := quay.io/kairos/alpine:3.19-standard-arm64-rpi3-v3.2.3-k3sv1.31.2-k3s1-img

# TODO: Add latest tag and use it here
CUSTOM_IMAGE := ghcr.io/pluralsh/edge:sha-456f53e

# Replace it with your device name of memory card
DEVICE_PATH := /dev/rdisk4

Expand All @@ -27,3 +30,11 @@ endif

build-custom-image:
docker build --build-arg TARGETARCH=$(TARGETARCH) .

# FIXME
create-custom-iso:
docker run --rm -ti -v ${PWD}/config.yaml:/config.yaml -v ${PWD}:/tmp quay.io/kairos/auroraboot \
--set "container_image=${CUSTOM_IMAGE}"
--set "disable_http_server=true" \
--set "disable_netboot=true" \
--cloud-config /config.yaml
6 changes: 2 additions & 4 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
hostname: metal-{{ trunc 4 .MachineID }}
users:
- name: kairos
# Change to your pass here
passwd: kairos
ssh_authorized_keys:
# Replace with your github user and un-comment the line below:
# - github:mudler
# ssh_authorized_keys:
# - github:mudler

0 comments on commit 9578f0d

Please sign in to comment.