mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-21 05:55:35 +00:00
e763a4473e
With git-clone version 0.8 and onwards, it started running as non-root and GKE clusters were having some issues, so, we temporarily moved all tasks to use git-clone version 0.7. Ref: https://github.com/tektoncd/catalog/pull/1079 Since we have now moved to kind clusters in our CI, this issue is now resolved and thus moving all tasks to use latest version of git-clone Signed-off-by: vinamra28 <jvinamra776@gmail.com> |
||
---|---|---|
.. | ||
samples | ||
tests | ||
docker-build.yaml | ||
OWNERS | ||
README.md |
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://api.hub.tekton.dev/v1/resource/tekton/task/docker-build/0.1/raw
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
) - 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:
.
) - 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.
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/nocode
taskRef:
name: docker-build
workspaces:
- name: source
persistentVolumeClaim:
claimName: docker-source-pvc