mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 20:23:41 +08:00
90542a476c
CBL-Mariner ( https://github.com/micro…soft/azurelinux ) This resolves a Service360 alert caused by Ubuntu refusing to make a security patch publicly available for Ubuntu 22.04 LTS, see https://ubuntu.com/security/notices/USN-6472-1 . It seems likely that we will need to reconsider Ubuntu being our 'default' test environment following this type of behavior, since it's likely vcpkg customers will be similarly affected.
21 lines
977 B
Bash
21 lines
977 B
Bash
#!/bin/bash
|
|
# Copyright (c) Microsoft Corporation.
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
# This script is to set up the machine for the Docker host.
|
|
|
|
# This script is no longer used by official vcpkg testing due to an internal compliance effort
|
|
# requiring use of CBL-Mariner. It's still intended to be more or less identical to how the lab
|
|
# actually works though; everything meaningful is inside the Docker image; see Dockerfile
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
## Docker
|
|
apt-get -y --no-install-recommends install ca-certificates gnupg lsb-release
|
|
mkdir -p /etc/apt/keyrings
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
|
|
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
apt-get update
|
|
apt-get -y --no-install-recommends install docker-ce docker-ce-cli
|