diff --git a/scripts/azure-pipelines/android/Dockerfile b/scripts/azure-pipelines/android/Dockerfile index 36cb3fd551..0e51a8bf63 100644 --- a/scripts/azure-pipelines/android/Dockerfile +++ b/scripts/azure-pipelines/android/Dockerfile @@ -1,55 +1,65 @@ -FROM ubuntu:20.04 -ENV DEBIAN_FRONTEND noninteractive - -RUN \ - apt-get update && \ - apt-get -y upgrade && \ - apt-get -y --no-install-recommends install git g++ wget curl zip vim \ - pkg-config tar cmake unzip ca-certificates - -# Download Android NDK -RUN \ - wget https://dl.google.com/android/repository/android-ndk-r25c-linux.zip && \ - unzip android-ndk-r25c-linux.zip && \ - rm -rf android-ndk-r25c-linux.zip - -ENV ANDROID_NDK_HOME /android-ndk-r25c - -# Download Powershell -RUN \ - wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb && \ - dpkg -i packages-microsoft-prod.deb && \ - rm -f packages-microsoft-prod.deb && \ - apt-get -y install software-properties-common && \ - apt-get update && \ - add-apt-repository universe && \ - apt-get -y install powershell - -RUN \ - apt-get -y --no-install-recommends install autoconf nasm bison python2 \ - flex build-essential libtool libtool-bin gettext automake autoconf-archive - -# python related -RUN \ - apt-get -y --no-install-recommends install python3-setuptools python3-pip python3-venv - -# freeglut -RUN \ - apt-get -y --no-install-recommends install libxi-dev libgl1-mesa-dev \ - libglu1-mesa-dev mesa-common-dev libxrandr-dev libxxf86vm-dev - -# glfw3 -RUN \ - apt-get -y --no-install-recommends install libxinerama-dev libxcursor-dev - -# required by qt5-base -RUN \ - apt-get -y --no-install-recommends install libxext-dev libxfixes-dev libxrender-dev \ - libxcb1-dev libx11-xcb-dev libxcb-glx0-dev libxcb-util0-dev \ - libxkbcommon-dev libxcb-keysyms1-dev \ - libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev \ - libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev \ - libxcb-render-util0-dev libxcb-xinerama0-dev libxcb-xkb-dev libxcb-xinput-dev \ - libxcb-cursor-dev libxkbcommon-x11-dev - -WORKDIR /vcpkg \ No newline at end of file +# syntax=docker/dockerfile:1.4 +FROM ubuntu:20.04 + +ADD https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb /packages-microsoft-prod.deb +ADD https://dl.google.com/android/repository/android-ndk-r25c-linux.zip /android-ndk-r25c-linux.zip + +# Add apt packages + +## vcpkg prerequisites +ENV APT_PACKAGES="git curl zip unzip tar" + +## Common build prereqs +ENV APT_PACKAGES="$APT_PACKAGES g++ vim pkg-config cmake ca-certificates" + +ENV APT_PACKAGES="$APT_PACKAGES autoconf nasm bison python2 flex build-essential libtool libtool-bin gettext automake autoconf-archive" + +## Python related +ENV APT_PACKAGES="$APT_PACKAGES python3-setuptools python3-pip python3-venv" + +## freeglut +ENV APT_PACKAGES="$APT_PACKAGES libxi-dev libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev libxrandr-dev libxxf86vm-dev" + +# glfw3 +ENV APT_PACKAGES="$APT_PACKAGES libxinerama-dev libxcursor-dev" + +# qt5-base +ENV APT_PACKAGES="$APT_PACKAGES libxext-dev libxfixes-dev libxrender-dev \ + libxcb1-dev libx11-xcb-dev libxcb-glx0-dev libxcb-util0-dev \ + libxkbcommon-dev libxcb-keysyms1-dev \ + libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev \ + libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev \ + libxcb-render-util0-dev libxcb-xinerama0-dev libxcb-xkb-dev libxcb-xinput-dev \ + libxcb-cursor-dev libxkbcommon-x11-dev" + +## PowerShell +ENV APT_PACKAGES="$APT_PACKAGES powershell" + +RUN < /dev/null apt-get update -apt-get -y --no-install-recommends install docker-ce docker-ce-cli \ No newline at end of file +apt-get -y --no-install-recommends install docker-ce docker-ce-cli diff --git a/scripts/azure-pipelines/azure-pipelines.yml b/scripts/azure-pipelines/azure-pipelines.yml index dd6094c4b9..97d382694d 100644 --- a/scripts/azure-pipelines/azure-pipelines.yml +++ b/scripts/azure-pipelines/azure-pipelines.yml @@ -6,7 +6,7 @@ variables: linux-pool: 'PrLin-1ES-Pool' windows-pool: 'PrWin-2023-10-11' osx-pool: 'PrOsx-2023-09-11' - linux-docker-image: 'andcontainerregistry.azurecr.io/vcpkg-android:2023-10-11' + linux-docker-image: 'andcontainerregistry.azurecr.io/vcpkg-android:2023-12-05' parameters: - name: vcpkgToolSha