https://github.com/itaru2622/docker-ghclient
github client container with gh-extensions and other tools
https://github.com/itaru2622/docker-ghclient
docker-image gh-extension gihub-cli github
Last synced: about 2 months ago
JSON representation
github client container with gh-extensions and other tools
- Host: GitHub
- URL: https://github.com/itaru2622/docker-ghclient
- Owner: itaru2622
- Created: 2024-11-30T23:42:53.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2026-04-22T22:02:28.000Z (2 months ago)
- Last Synced: 2026-04-23T00:07:12.595Z (2 months ago)
- Topics: docker-image, gh-extension, gihub-cli, github
- Language: Dockerfile
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker image for github ops
## tools/API for github ops
- gh command line tool: https://github.com/cli/cli
- gh extensions : https://github.com/topics/gh-extension
- REST API
- https://github.com/github/rest-api-description
- https://docs.github.com/en/rest?apiVersion=2022-11-28#all-docs
- GraphQL API : https://docs.github.com/en/graphql/reference
- MS Graph API: https://learn.microsoft.com/en-us/graph/overview
## preinstalled tools for github ops in prebuild image:
```
# gh extensions:
dlvhdr/gh-dash
gennaro-tedesco/gh-s
github.com/github/gh-es
github/gh-actions-importer
github/gh-gei
jrnxf/gh-eco
k1LoW/gh-grep
mislav/gh-repo-collab
mona-actions/gh-repo-stats
seachicken/gh-poi
timrogers/gh-migrate-project
# others:
curl
git
jq
@octokit with nodejs/typescript
powershell for gh-gei
yq
azure-cli, msgraph-cli for managing github EMU and Azure Entra ID.
pwgen, as password generator
githubCsvTools for import/export issues, from https://github.com/gavinr/github-csv-tools
msgraph-sdk-python
# and more such as ...
/opt/github-misc-scripts/* from https://github.com/joshjohanning/github-misc-scripts.git
```
## prepare before using
```bash
# FQDN(URL) and TOKEN for github/github enterprise
export GH_FQDN=github.com
export GH_PAT=your_valid_token_for_ops
```
## basic usage
```bash
# start docker container with bash
make start
# make sure gh is ready to use.
gh -h
# sign-in to github with gh
# case 1) use makefile
make login
# case 2) pure gh command
echo "${GH_PAT}" | gh auth login -p https -h ${GH_FQDN} --with-token
# then, you can ops any by gh
gh repo list
# sign-out from github
gh auth logout
```
## build docker image by yourself
```bash
make build GH_EXT_INSTALL_TOKEN=your_valid_token_for_github.com
```
## hints for github ops
bash scripts for github ops:
- https://github.com/joshjohanning/github-misc-scripts
gh client and its extensions:
- https://github.com/cli/cli
- https://github.com/topics/gh-extension
- https://github.com/github/gh-gei
Github REST API:
- https://docs.github.com/en/rest?apiVersion=2022-11-28#all-docs
Github GraphQL:
- https://docs.github.com/en/graphql/reference
- https://docs.github.com/en/graphql/guides/forming-calls-with-graphql
- https://docs.github.com/en/graphql/overview/explorer
- https://github.com/graphql/graphiql/tree/main
@octokit:
- https://github.com/octokit
githubCsvTools:
- https://github.com/gavinr/github-csv-tools
topics in github
- https://github.com/topics/gh-extension
- https://github.com/topics/github
- https://github.com/topics/github-api
- https://github.com/topics/github-api-v4
- https://github.com/topics/github-api-v3
Migration among Github Enterprises (Server and Cloud):
- https://docs.github.com/en/migrations/using-github-enterprise-importer/migrating-between-github-products/migrating-repositories-from-github-enterprise-server-to-github-enterprise-cloud?tool=cli
az(azure-cli):
- https://learn.microsoft.com/en-us/cli/azure/
- https://learn.microsoft.com/en-us/cli/azure/azure-cli-extensions-list
- https://github.com/topics/azure-cli
- https://github.com/topics/azure-cli-extension
MS Graph(mgc):
- https://learn.microsoft.com/en-us/graph/overview
- https://learn.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0&preserve-view=true
- https://github.com/microsoftgraph/microsoft-graph-docs-contrib
- https://learn.microsoft.com/en-us/graph/cli/installation?view=graph-rest-1.0&tabs=linux
- https://github.com/microsoftgraph/microsoft-graph-explorer-v4