Skip to content

Instantly share code, notes, and snippets.

@EmbeddedAndroid
Created July 11, 2017 19:51
Show Gist options
  • Save EmbeddedAndroid/417dc7f22bfffd14022127d1acc450b7 to your computer and use it in GitHub Desktop.
Save EmbeddedAndroid/417dc7f22bfffd14022127d1acc450b7 to your computer and use it in GitHub Desktop.
Alpine Build Script
#!/bin/bash
GIT_SSL_NO_VERIFY=true git clone https://github.com/EmbeddedAndroid/alpine-docker.git
cd alpine-docker
chmod a+x wrapper.sh mkimage-alpine.sh
if [ $ARCH = "arm64" ]; then
if [ $REL == "edge" ]; then
./wrapper.sh -a aarch64 -o alpine -r $REL
else
./wrapper.sh -a aarch64 -o alpine -r v$REL
fi
elif [ $ARCH = "armhf" ]; then
if [ $REL == "edge" ]; then
./wrapper.sh -a $ARCH -o alpine -r $REL
else
./wrapper.sh -a $ARCH -o alpine -r v$REL
fi
fi
docker import rootfs.tar.xz linarotechnologies/alpine:$REL-$ARCH
docker push linarotechnologies/alpine:$REL-$ARCH
docker rmi linarotechnologies/alpine:$REL-$ARCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment