Skip to content

Commit 0cb72fa

Browse files
authored
add example function image Dockerfile (#144)
* add example functions * fix README.md
1 parent 32e74b5 commit 0cb72fa

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

images/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,7 @@ When you use Function Mesh with self build images, you need to define the execut
152152
## Scripts
153153

154154
`build.sh` is a bash script used to build base, Java, Python, and Golang runner locally.
155+
156+
## Samples
157+
158+
`function-samples` has a sample `Dockerfile` that copies `/pulsar/examples` from `pulsar-all` into `java-runner`, which can be used to test Function Mesh.

images/function-samples/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ARG PULSAR_IMAGE_TAG
2+
FROM streamnative/pulsar-all:${PULSAR_IMAGE_TAG} as pulsar-all
3+
FROM streamnative/pulsar-functions-java-runner:${PULSAR_IMAGE_TAG}
4+
COPY --from=pulsar-all --chown=pulsar:0 /pulsar/examples /pulsar/examples

0 commit comments

Comments
 (0)