Sign inSign up

reduardo7/opencode

By reduardo7

•Updated about 8 hours ago

Official OpenCode image with basic tools.

Image
Machine learning & AI
Developer tools
0

10K+

reduardo7/opencode repository overview

⁠OpenCode Docker

Docker image for opencode⁠ with dynamic configuration support for Git CLI tools.

Built on top of the official OpenCode image⁠ and automatically rebuilt when a new upstream version is published.

Includes:

  • git — version control
  • gh — GitHub CLI
  • glab — GitLab CLI

⁠Environment variables

VariableToolDescription
GIT_USER_NAMEgitCommit user name
GIT_USER_EMAILgitCommit email
GH_TOKENghGitHub authentication token
GH_GIT_PROTOCOLghGit protocol (ssh or https)
GLAB_TOKENglabGitLab authentication token
GLAB_GIT_PROTOCOLglabGit protocol (ssh or https)
GIT_SSH_KEYgitPrivate SSH key for Git authentication

⁠Usage

⁠Pull the image
docker pull reduardo7/opencode:latest
⁠Build locally (optional)
docker build -t opencode-docker .
⁠Basic example
docker run -it --rm \
  -e GIT_USER_NAME="Your Name" \
  -e GIT_USER_EMAIL="[email protected]" \
  reduardo7/opencode:latest
⁠With GitHub authentication
docker run -it --rm \
  -e GIT_USER_NAME="Your Name" \
  -e GIT_USER_EMAIL="[email protected]" \
  -e GH_TOKEN="ghp_yourToken" \
  -e GH_GIT_PROTOCOL="ssh" \
  reduardo7/opencode:latest
⁠With GitLab authentication
docker run -it --rm \
  -e GIT_USER_NAME="Your Name" \
  -e GIT_USER_EMAIL="[email protected]" \
  -e GLAB_TOKEN="glpat-yourToken" \
  -e GLAB_GIT_PROTOCOL="ssh" \
  reduardo7/opencode:latest
⁠With SSH key (without gh or glab)
docker run -it --rm \
  -e GIT_USER_NAME="Your Name" \
  -e GIT_USER_EMAIL="[email protected]" \
  -e GIT_SSH_KEY="$(cat ~/.ssh/id_ed25519)" \
  ghcr.io/reduardo7/opencode:latest

Tag summary

Content type

Image

Digest

sha256:7ae5b75b8…

Size

110.6 MB

Last updated

about 8 hours ago

docker pull reduardo7/opencode