Skip to content

Add GitLab CLI (glab) to all Docker images#7

Merged
f3l1x merged 1 commit into
masterfrom
claude/install-glab-gh-cli-fd7p2m
Jul 10, 2026
Merged

Add GitLab CLI (glab) to all Docker images#7
f3l1x merged 1 commit into
masterfrom
claude/install-glab-gh-cli-fd7p2m

Conversation

@f3l1x

@f3l1x f3l1x commented Jul 10, 2026

Copy link
Copy Markdown
Member

Summary

This PR adds GitLab CLI (glab) version 1.107.0 to all Coder enterprise Docker images, providing users with command-line access to GitLab functionality across all development environments.

Key Changes

  • Added GLAB_VERSION=1.107.0 environment variable to all Dockerfiles (fx, golang, nodejs, php, python)
  • Implemented installation of GitLab CLI via .deb package download and installation in all images
  • Updated README.md to document the addition of GitLab CLI
  • Added glab --version test case to Makefile to verify installation across all images

Implementation Details

  • GitLab CLI is installed using the official .deb package from GitLab's release repository
  • Installation uses architecture-agnostic approach via dpkg --print-architecture to support both amd64 and arm64
  • Temporary .deb file is cleaned up after installation to minimize image size
  • Installation is placed consistently before language-specific tools in each Dockerfile
  • Test verification ensures glab is available and functional in all image variants

https://claude.ai/code/session_01TMSoQMixhkck22hCQJxiqU

gh (GitHub CLI) was already installed via apt in every Dockerfile; add
glab by downloading the matching-arch .deb from GitLab's releases and
installing it with dpkg, following the same pattern used for the Go
tarball download. Cover it in the common Makefile test target and README.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TMSoQMixhkck22hCQJxiqU
@f3l1x f3l1x merged commit a966717 into master Jul 10, 2026
11 checks passed
@f3l1x f3l1x deleted the claude/install-glab-gh-cli-fd7p2m branch July 10, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants