mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-18 04:06:19 +00:00
build: update android sdk (use api 30)
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -6,23 +6,24 @@ LABEL version="2.0.0" \
|
||||
maintainer="Jovan Krunić <krunic@uni-frankfurt.de>"
|
||||
|
||||
### Configure versions to install
|
||||
ENV ANDROID_APIS="android-26" \
|
||||
ANDROID_BUILD_TOOLS_VERSION="26.0.2" \
|
||||
ENV ANDROID_APIS="android-30" \
|
||||
ANDROID_BUILD_TOOLS_VERSION="30.0.2" \
|
||||
NPM_VERSION="latest" \
|
||||
IONIC_VERSION="^6.0.0" \
|
||||
CORDOVA_VERSION="^9.0.0" \
|
||||
### Configure download URLs
|
||||
ANDROID_SDK_TOOLS_DOWNLOAD_URL="https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip" \
|
||||
ANDROID_SDK_TOOLS_DOWNLOAD_URL="https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip" \
|
||||
GOOGLE_SIGNING_KEY_URL="https://dl-ssl.google.com/linux/linux_signing_key.pub" \
|
||||
GOOGLE_CHROME_REPOSITORY_URL="http://dl.google.com/linux/chrome/deb/" \
|
||||
### Android SDK path
|
||||
ANDROID_HOME="/opt/android-sdk" \
|
||||
ANDROID_SDK_ROOT="/opt/android-sdk" \
|
||||
### Installation files
|
||||
SCRIPTS_DIRECTORY="scripts" \
|
||||
NODE_SETUP_SCRIPT="node_setup.sh"
|
||||
|
||||
### Set $PATH
|
||||
ENV PATH=$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/$ANDROID_BUILD_TOOLS_VERSION:$PATH
|
||||
#ENV PATH=$ANDROID_SDK_ROOT/cmdline-tools/:$ANDROID_SDK_ROOT/cmdline-tools/bin:$ANDROID_SDK_ROOT/platform-tools:$ANDROID_SDK_ROOT/build-tools/$ANDROID_BUILD_TOOLS_VERSION:$PATH
|
||||
ENV PATH=$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/cmdline-tools/tools/bin:$ANDROID_SDK_ROOT/platform-tools:$ANDROID_SDK_ROOT/build-tools/$ANDROID_BUILD_TOOLS_VERSION:$PATH
|
||||
|
||||
### Replace shell with bash
|
||||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh && \
|
||||
@@ -74,15 +75,15 @@ RUN apt-get update -y && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
### Workaround to fix cacerts problem (Ubuntu):
|
||||
### https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty)
|
||||
### https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty
|
||||
RUN rm /etc/ssl/certs/java/cacerts && \
|
||||
update-ca-certificates -f
|
||||
|
||||
### Install android
|
||||
RUN curl $ANDROID_SDK_TOOLS_DOWNLOAD_URL > /tmp/android-sdk.zip && \
|
||||
unzip /tmp/android-sdk.zip && \
|
||||
mkdir -p $ANDROID_HOME && \
|
||||
mv tools $ANDROID_HOME && \
|
||||
mkdir -p $ANDROID_SDK_ROOT/cmdline-tools && \
|
||||
mv cmdline-tools $ANDROID_SDK_ROOT/cmdline-tools/tools && \
|
||||
### Add licences (for "auto-accept licenses")
|
||||
yes | sdkmanager --licenses && \
|
||||
### Install platform tools
|
||||
|
||||
Reference in New Issue
Block a user