No description
  • Go Template 82.5%
  • Go 13.5%
  • HCL 2.3%
  • Dockerfile 1.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Guillaume Lours b192fa4a2e
Merge pull request #22 from glours/fix/multiarch-cross-compile
fix: cross-compile binaries for the requested target platform
2026-07-07 22:04:09 +02:00
.github chore: pin Docker GitHub Actions to commit SHA 2026-06-03 19:54:04 +02:00
helm-templates Remove egress restriction from generated NetworkPolicy 2026-04-14 13:47:26 +02:00
templates Remove egress restriction from generated NetworkPolicy 2026-04-14 13:47:26 +02:00
.dockerignore fix: cross-compile binaries for the requested target platform 2026-07-07 21:40:32 +02:00
convert.go fix nil issue when user don't override their model env variables 2025-11-20 14:03:37 +01:00
docker-bake.hcl add dedicated targets for building local version of the images 2025-05-28 14:58:04 +02:00
Dockerfile fix: cross-compile binaries for the requested target platform 2026-07-07 21:40:32 +02:00
go.mod fix CVEs detected by Scout 2025-07-16 10:45:07 +02:00
go.sum fix CVEs detected by Scout 2025-07-16 10:45:07 +02:00
LICENSE CI 2025-05-27 10:48:43 +02:00
README.md add dedicated targets for building local version of the images 2025-05-28 14:58:04 +02:00

Compose Bridge Transformer Templates

This repository contains the default Go templates used by the Docker Compose team to generate transformer images for Docker Desktop's Kubernetes cluster integration.

Overview

The repository provides:

  • Base Transformer Image: A minimal image containing the core transformation binary.
  • Kubernetes Transformer Image: Includes templates for generating Kubernetes manifests from Compose files.
  • Helm Charts Transformer Image: Includes templates for generating Helm charts from Compose files.

Structure

  • templates/: Go templates for Kubernetes manifests.
  • helm-templates/: Go templates for Helm charts.
  • Dockerfile: Multi-stage build to produce the transformer images.

Usage

build the transfomer binary

go build -o /go/bin/transform

build the transformer base image for local architecture

docker bake -f docker-bake.hcl transformer_local

build the transformer base image for all architectures

docker bake -f docker-bake.hcl transformer_all

build the kubernetes transformer image for local architecture

docker bake -f docker-bake.hcl kubernetes_local

build the kubernetes transformer image for all architectures

docker bake -f docker-bake.hcl kubernetes_all

build the helm transformer image for local architecture

docker bake -f docker-bake.hcl helm_local

build the helm transformer image for all architectures

docker bake -f docker-bake.hcl helm_all

Docker Desktop

These templates are used internally by Docker Desktop to enable seamless conversion of Compose files to Kubernetes and deploy them into the internal Kubernetes cluster.

License

Licensed under the Apache License 2.0.