Sign inSign up

goldarte/img-tool

By goldarte

•Updated over 7 years ago

Docker image for execute commands (amd64 & armhf) and resize file-images.

Image
2

1.6K

goldarte/img-tool repository overview

⁠img-tool

Utilities for execute commands (amd64 & armhf) & resize the file-images.

⁠API v0.5

⁠Build image
cd repo-w-instructions
docker run --privileged -it --rm -v /dev:/dev -v $(pwd):/mnt goldarte/img-tool:v0.5
  • Directory repo-w-instructions must consist folder builder with the script image-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 /mnt/images).
  • Also you can to transfer variable to docker-image: use -e NAME="VALUE"
⁠Execute in image
cd folder-w-images-dir
docker run --privileged -it --rm -v /dev:/dev -v $(pwd):/mnt goldarte/img-tool:v0.5 img-chroot <IMAGE> [ exec <SCRIPT> [...] | copy <MOVE_FILE> <MOVE_TO> ]
⁠Resize image
cd folder-w-images-dir
docker run --privileged -it --rm -v /dev:/dev -v $(pwd):/mnt goldarte/img-tool:v0.5 img-resize <IMAGE> [ min <FREE_SPACE> | max <FREE_SPACE> ]

⁠License

Copyright 2019 Arthur Golubtsov, Alexey Rogachevskiy, Oleg Kalachev, Artem Smirnov

Licensed under the Apache License, Version 2.0

Tag summary

Content type

Image

Digest

Size

132.6 MB

Last updated

over 7 years ago

docker pull goldarte/img-tool