Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Suppress output from apt-get and don't print android license
Browse files Browse the repository at this point in the history
  • Loading branch information
plastiv committed Feb 28, 2019
1 parent 08103d8 commit 107102a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions android-emulator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ RUN DEBIAN_FRONTEND=noninteractive \
xsltproc \
zip \
zlib1g-dev \
&& apt-get clean --quiet
&& apt-get clean --quiet >/dev/null
# http://stackoverflow.com/a/37604675/624706

# Set the locale
Expand All @@ -70,15 +70,15 @@ RUN cd /opt \
# Add enviroment variables
# https://developer.android.com/studio/command-line/variables#envar
ENV ANDROID_SDK_ROOT /opt/android-sdk-linux
ENV ANDROID_SDK_HOME ${ANDROID_SDK_ROOT}/.home/
ENV ANDROID_SDK_HOME ${ANDROID_SDK_ROOT}/sdk-home
# /tools/bin - sdkmanager, avdmanager
# /platform-tools - adb
# /emulator - emulator, emulator-check
ENV PATH ${ANDROID_SDK_ROOT}/emulator:${ANDROID_SDK_ROOT}/tools/bin:${ANDROID_SDK_ROOT}/platform-tools:${PATH}

# Update AndroidSDK
# Get ids from sdkmanager --list
RUN yes | sdkmanager --licenses
RUN yes | sdkmanager --licenses >/dev/null
RUN echo "y" | sdkmanager "build-tools;${BUILD_TOOLS_VERSION}" \
"emulator" \
"platform-tools" \
Expand Down

0 comments on commit 107102a

Please sign in to comment.