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

Commit

Permalink
Update sdk env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
plastiv committed Feb 28, 2019
1 parent 977c3de commit 7830270
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions android-emulator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,14 @@ RUN cd /opt \
&& rm -f android-sdk.zip \
&& chown -R root.root android-sdk-linux

# Add enviroment variables
ENV ANDROID_HOME /opt/android-sdk-linux
# Path to .android folder with created avd files
ENV ANDROID_SDK_HOME /opt
# /tools - emulator (old), android, proguard
# /tools/bin - avdmanager, sdkmanager
# 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/
# /tools/bin - sdkmanager, avdmanager
# /platform-tools - adb
# /emulator - emulator, emulator64
ENV PATH ${ANDROID_HOME}/emulator:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools:${PATH}
# /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
Expand Down

0 comments on commit 7830270

Please sign in to comment.