Skip to content

Minimal docker image for creating/handling RAUC bundles

License

Notifications You must be signed in to change notification settings

skazemi/docker-rauc-bundler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-rauc-bundler

Minimal docker image for creating/handling RAUC bundles

Build

git clone https://github.com/skazemi/docker-rauc-bundler.git && cd docker-rauc-bundler

Build default version

docker build . -t rauc-bundler:latest

Build specific version

docker build . -t rauc-bundler:custom --build-arg RAUC_VERSION=v1.11.3

Usage

Get RAUC version

docker run rauc-bundler:latest --version

Create bundle with host user ownership

docker run --user "$(id -u):$(id -g)" \
    -v "$(pwd)/dummy-keys":/bundle/keys \
    -v "$(pwd)/dummy-content":/bundle/input \
    -v "$(pwd)/dummy-output":/bundle/output \
    rauc-bundler:latest --keyring=keys/dummy.keyring.pem bundle \
    --cert=keys/dummy.cert.pem \
    --key=keys/dummy.key.pem \
    input/ \
    output/dummy.raucb

Get bundle info

docker run \
    -v "$(pwd)/dummy-keys":/bundle/keys \
    -v "$(pwd)/dummy-output":/bundle/output \
    rauc-bundler:latest --keyring=keys/dummy.keyring.pem info \
    output/dummy.raucb