-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.latest
More file actions
38 lines (38 loc) · 1.42 KB
/
Dockerfile.latest
File metadata and controls
38 lines (38 loc) · 1.42 KB
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
FROM ghcr.io/hiway-media/teamcity-agent-latest
USER root
RUN apt-get update
RUN add-apt-repository ppa:longsleep/golang-backports
RUN apt-get -y install gitlab-cli unzip wget rsync sudo rclone build-essential curl golang
#
RUN go install go.uber.org/mock/mockgen@latest
# or install it into ./bin/
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s v2.4.0
#
# unzip wget nano
RUN wget https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip -O commandlinetools.zip
RUN mkdir -p ~/Android/Sdk/cmdline-tools
RUN unzip commandlinetools.zip -d ~/Android/Sdk/cmdline-tools
RUN mv ~/Android/Sdk/cmdline-tools/cmdline-tools ~/Android/Sdk/cmdline-tools/latest
#
RUN echo $PATH
ENV ANDROID_SDK_ROOT=/root/Android/Sdk
ENV PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
ENV PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
#
ARG ActualGoPath
RUN ActualGoPath=$(go env GOPATH) && echo "GOPATH è $ActualGoPath"
ENV PATH=$PATH:$ActualGoPath/bin
#
RUN cat ~/.bashrc
RUN . /root/.bashrc
#
RUN echo $PATH
##
RUN ls -l /root/Android/Sdk/cmdline-tools/latest/bin
RUN yes | /root/Android/Sdk/cmdline-tools/latest/bin/sdkmanager --licenses
#
#
RUN yes | /root/Android/Sdk/cmdline-tools/latest/bin/sdkmanager "platform-tools"
RUN yes | /root/Android/Sdk/cmdline-tools/latest/bin/sdkmanager "platforms;android-35"
RUN yes | /root/Android/Sdk/cmdline-tools/latest/bin/sdkmanager "build-tools;35.0.0"
#