-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
797 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.idea | ||
.idea/ | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,47 @@ | ||
FROM ubuntu:latest | ||
FROM ubuntu:22.04 | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
ARG SDK_VERSION=34.0.0 | ||
ENV ANDROID_HOME /opt/android-sdk-linux | ||
ENV ANDROID_SDK_HOME ${ANDROID_HOME} | ||
ENV ANDROID_SDK_ROOT ${ANDROID_HOME} | ||
ENV ANDROID_SDK ${ANDROID_HOME} | ||
LABEL de.mindrunner.android-docker.flavour="ubuntu-standalone" | ||
|
||
ENV PATH "${PATH}:${ANDROID_HOME}/cmdline-tools/latest/bin" | ||
ENV PATH "${PATH}:${ANDROID_HOME}/cmdline-tools/tools/bin" | ||
ENV PATH "${PATH}:${ANDROID_HOME}/tools/bin" | ||
ENV PATH "${PATH}:${ANDROID_HOME}/build-tools/${SDK_VERSION}" | ||
ENV PATH "${PATH}:${ANDROID_HOME}/platform-tools" | ||
ENV PATH "${PATH}:${ANDROID_HOME}/emulator" | ||
ENV PATH "${PATH}:${ANDROID_HOME}/bin" | ||
ENV ANDROID_SDK_HOME /opt/android-sdk-linux | ||
ENV ANDROID_SDK_ROOT /opt/android-sdk-linux | ||
ENV ANDROID_HOME /opt/android-sdk-linux | ||
ENV ANDROID_SDK /opt/android-sdk-linux | ||
|
||
RUN dpkg --add-architecture i386 && \ | ||
apt-get update -yqq && \ | ||
apt-get install -y curl expect git libc6:i386 libgcc1:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386 openjdk-17-jdk wget unzip vim sudo && \ | ||
apt-get clean | ||
ENV PATH $PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/cmdline-tools/latest/bin/:$ANDROID_HOME/build-tools/35.0.0/:$ANDROID_HOME/emulator/:$ANDROID_HOME/bin:/opt/tools | ||
|
||
RUN bash -c "$(curl -fsSL https://deb.nodesource.com/setup_21.x)" && \ | ||
apt-get install -y nodejs | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN groupadd android && useradd -d /opt/android-sdk-linux -g android android | ||
RUN dpkg --add-architecture i386 && apt-get update -yqq && apt-get install -y \ | ||
curl \ | ||
expect \ | ||
git \ | ||
libarchive-tools \ | ||
locales \ | ||
make \ | ||
openjdk-17-jdk \ | ||
openssh-client \ | ||
unzip \ | ||
vim \ | ||
wget \ | ||
zip \ | ||
dos2unix \ | ||
apksigner \ | ||
golang \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \ | ||
&& go install github.com/tcnksm/ghr@latest | ||
|
||
ENV LANG en_US.UTF-8 | ||
|
||
RUN groupadd android && useradd -d /opt/android-sdk-linux -g android -u 1000 android | ||
|
||
COPY tools /opt/tools | ||
|
||
COPY licenses /opt/licenses | ||
|
||
WORKDIR /opt/android-sdk-linux | ||
|
||
RUN /opt/tools/entrypoint.sh built-in | ||
|
||
RUN /opt/android-sdk-linux/cmdline-tools/tools/bin/sdkmanager "cmdline-tools;latest" | ||
RUN /opt/android-sdk-linux/cmdline-tools/tools/bin/sdkmanager "build-tools;${SDK_VERSION}" | ||
RUN /opt/android-sdk-linux/cmdline-tools/tools/bin/sdkmanager "platform-tools" | ||
RUN /opt/android-sdk-linux/cmdline-tools/tools/bin/sdkmanager "platforms;android-30" | ||
RUN /opt/android-sdk-linux/cmdline-tools/tools/bin/sdkmanager "system-images;android-30;google_apis;x86_64" | ||
RUN entrypoint.sh built-in | ||
|
||
CMD /opt/tools/entrypoint.sh built-in | ||
CMD entrypoint.sh built-in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
601085b94cd77f0b54ff86406957099ebe79c4d6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
|
||
8933bad161af4178b1185d1a37fbf41ea5269c55 | ||
d56f5187479451eabf01fb78af6dfcb131a6481e | ||
24333f8a63b6825ea9c5514f83c2829b004d1fee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
84831b9409646a918e30573bab4c9c91346d8abd | ||
84831b9409646a918e30573bab4c9c91346d8abd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
33b6a2b64607f11b759f320ef9dff4ae5c47d97a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
e9acab5b5fbb560a72cfaecce8946896ff6aab9d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.