Skip to content

Commit

Permalink
fga-eps-mds#175 - Adding dockerfile with android sdk
Browse files Browse the repository at this point in the history
Co-authored-by: SabinoGs <[email protected]>
Co-authored-by: Ronyell <[email protected]>
Co-authored-by: ThalissonMelo <[email protected]>
  • Loading branch information
3 people committed Jun 12, 2018
1 parent 6fb5b98 commit 6b51508
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions DockerTeste/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM java:8

#In Host-Terminal exec this command: sudo xhost +local:docker

# Intall unzip
RUN apt-get install unzip

# Install SDK
RUN mkdir /app/
WORKDIR /app/
RUN wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip -P /app/
RUN unzip /app/sdk-tools-linux-3859397.zip -d android-sdk-linux

# ENV JAVA_HOME="/opt/jdk1.8.0_171"
ENV PATH="$PATH:${JAVA_HOME}/bin"
ENV ANDROID_HOME=/app/android-sdk-linux
ENV ANDROID_SDK_ROOT=/app/android-sdk-linux
ENV PATH=$PATH:$ANDROID_HOME/tools
ENV PATH=$PATH:$ANDROID_HOME/platform-tools
ENV PATH=$PATH:$ANDROID_HOME/tools/bin

RUN yes | sdkmanager --licenses

RUN yes | $ANDROID_HOME/tools/bin/sdkmanager "tools"

RUN echo "y" | android update sdk


RUN $ANDROID_HOME/tools/bin/sdkmanager "platforms;android-25"
RUN $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-25;google_apis;x86"

# Create AVD
RUN $ANDROID_HOME/tools/bin/avdmanager create avd\
-n android-emulator\
-k "system-images;android-25;google_apis;x86"\
--device "Nexus 5"\
--sdcard 100M

0 comments on commit 6b51508

Please sign in to comment.