Commit 2d38eba6 authored by MJDSys's avatar MJDSys

Update dockerfile to work with buster.

parent e50f197c
Pipeline #735 passed with stage
in 26 minutes and 3 seconds
# Installing openjdk 8 from backports
RUN apt-get -y update && apt-get install -y wget unzip openjdk-8-jdk-headless && rm /var/lib/apt/lists/* /var/cache/apt/* -rf
# Installing openjdk 11
RUN apt-get -y update && apt-get install --no-install-recommends -y wget unzip openjdk-11-jdk-headless libjaxb-java && rm /var/lib/apt/lists/* /var/cache/apt/* -rf
#Installing andriod sdk
#Installing android sdk
RUN cd /opt && mkdir android-sdk-linux && cd android-sdk-linux && mkdir add-ons platforms platform-tools temp
RUN cd /opt/android-sdk-linux && wget && unzip && rm -f
RUN cd /opt/android-sdk-linux && wget$SDK_TOOLS && unzip $SDK_TOOLS && rm $SDK_TOOLS
ENV ANDROID_HOME=/opt/android-sdk-linux PATH=$PATH:/opt/android-sdk-linux/tools:/opt/android-sdk-linux/platform-tools:/opt/android-sdk-linux/tools/bin
RUN yes |sdkmanager "build-tools;26.0.1" "platform-tools" "platforms;android-26" "extras;android;m2repository"
RUN sed '/^CLASSPATH=/a CLASSPATH=/usr/share/java/jaxb-api.jar:/usr/share/java/jaxb-impl.jar:/usr/share/java/jaxb-core.jar:/usr/share/java/jaxb-jxc.jar:/usr/share/java/jaxb-xjc.jar:/usr/share/java/javax.activation.jar:"$CLASSPATH"' -i /opt/android-sdk-linux/tools/bin/sdkmanager /opt/android-sdk-linux/tools/bin/avdmanager
RUN yes |sdkmanager "platform-tools" "extras;android;m2repository"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment