Updated bc-dev-android-29
This commit is contained in:
parent
f8ac74ee97
commit
3215334acb
1 changed files with 3 additions and 2 deletions
|
@ -21,6 +21,7 @@ ENV ANDROID_HOME /opt/android-sdk-linux
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y curl nano sudo unzip vim wget openjdk-8-jdk-headless rsync ssh git && \
|
apt-get install -y curl nano sudo unzip vim wget openjdk-8-jdk-headless rsync ssh git && \
|
||||||
apt-get clean
|
apt-get clean
|
||||||
|
RUN chmod ugo+rwx /opt/android-sdk-linux
|
||||||
|
|
||||||
# Get the Android tools
|
# Get the Android tools
|
||||||
RUN wget https://dl.google.com/android/repository/tools_r$ANDROID_SDK-linux.zip && \
|
RUN wget https://dl.google.com/android/repository/tools_r$ANDROID_SDK-linux.zip && \
|
||||||
|
@ -29,7 +30,7 @@ RUN wget https://dl.google.com/android/repository/tools_r$ANDROID_SDK-linux.zip
|
||||||
ENV PATH $ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH
|
ENV PATH $ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH
|
||||||
|
|
||||||
# Get the Android SDK
|
# Get the Android SDK
|
||||||
RUN echo "y" | sdkmanager "platforms;android-28" "build-tools;28.0.3" "platforms;android-29" "build-tools;29.0.2" "extras;android;m2repository" "extras;google;m2repository" "platform-tools" "tools"
|
RUN echo "y" | sdkmanager "platforms;android-28" "build-tools;28.0.3" "platforms;android-29" "build-tools;29.0.3" "extras;android;m2repository" "extras;google;m2repository" "platform-tools" "tools"
|
||||||
|
|
||||||
# Accept Android SDK licenses
|
# Accept Android SDK licenses
|
||||||
RUN yes | sdkmanager --licenses
|
RUN yes | sdkmanager --licenses
|
||||||
|
@ -39,7 +40,7 @@ RUN echo y | android update sdk --no-ui --all --filter platform-tools
|
||||||
RUN echo y | android update sdk --no-ui --all --filter android-28
|
RUN echo y | android update sdk --no-ui --all --filter android-28
|
||||||
RUN echo y | android update sdk --no-ui --all --filter build-tools-28.0.3
|
RUN echo y | android update sdk --no-ui --all --filter build-tools-28.0.3
|
||||||
RUN echo y | android update sdk --no-ui --all --filter android-29
|
RUN echo y | android update sdk --no-ui --all --filter android-29
|
||||||
RUN echo y | android update sdk --no-ui --all --filter build-tools-29.0.2
|
RUN echo y | android update sdk --no-ui --all --filter build-tools-29.0.3
|
||||||
|
|
||||||
# Configure user bc
|
# Configure user bc
|
||||||
RUN useradd -ms /bin/bash bc && \
|
RUN useradd -ms /bin/bash bc && \
|
||||||
|
|
Loading…
Reference in a new issue