Skip to content

feat: [CI-21188]: fix alpine deps#327

Open
spahuja-harness wants to merge 16 commits intotmate-io:masterfrom
harness:ci-21188-fix-alpine-deps
Open

feat: [CI-21188]: fix alpine deps#327
spahuja-harness wants to merge 16 commits intotmate-io:masterfrom
harness:ci-21188-fix-alpine-deps

Conversation

@spahuja-harness
Copy link
Copy Markdown

@spahuja-harness spahuja-harness commented Mar 3, 2026

  • ✅ tmate: Helm chart added, Debian-based build working

HenAmar and others added 15 commits March 20, 2023 14:07
Adding account id as tmate user
Set basic image to compile from
Add support for building tmate Docker images via Harness CI pipeline.
Tmate is a C-based terminal sharing application (tmux fork).

Changes:
- Created docker/Dockerfile-tmate for building binary images
  * Multi-stage build using GAR Alpine 3.21
  * Builds libssh and tmate with static linking
  * Scratch-based final image with binary at /binaries/tmate
  * Includes build metadata labels
- Added config/manifest.yaml for Harness CI pipeline integration

This enables building harness/harness-vm-runner-tmate images that will be
bundled into harness-vm-runner-binaries for VM injection.

Note: Tmate is a C project and does not use Go versioning patterns.
Version is managed via configure.ac (autotools).
feat: [CI-21188]: Add Dockerfile for tmate binary for Harness CI builds
…3.21

- Remove libexecinfo, libexecinfo-dev, libexecinfo-static packages
- These packages were removed in Alpine 3.21
- tmate builds successfully without them as backtrace functionality is not critical
- Switch from Alpine to Debian Bullseye for better C library compatibility
- Build libssh 0.10.6 from source with GSSAPI disabled
- Use dynamic linking instead of static to avoid compat library issues
- Create forkpty-linux.c stub for build system compatibility
- Include runtime dependencies in final image (libevent, libssh, etc)
- Successfully builds tmate 2.4.0 binary
- Create dummy Helm chart in chart/ directory
- Chart contains only metadata, no deployable resources
- Add HELM_CHART_SOURCE_DIRECTORY to manifest.yaml
- Chart exists solely to satisfy build pipeline requirements for binary-only services
@spahuja-harness spahuja-harness changed the title Ci 21188 fix alpine deps feat: [CI-21188]: fix alpine deps Mar 3, 2026
- Upgrade from Debian Bullseye to Bookworm for security improvements
- Reduces vulnerabilities to only 3 (all unfixable/recent)
- Grype scan: 0 fixable vulnerabilities
- Trivy scan: 1 CRITICAL (will_not_fix MiniZip), 2 HIGH (no patch yet)
- Bookworm provides updated OpenSSL, zlib, and other packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants