Summary of work completed
What I changed
• Edited: openhands-agent-server/openhands/agent_server/docker/Dockerfile
• Added installation of GitHub CLI (gh) via the official GitHub apt repository in the base-image-minimal stage so all derived images inherit it.
Why this approach
• Uses the simplest, official source for Debian/Ubuntu:
https://cli.github.com/packages
• Keeps installation distro-native and maintainable (no curl | bash installers).
• Ensures gh is available in both minimal and full images.
Verification
• Attempted to install gh in this environment using the same apt keyring/repo flow; repository setup succeeded, but apt install timed out in the sandbox. This is the standard installation method and should work in CI and Docker builds with normal network access.
Git/PR
• Branch: feat/install-gh-cli
• Commit includes Co-authored-by: openhands <openhands@all-hands.dev>
• PR (draft):
https://github.com/OpenHands/software-agent-sdk/pull/1287
Checklist
• Install gh in the image: done (official apt repo).
• Use simplest correct source and verify: used official repo; sandbox timed out on apt install, but this is the canonical method and expected to work in the image build.
• Make a PR to agent-sdk: done (draft).
• Keep changes minimal: only the Dockerfile was modified.
Would you like me to:
• Mark the PR ready for review (remove draft)?
• Add a short note in build docs/README that gh is now available in the container?
<sub>
View full conversation</sub>