Created
September 22, 2018 07:02
-
-
Save micw/87756e35d744e6784ce8d8c66e2619cb to your computer and use it in GitHub Desktop.
Build aports with docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$#" -ne 2 ]; then | |
echo "USAGE: $0 ARCH REPO/PACKAGE" | |
echo "EXAMPLE $0 armhf main/busybox" | |
exit 1 | |
fi | |
BASE=$( cd $( dirname $0 ); pwd) | |
ARCH=$1 | |
PACKAGE=$2 | |
mkdir -p ${BASE}/packages | |
chown 1000 ${BASE}/packages | |
docker run -it --rm \ | |
-v ${BASE}:/aports \ | |
-v ${BASE}/packages:/home/build/packages \ | |
--user build --workdir /aports \ | |
micwy/aport-builder-${ARCH}:latest \ | |
/build.sh $PACKAGE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment