Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
9 changes: 7 additions & 2 deletions packages/pynumaflow/examples/batchmap/flatmap/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
9 changes: 7 additions & 2 deletions packages/pynumaflow/examples/map/even_odd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
9 changes: 7 additions & 2 deletions packages/pynumaflow/examples/map/flatmap/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
9 changes: 7 additions & 2 deletions packages/pynumaflow/examples/map/forward_message/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
9 changes: 7 additions & 2 deletions packages/pynumaflow/examples/map/multiproc_map/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
9 changes: 7 additions & 2 deletions packages/pynumaflow/examples/reduce/counter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
9 changes: 7 additions & 2 deletions packages/pynumaflow/examples/reducestream/sum/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
9 changes: 7 additions & 2 deletions packages/pynumaflow/examples/sink/all_sinks/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
9 changes: 7 additions & 2 deletions packages/pynumaflow/examples/sink/async_log/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
13 changes: 1 addition & 12 deletions packages/pynumaflow/examples/sink/async_log/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ spec:
rpu: 1
duration: 1s
msgSize: 10
- name: p1
udf:
builtin:
name: cat
- name: out
sink:
udsink:
Expand All @@ -22,19 +18,12 @@ spec:
- python
- example.py
image: quay.io/numaio/numaflow-python/async-sink-log:stable
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
env:
- name: PYTHONDEBUG
value: "true"
- name: INVOKE
value: "func_handler"
- name: log-output
sink:
log: {}
edges:
- from: in
to: p1
- from: p1
to: out
- from: p1
to: log-output
9 changes: 7 additions & 2 deletions packages/pynumaflow/examples/sink/log/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
13 changes: 1 addition & 12 deletions packages/pynumaflow/examples/sink/log/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ spec:
rpu: 1
duration: 1s
msgSize: 10
- name: p1
udf:
builtin:
name: cat
- name: out
sink:
udsink:
Expand All @@ -22,19 +18,12 @@ spec:
- python
- example.py
image: quay.io/numaio/numaflow-python/sink-log:stable
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
env:
- name: PYTHONDEBUG
value: "true"
- name: INVOKE
value: "func_handler"
- name: log-output
sink:
log: {}
edges:
- from: in
to: p1
- from: p1
to: out
- from: p1
to: log-output
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ WORKDIR $EXAMPLE_PATH
COPY --from=builder $EXAMPLE_PATH/.venv $EXAMPLE_PATH/.venv
COPY --from=builder $EXAMPLE_PATH/ $EXAMPLE_PATH/

ENTRYPOINT []
CMD ["uv", "run", "python", "example.py"]
# NOTE: We cannot use "uv run python example.py" here because uv run reads the
# example's pyproject.toml, finds the pynumaflow path source (path = "../../../"),
# and tries to resolve it. In the runtime stage, the parent pynumaflow source tree
# is not present (by design, to keep the image small), so uv run fails.
# Instead, we activate the pre-built .venv via PATH and run python directly.
ENV PATH="$EXAMPLE_PATH/.venv/bin:$PATH"
CMD ["python", "example.py"]

EXPOSE 5000
Loading