C2A-Installation-Server/docker/install-sdk.sh

14 lines
430 B
Bash

#!/bin/bash
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip -P /root/
unzip /root/sdk-tools-linux-4333796.zip -d /root/
rm /root/sdk-tools-linux-4333796.zip
yes | ./tools/bin/sdkmanager --licenses
yes | ./tools/bin/sdkmanager "platforms;android-28" --sdk_root=/opt/android-sdk
apt-get update
apt-get install -y curl
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs