1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00
catalog/task/docker-build/0.1
popcor255 a9600e084a [Fixes #481] remove add registry sidecar from docker-build tests
The end to end test attaches a sidecar with a image registry for tasks to push into to. However, the function add_sidecar_registry sets the sidecar registry instead of appending it. Removing the function from test to remove this bug. There is a local registry being added to the test that is deployed with deployment and svc. The svc is referenced during the test instead of the sidecar. #481
2020-08-31 15:25:12 +01:00
..
samples Add docker-build task 2020-07-24 10:09:01 +01:00
tests [Fixes #481] remove add registry sidecar from docker-build tests 2020-08-31 15:25:12 +01:00
docker-build.yaml [Fixes #481] remove add registry sidecar from docker-build tests 2020-08-31 15:25:12 +01:00
OWNERS Add docker-build task 2020-07-24 10:09:01 +01:00
README.md Add docker-build task 2020-07-24 10:09:01 +01:00

Docker

Docker-Build

The Docker Build task builds source into a container image using Docker. 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://raw.githubusercontent.com/tektoncd/catalog/master/task/docker-build/0.1/docker-build.yaml

Parameters

  • image: The name (reference) of the image to build.
  • builder_image:: The name of the image containing the Docker tool. See note below. (default: docker.io/docker:latest)
  • dockerfile: The path to the Dockerfile to execute (default: ./Dockerfile)
  • context: Path to the directory to use as context (default: .)
  • build_extra_args: Extra parameters passed for the build command when building images. (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.

Usage

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