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

Commit

Permalink
Parameterize sdk archive version
Browse files Browse the repository at this point in the history
  • Loading branch information
plastiv committed Mar 14, 2019
1 parent 248f91a commit 26649bc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions android-emulator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM debian:stretch
# Default to UTF-8 file.encoding
ENV LANG C.UTF-8

# Install java and android (emulator) dependencies
# Download java and android (emulator) dependencies
# to debug missing lib issues use ldconfig -p | grep libGL
# Dev deps are taken from https://source.android.com/source/initializing#installing-required-packages-ubuntu-1404
RUN DEBIAN_FRONTEND=noninteractive \
Expand Down Expand Up @@ -51,10 +51,11 @@ RUN DEBIAN_FRONTEND=noninteractive \
&& rm -rf /var/lib/apt/lists/*
# http://stackoverflow.com/a/37604675/624706

# Download and extract AndroidSDK
# Download basic Android command line tools
# Get latest version name from https://developer.android.com/studio/index.html#downloads
ENV SDK_ARCHIVE_VERSION=4333796
RUN cd /opt \
&& wget --output-document=android-sdk.zip --quiet https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip \
&& wget --output-document=android-sdk.zip --quiet https://dl.google.com/android/repository/sdk-tools-linux-${SDK_ARCHIVE_VERSION}.zip \
&& unzip -q android-sdk.zip -d android-sdk-linux \
&& rm -f android-sdk.zip \
&& chown -R root.root android-sdk-linux
Expand Down

0 comments on commit 26649bc

Please sign in to comment.