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.
15 lines
403 B
15 lines
403 B
#!/bin/bash |
|
set -ex |
|
source $(dirname $0)/rootdir.sh #set ROOTDIR |
|
ARGS=$@ |
|
STATIC_LIBS=static |
|
DOCKER_EXCHG=/musl-share |
|
IMAGE=unki/musllibs |
|
mkdir -p $STATIC_LIBS |
|
cd $ROOTDIR/images && docker build -t $IMAGE . -f musl-libs.Dockerfile |
|
docker run \ |
|
-v $ROOTDIR/$STATIC_LIBS:$DOCKER_EXCHG \ |
|
-w /volume \ |
|
-it \ |
|
$IMAGE \ |
|
bash -c "[[ \$(ls -A $DOCKER_EXCHG) ]] || cp /musl/. $DOCKER_EXCHG -r"
|
|
|