mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 20:02:42 +08:00
ba1465e584
* Cherry-pick infrastructure changes from https://github.com/microsoft/vcpkg/pull/36081 as authored by @dg0yt * Suppress warnings for the monthly docker mint as suggested by Toddy Mladenov ( MS internal conversation https://teams.microsoft.com/l/message/19:f498f444e97f40b2a2027d015a9047ab@thread.tacv2/1707520630587?tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&groupId=2080ccbe-0cfb-49e6-a9c1-ea6a6bf82722&parentMessageId=1707520630587&teamName=Containers%20Secure%20Supply%20Chain&channelName=3P%20Registry%20and%20Images%20Guidance&createdTime=1707520630587 ) * Move Azure Container Registry for Android to WestUS3; with this we are officially entirely within one Azure region again :D * Explicitly grant Azure DevOps permissions to touch the scale set rather than relying on subscription-level assignments.
67 lines
2.0 KiB
Docker
67 lines
2.0 KiB
Docker
# syntax=docker/dockerfile:1.4
|
|
# DisableDockerDetector "Used to build the container deployed to Azure Container Registry"
|
|
FROM ubuntu:focal-20240123
|
|
|
|
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 <<END_OF_SCRIPT bash
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Apt prereqs itself
|
|
apt-get -y update
|
|
apt-get -y --no-install-recommends install ca-certificates
|
|
|
|
# Add apt repos
|
|
|
|
## PowerShell
|
|
dpkg -i packages-microsoft-prod.deb
|
|
rm -f packages-microsoft-prod.deb
|
|
add-apt-repository universe
|
|
|
|
# Run apt things
|
|
apt-get -y update
|
|
apt-get -y dist-upgrade
|
|
|
|
apt-get -y --no-install-recommends install $APT_PACKAGES
|
|
|
|
# Android NDK
|
|
unzip /android-ndk-r25c-linux.zip
|
|
rm -f android-ndk-r25c-linux.zip
|
|
END_OF_SCRIPT
|
|
|
|
ENV ANDROID_NDK_HOME /android-ndk-r25c
|
|
|
|
WORKDIR /vcpkg
|