Skip to content

Instantly share code, notes, and snippets.

@micw
Created September 22, 2018 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micw/87756e35d744e6784ce8d8c66e2619cb to your computer and use it in GitHub Desktop.
Save micw/87756e35d744e6784ce8d8c66e2619cb to your computer and use it in GitHub Desktop.
Build aports with docker
#!/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