Created
July 11, 2017 19:51
-
-
Save EmbeddedAndroid/417dc7f22bfffd14022127d1acc450b7 to your computer and use it in GitHub Desktop.
Alpine Build Script
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/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