Skip to content

Instantly share code, notes, and snippets.

@frapontillo
Last active October 25, 2015 14:01
Show Gist options
  • Save frapontillo/c20c616662ec02497451 to your computer and use it in GitHub Desktop.
Save frapontillo/c20c616662ec02497451 to your computer and use it in GitHub Desktop.
Android on Docker
FROM frapontillo/java:7
MAINTAINER Francesco Pontillo <[email protected]>
WORKDIR /opt/
RUN wget http://dl.google.com/android/android-sdk_r24.3.4-linux.tgz
RUN tar -xvf android-sdk_r24.3.4-linux.tgz
RUN mv android-sdk-linux android-sdk && \
rm android-sdk_r24.3.4-linux.tgz
ENV ANDROID_HOME /opt/android-sdk
ENV PATH $PATH:$ANDROID_HOME/tools
ENV PATH $PATH:$ANDROID_HOME/platform-tools
RUN echo y | sudo android update sdk --no-ui --all --filter tools,platform-tools
# this will prompt a "android: command not found"
RUN android --help
# this will print nothing
RUN ls /opt/android-sdk/tools
@lidemin
Copy link

lidemin commented Oct 25, 2015

Hi Francesco, have you solved issue https://code.google.com/p/android/issues/detail?id=183131 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment