Skip to content

Instantly share code, notes, and snippets.

@klutchell
Last active August 25, 2023 20:42
Show Gist options
  • Save klutchell/cf907d7aa8faeac463a5993ed5defb0f to your computer and use it in GitHub Desktop.
Save klutchell/cf907d7aa8faeac463a5993ed5defb0f to your computer and use it in GitHub Desktop.
hostapp-update

HUP - hostapp-update

load local images

# self-publish an image compiled in workspace
MACHINE=raspberrypi3
SHA256=$(docker load -q -i build/tmp/deploy/images/$MACHINE/balena-image-$MACHINE.docker | awk '{print $4}')

# self-publish an image download from Jenkins
MACHINE=raspberrypi3
SHA256=$(docker load -q -i ~/Downloads/balena-image.docker | awk '{print $4}')

# tag and push
docker tag $SHA256 klutchell/balenaos:$MACHINE
docker push klutchell/balenaos:$MACHINE

update to self-published image

hostapp-update -r -i klutchell/balenaos:$(jq -r '.deviceType' < /mnt/boot/config.json)

update to official images

# update to production image
hostapp-update -r -i resin/resinos:2.52.7_rev1.dev-skx2

# update to staging image
hostapp-update -r -i resin/resinos-staging:2.52.7_rev1.dev-skx2

official images without dockerhub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment