forked from FTCLib/FTCLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.Dockerfile
85 lines (72 loc) · 2.7 KB
/
.gitpod.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
FROM gitpod/workspace-full-vnc
USER gitpod
# Install custom tools, runtime, etc. using apt-get
# For example, the command below would install "bastet" - a command line tetris clone:
#
# RUN sudo apt-get -q update && # sudo apt-get install -yq bastet && # sudo rm -rf /var/lib/apt/lists/*
#
# More information: https://www.gitpod.io/docs/42_config_docker/
ENV ANDROID_HOME /opt/android-sdk-linux
USER root
RUN apt update -qq && apt install zip unzip
RUN cd /opt && \
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip && \
unzip -q *.zip -d ${ANDROID_HOME} && \
rm *.zip
RUN chmod -R 777 ${ANDROID_HOME}
RUN apt clean -qq
USER gitpod
ENV PATH ${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools
RUN bash -c "source ~/.sdkman/bin/sdkman-init.sh && \
sdk install java 8.0.232-open"
#RUN yes | sdkmanager --licenses
#RUN yes | sdkmanager --update --channel=3
# Please keep all sections in descending order!
#RUN yes | sdkmanager \
# "platforms;android-29" \
# "platforms;android-28" \
# "platforms;android-27" \
# "platforms;android-26" \
# "platforms;android-25" \
# "platforms;android-24" \
# "platforms;android-23" \
# "platforms;android-22" \
# "platforms;android-21" \
# "platforms;android-19" \
# "platforms;android-17" \
# "platforms;android-15" \
# "build-tools;29.0.2" \
# "build-tools;29.0.1" \
## "build-tools;29.0.0" \
# "build-tools;28.0.3" \
# "build-tools;28.0.2" \
# "build-tools;28.0.1" \
# "build-tools;28.0.0" \
# "build-tools;27.0.3" \
# "build-tools;27.0.2" \
# "build-tools;27.0.1" \
# "build-tools;27.0.0" \
# "build-tools;26.0.2" \
# "build-tools;26.0.1" \
# "build-tools;25.0.3" \
# "build-tools;24.0.3" \
# "build-tools;23.0.3" \
# "build-tools;22.0.1" \
# "build-tools;21.1.2" \
# "build-tools;19.1.0" \
# "build-tools;17.0.0" \
# "system-images;android-29;google_apis;x86" \
# "system-images;android-28;google_apis;x86" \
# "system-images;android-26;google_apis;x86" \
# "system-images;android-25;google_apis;armeabi-v7a" \
# "system-images;android-24;default;armeabi-v7a" \
# "system-images;android-22;default;armeabi-v7a" \
# "system-images;android-19;default;armeabi-v7a" \
# "extras;android;m2repository" \
# "extras;google;m2repository" \
# "extras;google;google_play_services" \
# "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2" \
# "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.1" \
# "add-ons;addon-google_apis-google-23" \
# "add-ons;addon-google_apis-google-22" \
# "add-ons;addon-google_apis-google-21"