Utilities for execute commands (amd64 & armhf) & resize the file-images.
cd repo-w-instructions
docker run --privileged -it --rm -v /dev:/dev -v $(pwd):/builder/repo smirart/img-tool:v0.1
- Directory
repo-w-instructions
must consist folderbuilder
with the scriptimage-build.sh
. This script will executed in docker-container.- Source image may be placed to
./images/
. And final image should be placed by same way (path in docker/builder/repo/images
).- Also you can to transfer variable to docker-image: use
-e NAME="VALUE"
cd folder-w-images-dir
docker run --privileged -it --rm -v /dev:/dev -v $(pwd):/builder/repo smirart/img-tool:v0.1 /builder/image-chroot.sh <IMAGE> [ exec <SCRIPT> [...] | copy <MOVE_FILE> <MOVE_TO> ]
cd folder-w-images-dir
docker run --privileged -it --rm -v /dev:/dev -v $(pwd):/builder/repo smirart/img-tool:v0.1 /builder/image-resize.sh <IMAGE> [ min <FREE_SPACE> | max <FREE_SPACE> ]
Copyright 2018 Artem B. Smirnov
Licensed under the Apache License, Version 2.0