Skip to content

Commit c8acdb4

Browse files
authored
Update build_docker.py
1 parent 90040ca commit c8acdb4

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

examples/build_docker.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,33 @@
33
44
'''
55

6-
import fluid
6+
import fluid as couler
77

88

9-
@fluid.task
9+
@couler.task
1010
def build_docker_image_from_git_source(
1111
docker_source: "input,git",
1212
built_image: "output,image",
1313
path_to_dockerfile="/workspace/docker-source/Dockerfile",
1414
path_to_context="/workspace/docker-source"):
1515
'''Define a Tekton Task that builds a Docker image from a Git repo'''
16-
fluid.step(image="gcr.io/kaniko-project/executor:v0.14.0",
16+
couler.step(image="gcr.io/kaniko-project/executor:v0.14.0",
1717
cmd=["/kaniko/executor"],
1818
args=[f"--dockerfile={path_to_dockerfile}",
1919
f"--destination={built_image.url}",
2020
f"--context={path_to_context}"],
2121
env={"DOCKER_CONFIG": "/tekton/home/.docker/"})
2222

2323

24-
SKAFFOLD_GIT = fluid.git_resource(
24+
SKAFFOLD_GIT = couler.git_resource(
2525
url="https://github.com/GoogleContainerTools/skaffold",
2626
revision="master")
2727

28-
SKAFFOLD_IMAGE_LEEROY_WEB = fluid.image_resource(
28+
SKAFFOLD_IMAGE_LEEROY_WEB = couler.image_resource(
2929
url="dockerhub.com/cxwangyi/leeroy-web")
3030

3131

32-
with fluid.Secret(fluid.service_account("regcred")):
32+
with couler.Secret(couler.service_account("regcred")):
3333
build_docker_image_from_git_source(
3434
SKAFFOLD_GIT,
3535
SKAFFOLD_IMAGE_LEEROY_WEB,

0 commit comments

Comments
 (0)