From 0a82aaaa4d4f4728d8f69c4ca4c80f4b3a0478c9 Mon Sep 17 00:00:00 2001 From: Snigdhajyoti Ghosh Date: Fri, 26 Apr 2024 15:57:52 +0530 Subject: [PATCH] add ghcli --- ghcli/Dockerfile | 22 ++++++++++++++++++++++ ghcli/docs/README.md | 1 + ghcli/docs/short_description.txt | 1 + 3 files changed, 24 insertions(+) create mode 100644 ghcli/Dockerfile create mode 100644 ghcli/docs/README.md create mode 100644 ghcli/docs/short_description.txt diff --git a/ghcli/Dockerfile b/ghcli/Dockerfile new file mode 100644 index 0000000..50f2e74 --- /dev/null +++ b/ghcli/Dockerfile @@ -0,0 +1,22 @@ +FROM debian:bookworm-slim + +RUN set -ex; \ + apt-get update ; \ + apt-get install -y --no-install-recommends \ + ca-certificates \ + curl \ + git; \ + rm -rf /var/lib/apt/lists/* + +ENV GITHUB_CLI_VERSION 2.48.0 + +RUN set -ex; \ + curl -L "https://github.com/cli/cli/releases/download/v${GITHUB_CLI_VERSION}/gh_${GITHUB_CLI_VERSION}_checksums.txt" -o checksums.txt; \ + curl -OL "https://github.com/cli/cli/releases/download/v${GITHUB_CLI_VERSION}/gh_${GITHUB_CLI_VERSION}_linux_amd64.deb"; \ + shasum --ignore-missing -a 512 -c checksums.txt; \ + dpkg -i "gh_${GITHUB_CLI_VERSION}_linux_amd64.deb"; \ + rm -rf "gh_${GITHUB_CLI_VERSION}_linux_amd64.deb"; \ + # verify gh binary works + gh --version; + +CMD ["gh"] \ No newline at end of file diff --git a/ghcli/docs/README.md b/ghcli/docs/README.md new file mode 100644 index 0000000..6203a32 --- /dev/null +++ b/ghcli/docs/README.md @@ -0,0 +1 @@ +Welcome to GitHub Cli \ No newline at end of file diff --git a/ghcli/docs/short_description.txt b/ghcli/docs/short_description.txt new file mode 100644 index 0000000..ba82258 --- /dev/null +++ b/ghcli/docs/short_description.txt @@ -0,0 +1 @@ +Your GitHub cli docker image \ No newline at end of file