Introduce QEMU build scripts

This commit is contained in:
Sergey Bogolepov
2020-12-08 17:52:21 +07:00
committed by Stanislav Erokhin
parent 658530e820
commit 02379d9412
4 changed files with 68 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
set -eou pipefail
CONTAINER_NAME=kotlin-qemu-builder
IMAGE_NAME=kotlin-qemu-builder
docker ps -a | grep $CONTAINER_NAME > /dev/null \
&& docker stop $CONTAINER_NAME 1> /dev/null \
&& docker rm $CONTAINER_NAME 1> /dev/null
docker run -it -v "$PWD"/out:/output --name=$CONTAINER_NAME $IMAGE_NAME