-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ci-incremental-caching
- Loading branch information
Showing
9 changed files
with
246 additions
and
147 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
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,29 @@ | ||
FROM ubuntu:20.04 | ||
|
||
ARG UNAME | ||
ARG UID | ||
ARG GID | ||
|
||
# Set non-interactive installation | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Update and install necessary packages | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
python2 \ | ||
build-essential \ | ||
libssl-dev \ | ||
bc \ | ||
python-is-python2 \ | ||
openssl && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN if [ ${UID:-0} -ne 0 ] && [ ${GID:-0} -ne 0 ]; then \ | ||
userdel -r `getent passwd ${UID} | cut -d : -f 1` > /dev/null 2>&1; \ | ||
groupdel -f `getent group ${GID} | cut -d : -f 1` > /dev/null 2>&1; \ | ||
groupadd -g ${GID} -o ${UNAME} && \ | ||
useradd -u $UID -g $GID ${UNAME} \ | ||
;fi | ||
|
||
# Set entrypoint to keep container running | ||
ENTRYPOINT ["tail", "-f", "/dev/null"] |
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,9 +1,20 @@ | ||
FROM ubuntu:24.04 | ||
|
||
ARG UNAME | ||
ARG UID | ||
ARG GID | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y android-sdk-libsparse-utils && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN if [ ${UID:-0} -ne 0 ] && [ ${GID:-0} -ne 0 ]; then \ | ||
userdel -r `getent passwd ${UID} | cut -d : -f 1` > /dev/null 2>&1; \ | ||
groupdel -f `getent group ${GID} | cut -d : -f 1` > /dev/null 2>&1; \ | ||
groupadd -g ${GID} -o ${UNAME} && \ | ||
useradd -u $UID -g $GID ${UNAME}; \ | ||
fi | ||
|
||
ENTRYPOINT ["tail", "-f", "/dev/null"] |
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.