remove sdk-tools-linux.zip from image to reduce size by 131MB
Closed this issue · 1 comments
kuhnroyal commented
Maybe a simple marker file is enough to prevent bootstrapping to occur twice.
Something like this:
if [ -f .bootstrapped ]
then
echo "SDK Tools already bootstrapped. Skipping initial setup"
else
echo "Bootstrapping SDK-Tools"
wget -q http://dl.google.com/android/repository/sdk-tools-linux-3859397.zip -O sdk-tools-linux.zip
unzip sdk-tools-linux.zip
touch .bootstrapped
rm sdk-tools-linux.zip
fi
This would reduce the standalone image size by 131MB.
mindrunner commented
Looks good for me. PR welcome :)
Sent from a mobile
…On Wed, May 30, 2018, 5:37 PM Peter Leibiger ***@***.***> wrote:
Maybe a simple marker file is enough to prevent bootstrapping to occur
twice.
Something like this:
if [ -f .bootstrapped ]then
echo "SDK Tools already bootstrapped. Skipping initial setup"else
echo "Bootstrapping SDK-Tools"
wget -q http://dl.google.com/android/repository/sdk-tools-linux-3859397.zip -O sdk-tools-linux.zip
unzip sdk-tools-linux.zip
touch .bootstrapped
rm sdk-tools-linux.zipfi
This would reduce the standalone image size by 131MB.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#23>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ABWRpo9T0rIvReGH59savtVMvAbCqXZDks5t3rywgaJpZM4UTh1c>
.