Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Jones <kevin@vcsjones.com>2022-07-16 04:27:22 +0300
committerGitHub <noreply@github.com>2022-07-16 04:27:22 +0300
commit7d034ddbbbe1f2f40c264b323b3ed3d6b3d45e9a (patch)
tree1875f5ea4e8d3c8d9e74d0e8022a0351ec14a4cb /.devcontainer
parent0937f26eeb36956d13313e659fd0253ed5cd6a71 (diff)
Add the GitHub CLI to the Codespaces container (#72287)
* Add the GitHub CLI to the Codespaces container * More closely follow existing public docs.
Diffstat (limited to '.devcontainer')
-rw-r--r--.devcontainer/Dockerfile10
1 files changed, 8 insertions, 2 deletions
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index 436beacbff7..54f5f2ff58b 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -5,12 +5,18 @@
ARG VARIANT="6.0-focal"
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0-${VARIANT}
-# Set up machine requirements to build the repo
+# Setup the gh (GitHub) CLI signing key.
+RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && \
+ chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg && \
+ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
+
+# Set up machine requirements to build the repo and the gh CLI
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends cmake llvm-10 clang-10 \
build-essential python curl git lldb-6.0 liblldb-6.0-dev \
libunwind8 libunwind8-dev gettext libicu-dev liblttng-ust-dev \
- libssl-dev libnuma-dev libkrb5-dev zlib1g-dev ninja-build
+ libssl-dev libnuma-dev libkrb5-dev zlib1g-dev ninja-build \
+ gh
# Install V8 Engine
SHELL ["/bin/bash", "-c"]