Skip to content

Evaluate Shipright for container image builds with minimal YAML configuration. #525

Closed

Description

@pdettori
No description provided.

Activity

  1. pdettori commented on Jan 16, 2026

    @pdettori
    MemberAuthor

    Initial Evaluation:

    • installed Shipwright on kind using the direct install method
    • Webhook did not start because certificate was not automatically generated by cert manager. To investigate if this depends on the installation method (direct vs OLM)
    • workaround was to run this script to generate the certificate
    • After that the webhook started and I was able to start testing builds.

    Here are the conclusions:

    • Very customizable, I was able to create a configuration that allow to operate the same way as the agentbuild is used in the UI.
    • We should be able to do a total replacement of the agentbuild and use this also for the MCP servers.
  2. pdettori commented on Jan 16, 2026

    @pdettori
    MemberAuthor

    Summary: Working Shipwright Configuration

    Here's the complete working setup:

    1. Custom ClusterBuildStrategy (for insecure registries)
    apiVersion: shipwright.io/v1beta1
    kind: ClusterBuildStrategy
    metadata:
      name: buildah-insecure-push
    spec:
      parameters:
        - name: dockerfile
          type: string
          default: Dockerfile
        - name: build-args
          type: array
          defaults: []
        - name: registries-insecure
          type: array
          defaults: []
        - name: storage-driver
          type: string
          default: vfs
      securityContext:
        runAsUser: 0
        runAsGroup: 0
      steps:
        - name: build-and-push
          image: quay.io/containers/buildah:v1.37.5
          workingDir: $(params.shp-source-root)
          securityContext:
            capabilities:
              add: [SETFCAP]
          command: [/bin/bash]
          args:
            - -c
            - |
              set -euo pipefail
              buildah --storage-driver=$(params.storage-driver) bud \
                -f "$(params.shp-source-context)/$(params.dockerfile)" \
                -t "$(params.shp-output-image)" \
                "$(params.shp-source-context)"
              buildah --storage-driver=$(params.storage-driver) push \
                --tls-verify=false \
                "$(params.shp-output-image)" \
                "docker://$(params.shp-output-image)"
          resources:
            limits: {cpu: "1", memory: 2Gi}
            requests: {cpu: 250m, memory: 256Mi}
    1. Git Credentials Secret (basic-auth format)
    apiVersion: v1
    kind: Secret
    metadata:
      name: github-shipwright-secret
      namespace: team1
    type: kubernetes.io/basic-auth
    stringData:
      username: <git-username>
      password: <git-token>
    1. Build Resource
    apiVersion: shipwright.io/v1beta1
    kind: Build
    metadata:
      name: weather-service-build
      namespace: team1
      labels:
        kagenti.io/framework: LangGraph
        kagenti.io/type: agent
        kagenti.io/protocol: a2a
    spec:
      source:
        type: Git
        git:
          url: https://github.com/kagenti/agent-examples.git
          revision: main
          cloneSecret: github-shipwright-secret
        contextDir: a2a/weather_service
      strategy:
        name: buildah-insecure-push
        kind: ClusterBuildStrategy
      paramValues:
        - name: dockerfile
          value: Dockerfile
      output:
        image: registry.cr-system.svc.cluster.local:5000/weather-service:v0.0.2
      timeout: 15m
      retention:
        succeededLimit: 5
        failedLimit: 3
    1. Trigger Build with BuildRun
    apiVersion: shipwright.io/v1beta1
    kind: BuildRun
    metadata:
      generateName: weather-service-build-
      namespace: team1
    spec:
      build:
        name: weather-service-build

    Key Differences from AgentBuild

    ┌────────────────────────────────────┬───────────────────────────────────────────────┐
    │             AgentBuild             │                  Shipwright                   │
    ├────────────────────────────────────┼───────────────────────────────────────────────┤
    │ Custom Tekton pipeline             │ ClusterBuildStrategy                          │
    ├────────────────────────────────────┼───────────────────────────────────────────────┤
    │ sourceCredentials with token/user  │ cloneSecret with kubernetes.io/basic-auth     │
    ├────────────────────────────────────┼───────────────────────────────────────────────┤
    │ Auto-triggers on creation          │ Requires separate BuildRun                    │
    ├────────────────────────────────────┼───────────────────────────────────────────────┤
    │ Internal insecure registry support │ Needs custom strategy with --tls-verify=false │
    └────────────────────────────────────┴───────────────────────────────────────────────┘
    
  3. added theissue type on Jan 16, 2026
  4. pdettori commented on Jan 20, 2026

    @pdettori
    MemberAuthor

    Works for our purposes so we can move to next tasks in epic #523

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions