You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
343 B
16 lines
343 B
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
IMAGE_NAME=mender-convert
|
|
|
|
INPUT_DIR="$(pwd)/input"
|
|
OUTPUT_DIR="$(pwd)/output"
|
|
|
|
mkdir -p $OUTPUT_DIR
|
|
|
|
docker run -it \
|
|
--mount type=bind,source=$INPUT_DIR,target=/mender-convert/input,readonly \
|
|
--mount type=bind,source=$OUTPUT_DIR,target=/mender-convert/output \
|
|
--privileged=true \
|
|
$IMAGE_NAME
|
|
|