-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use prebuilt base docker images for CI (#5327)
* Use prebuilt base docker images for CI * bump Catch dependency * code review feedback
- Loading branch information
1 parent
8039f4f
commit c687c56
Showing
9 changed files
with
79 additions
and
206 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,44 +1,2 @@ | ||
FROM ubuntu:20.04 | ||
|
||
ARG NDK_VERSION=r23 | ||
ARG CMAKE_VERSION=3.21.3 | ||
|
||
ENV DEBIAN_FRONTEND "noninteractive" | ||
|
||
# adb attempts to write under $HOME/.android but if the container is ran as a user other than root | ||
# as Jenkins does, this will fail | ||
ENV HOME /tmp | ||
|
||
# Locales | ||
RUN apt-get clean && apt-get update -qq && apt-get install -y locales && locale-gen en_US.UTF-8 | ||
ENV LANG "en_US.UTF-8" | ||
ENV LANGUAGE "en_US.UTF-8" | ||
ENV LC_ALL "en_US.UTF-8" | ||
|
||
# Keep the packages in alphabetical order to make it easy to avoid duplication | ||
RUN apt-get update -qq \ | ||
&& apt-get install -y adb \ | ||
build-essential \ | ||
git \ | ||
ninja-build \ | ||
unzip \ | ||
tar \ | ||
wget \ | ||
zip \ | ||
&& apt-get clean | ||
|
||
# Install CMake | ||
RUN cd /opt \ | ||
&& wget https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-linux-x86_64.tar.gz \ | ||
&& tar zxvf cmake-$CMAKE_VERSION-linux-x86_64.tar.gz \ | ||
&& rm -f cmake-$CMAKE_VERSION-linux-x86_64.tar.gz | ||
|
||
ENV PATH "/opt/cmake-$CMAKE_VERSION-linux-x86_64/bin:$PATH" | ||
|
||
# Install the NDK | ||
RUN cd /opt \ | ||
&& wget https://dl.google.com/android/repository/android-ndk-$NDK_VERSION-linux.zip \ | ||
&& unzip android-ndk-$NDK_VERSION-linux.zip \ | ||
&& rm -f android-ndk-$NDK_VERSION-linux.zip | ||
|
||
ENV ANDROID_NDK "/opt/android-ndk-$NDK_VERSION" | ||
# https://github.com/realm/ci/tree/master/realm/docker/build-android | ||
FROM ghcr.io/realm/ci/build-env-android-ndk:master |
This file was deleted.
Oops, something went wrong.
Submodule catch
updated
55 files
This file was deleted.
Oops, something went wrong.
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 @@ | ||
# https://github.com/realm/ci/tree/master/realm/docker/build-centos | ||
FROM ghcr.io/realm/ci/build-env-centos:master |
Oops, something went wrong.