1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00
catalog/task/dockerslim-build/0.1
Chitrang Patel 2d62db2482 Deprecate old and broken Tasks
This PR deprecates the old and broken Tasks because
they are now throwing errors. They are old and not
actively maintained which is why we decided to deprecate them.
2024-03-08 12:33:32 +00:00
..
samples Adds dockerslim-build sample task & test 2022-02-03 06:30:06 +00:00
tests Use latest git-clone in Task's tests 2023-09-22 09:32:22 +01:00
dockerslim-build.yaml Deprecate old and broken Tasks 2024-03-08 12:33:32 +00:00
README.md [TEP-0110] Update Tekton Catalog installation instructions 2022-08-16 16:25:52 +01:00

Docker

Dockerslim-Build

The Dockerslim Build task builds source into a container image using Dockerslim. This command executes the directives in the Dockerfile to assemble a container image, then pushes that image to a container registry.

Install the Docker Build Task

kubectl apply -f https://api.hub.tekton.dev/v1/resource/tekton/task/dockerslim-build/0.1/raw

Parameters

  • image: The name (reference) of the image to build.
  • builder_image: The name of the image containing the Dockerslim tool. See note below. (default: docker.io/docker:latest)
  • push_image: The name of the image containing the Docker tool. See note below. (default: docker.io/docker:latest)
  • dind_image: The name of the image used by docker-in-docker sidecar container (default: docker:dind).
  • dockerfile: The path to the Dockerfile to execute (default: ./Dockerfile)
  • context: Path to the directory to use as context (default: .)
  • push_extra_args: Extra parameters passed for the push command when pushing images. (default: "")

Workspaces

  • source: A Workspace volume containing the source to build.

Platforms

The Task can be run on linux/amd64 platform.

Usage

apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: docker
spec:
  params:
  - name: image
    value: localhost:5000/squid
  taskRef:
    name: dockerslim-build
  workspaces:
  - name: source
    persistentVolumeClaim:
      claimName: docker-source-pvc