aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/azure-pipelines/example-ubuntu-provision-for-docker.sh
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/azure-pipelines/example-ubuntu-provision-for-docker.sh
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/azure-pipelines/example-ubuntu-provision-for-docker.sh')
-rw-r--r--vcpkg/scripts/azure-pipelines/example-ubuntu-provision-for-docker.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/scripts/azure-pipelines/example-ubuntu-provision-for-docker.sh b/vcpkg/scripts/azure-pipelines/example-ubuntu-provision-for-docker.sh
new file mode 100644
index 0000000..ada5445
--- /dev/null
+++ b/vcpkg/scripts/azure-pipelines/example-ubuntu-provision-for-docker.sh
@@ -0,0 +1,20 @@
+#!/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