|
|
@ -2,7 +2,7 @@ FROM ubuntu:20.04 |
|
|
|
|
|
|
|
|
|
|
|
# Arguments that can be overridden in 'docker build' command: |
|
|
|
# Arguments that can be overridden in 'docker build' command: |
|
|
|
# Versions of Android SDK and NDK. The CMake is installed via NDK. |
|
|
|
# Versions of Android SDK and NDK. The CMake is installed via NDK. |
|
|
|
ARG VERSION_SDK=6609375 |
|
|
|
ARG VERSION_SDK=6858069 |
|
|
|
ARG VERSION_NDK=21.3.6528147 |
|
|
|
ARG VERSION_NDK=21.3.6528147 |
|
|
|
ARG VERSION_CMAKE=3.10.2.4988404 |
|
|
|
ARG VERSION_CMAKE=3.10.2.4988404 |
|
|
|
|
|
|
|
|
|
|
@ -46,7 +46,7 @@ RUN mkdir -p ${HOME_TWIN}/android-sdk && \ |
|
|
|
rm ${HOME_TWIN}/android-sdk.zip |
|
|
|
rm ${HOME_TWIN}/android-sdk.zip |
|
|
|
|
|
|
|
|
|
|
|
# Installing components through the Android SDK |
|
|
|
# Installing components through the Android SDK |
|
|
|
RUN installAndroidComponent() { yes | ${ANDROID_SDK_HOME}/tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_HOME} "$1" > /dev/null; } && \ |
|
|
|
RUN installAndroidComponent() { yes | ${ANDROID_SDK_HOME}/cmdline-tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_HOME} "$1" > /dev/null; } && \ |
|
|
|
installAndroidComponent "ndk;${VERSION_NDK}" && \ |
|
|
|
installAndroidComponent "ndk;${VERSION_NDK}" && \ |
|
|
|
installAndroidComponent "cmake;${VERSION_CMAKE}" |
|
|
|
installAndroidComponent "cmake;${VERSION_CMAKE}" |
|
|
|
|
|
|
|
|
|
|
|