xemu-test/scripts/build_test_data.sh
2022-03-04 02:38:05 -07:00

15 lines
283 B
Bash

#!/bin/bash
if [[ ! -d xemutest ]]; then
echo "Run from root dir"
exit 1
fi
set -ex
target=data
image=xemu-test-data-tmp-img
docker build --target $target -t $image .
container=$(docker create $image "")
docker cp $container:/data xemutest/
docker rm $container
docker rmi $image