File tree Expand file tree Collapse file tree 23 files changed +102
-125
lines changed
sideinput/simple_sideinput
sourcetransform/event_time_filter Expand file tree Collapse file tree 23 files changed +102
-125
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ ENV PYTHONFAULTHANDLER=1 \
14
14
POETRY_HOME="/opt/poetry" \
15
15
POETRY_VIRTUALENVS_IN_PROJECT=true \
16
16
POETRY_NO_INTERACTION=1 \
17
- PYSETUP_PATH="/opt/pysetup" \
18
- VENV_PATH="/opt/pysetup/.venv"
17
+ PYSETUP_PATH="/opt/pysetup"
19
18
19
+ ENV EXAMPLE_PATH="$PYSETUP_PATH/examples/map/even_odd"
20
+ ENV VENV_PATH="$EXAMPLE_PATH/.venv"
20
21
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
21
22
22
23
RUN apt-get update \
@@ -41,16 +42,13 @@ FROM builder AS udf
41
42
WORKDIR $PYSETUP_PATH
42
43
COPY ./ ./
43
44
44
- WORKDIR $PYSETUP_PATH/examples/map/even_odd
45
+ WORKDIR $EXAMPLE_PATH
45
46
RUN poetry install --no-cache --no-root && \
46
47
rm -rf ~/.cache/pypoetry/
47
48
48
- COPY examples/map/even_odd /app
49
- WORKDIR /app
50
-
51
49
RUN chmod +x entry.sh
52
50
53
51
ENTRYPOINT ["/dumb-init" , "--" ]
54
- CMD ["/app /entry.sh" ]
52
+ CMD ["sh" , "-c" , "$EXAMPLE_PATH /entry.sh" ]
55
53
56
- EXPOSE 5000
54
+ EXPOSE 5000
Original file line number Diff line number Diff line change 18
18
- python
19
19
- example.py
20
20
image : quay.io/numaio/numaflow-python/even-odd:stable
21
+ imagePullPolicy : Always
21
22
- name : even-sink
22
23
scale :
23
24
min : 1
Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ ENV PYTHONFAULTHANDLER=1 \
14
14
POETRY_HOME="/opt/poetry" \
15
15
POETRY_VIRTUALENVS_IN_PROJECT=true \
16
16
POETRY_NO_INTERACTION=1 \
17
- PYSETUP_PATH="/opt/pysetup" \
18
- VENV_PATH="/opt/pysetup/.venv"
17
+ PYSETUP_PATH="/opt/pysetup"
19
18
19
+ ENV EXAMPLE_PATH="$PYSETUP_PATH/examples/map/flatmap"
20
+ ENV VENV_PATH="$EXAMPLE_PATH/.venv"
20
21
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
21
22
22
23
RUN apt-get update \
@@ -41,16 +42,13 @@ FROM builder AS udf
41
42
WORKDIR $PYSETUP_PATH
42
43
COPY ./ ./
43
44
44
- WORKDIR $PYSETUP_PATH/examples/map/flatmap
45
+ WORKDIR $EXAMPLE_PATH
45
46
RUN poetry install --no-cache --no-root && \
46
47
rm -rf ~/.cache/pypoetry/
47
48
48
- COPY examples/map/even_odd /app
49
- WORKDIR /app
50
-
51
49
RUN chmod +x entry.sh
52
50
53
51
ENTRYPOINT ["/dumb-init" , "--" ]
54
- CMD ["/app /entry.sh" ]
52
+ CMD ["sh" , "-c" , "$EXAMPLE_PATH /entry.sh" ]
55
53
56
- EXPOSE 5000
54
+ EXPOSE 5000
Original file line number Diff line number Diff line change 16
16
udf :
17
17
container :
18
18
image : quay.io/numaio/numaflow-python/map-flatmap:stable
19
+ imagePullPolicy : Always
19
20
env :
20
21
- name : PYTHONDEBUG
21
22
value : " true"
Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ ENV PYTHONFAULTHANDLER=1 \
14
14
POETRY_HOME="/opt/poetry" \
15
15
POETRY_VIRTUALENVS_IN_PROJECT=true \
16
16
POETRY_NO_INTERACTION=1 \
17
- PYSETUP_PATH="/opt/pysetup" \
18
- VENV_PATH="/opt/pysetup/.venv"
17
+ PYSETUP_PATH="/opt/pysetup"
19
18
19
+ ENV EXAMPLE_PATH="$PYSETUP_PATH/examples/map/forward_message"
20
+ ENV VENV_PATH="$EXAMPLE_PATH/.venv"
20
21
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
21
22
22
23
RUN apt-get update \
@@ -41,16 +42,13 @@ FROM builder AS udf
41
42
WORKDIR $PYSETUP_PATH
42
43
COPY ./ ./
43
44
44
- WORKDIR $PYSETUP_PATH/examples/map/forward_message
45
+ WORKDIR $EXAMPLE_PATH
45
46
RUN poetry install --no-cache --no-root && \
46
47
rm -rf ~/.cache/pypoetry/
47
48
48
- COPY examples/map/forward_message /app
49
- WORKDIR /app
50
-
51
49
RUN chmod +x entry.sh
52
50
53
51
ENTRYPOINT ["/dumb-init" , "--" ]
54
- CMD ["/app /entry.sh" ]
52
+ CMD ["sh" , "-c" , "$EXAMPLE_PATH /entry.sh" ]
55
53
56
- EXPOSE 5000
54
+ EXPOSE 5000
Original file line number Diff line number Diff line change 18
18
- python
19
19
- example.py
20
20
image : quay.io/numaio/numaflow-python/map-forward-message:stable
21
+ imagePullPolicy : Always
21
22
- name : log-output
22
23
sink :
23
24
log : {}
Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ ENV PYTHONFAULTHANDLER=1 \
14
14
POETRY_HOME="/opt/poetry" \
15
15
POETRY_VIRTUALENVS_IN_PROJECT=true \
16
16
POETRY_NO_INTERACTION=1 \
17
- PYSETUP_PATH="/opt/pysetup" \
18
- VENV_PATH="/opt/pysetup/.venv"
17
+ PYSETUP_PATH="/opt/pysetup"
19
18
19
+ ENV EXAMPLE_PATH="$PYSETUP_PATH/examples/map/multiproc_map"
20
+ ENV VENV_PATH="$EXAMPLE_PATH/.venv"
20
21
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
21
22
22
23
RUN apt-get update \
@@ -41,16 +42,13 @@ FROM builder AS udf
41
42
WORKDIR $PYSETUP_PATH
42
43
COPY ./ ./
43
44
44
- WORKDIR $PYSETUP_PATH/examples/map/multiproc_map
45
+ WORKDIR $EXAMPLE_PATH
45
46
RUN poetry install --no-cache --no-root && \
46
47
rm -rf ~/.cache/pypoetry/
47
48
48
- COPY examples/map/multiproc_map /app
49
- WORKDIR /app
50
-
51
49
RUN chmod +x entry.sh
52
50
53
51
ENTRYPOINT ["/dumb-init" , "--" ]
54
- CMD ["/app /entry.sh" ]
52
+ CMD ["sh" , "-c" , "$EXAMPLE_PATH /entry.sh" ]
55
53
56
- EXPOSE 5000
54
+ EXPOSE 5000
Original file line number Diff line number Diff line change 16
16
udf :
17
17
container :
18
18
image : quay.io/numaio/numaflow-python/multiproc:stable
19
+ imagePullPolicy : Always
19
20
env :
20
21
- name : PYTHONDEBUG
21
22
value : " true"
Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ ENV PYTHONFAULTHANDLER=1 \
14
14
POETRY_HOME="/opt/poetry" \
15
15
POETRY_VIRTUALENVS_IN_PROJECT=true \
16
16
POETRY_NO_INTERACTION=1 \
17
- PYSETUP_PATH="/opt/pysetup" \
18
- VENV_PATH="/opt/pysetup/.venv"
17
+ PYSETUP_PATH="/opt/pysetup"
19
18
19
+ ENV EXAMPLE_PATH="$PYSETUP_PATH/examples/mapstream/flatmap_stream"
20
+ ENV VENV_PATH="$EXAMPLE_PATH/.venv"
20
21
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
21
22
22
23
RUN apt-get update \
@@ -41,16 +42,13 @@ FROM builder AS udf
41
42
WORKDIR $PYSETUP_PATH
42
43
COPY ./ ./
43
44
44
- WORKDIR $PYSETUP_PATH/examples/mapstream/flatmap_stream
45
+ WORKDIR $EXAMPLE_PATH
45
46
RUN poetry install --no-cache --no-root && \
46
47
rm -rf ~/.cache/pypoetry/
47
48
48
- COPY examples/mapstream/flatmap_stream /app
49
- WORKDIR /app
50
-
51
49
RUN chmod +x entry.sh
52
50
53
51
ENTRYPOINT ["/dumb-init" , "--" ]
54
- CMD ["/app /entry.sh" ]
52
+ CMD ["sh" , "-c" , "$EXAMPLE_PATH /entry.sh" ]
55
53
56
- EXPOSE 5000
54
+ EXPOSE 5000
Original file line number Diff line number Diff line change @@ -51,4 +51,4 @@ RUN chmod +x entry.sh
51
51
ENTRYPOINT ["/dumb-init" , "--" ]
52
52
CMD ["/app/entry.sh" ]
53
53
54
- EXPOSE 5000
54
+ EXPOSE 5000
Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ ENV PYTHONFAULTHANDLER=1 \
14
14
POETRY_HOME="/opt/poetry" \
15
15
POETRY_VIRTUALENVS_IN_PROJECT=true \
16
16
POETRY_NO_INTERACTION=1 \
17
- PYSETUP_PATH="/opt/pysetup" \
18
- VENV_PATH="/opt/pysetup/.venv"
17
+ PYSETUP_PATH="/opt/pysetup"
19
18
19
+ ENV EXAMPLE_PATH="$PYSETUP_PATH/examples/reduce/counter"
20
+ ENV VENV_PATH="$EXAMPLE_PATH/.venv"
20
21
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
21
22
22
23
RUN apt-get update \
@@ -41,16 +42,13 @@ FROM builder AS udf
41
42
WORKDIR $PYSETUP_PATH
42
43
COPY ./ ./
43
44
44
- WORKDIR $PYSETUP_PATH/examples/reduce/counter
45
+ WORKDIR $EXAMPLE_PATH
45
46
RUN poetry install --no-cache --no-root && \
46
47
rm -rf ~/.cache/pypoetry/
47
48
48
- COPY examples/reduce/counter /app
49
- WORKDIR /app
50
-
51
49
RUN chmod +x entry.sh
52
50
53
51
ENTRYPOINT ["/dumb-init" , "--" ]
54
- CMD ["/app /entry.sh" ]
52
+ CMD ["sh" , "-c" , "$EXAMPLE_PATH /entry.sh" ]
55
53
56
- EXPOSE 5000
54
+ EXPOSE 5000
Original file line number Diff line number Diff line change 14
14
container :
15
15
# Tell the input number is even or odd, see https://github.com/numaproj/numaflow-go/tree/main/pkg/mapper/examples/even_odd
16
16
image : quay.io/numaio/numaflow-go/map-even-odd:stable
17
+ imagePullPolicy : Always
17
18
- name : compute-sum
18
19
udf :
19
20
container :
Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ ENV PYTHONFAULTHANDLER=1 \
14
14
POETRY_HOME="/opt/poetry" \
15
15
POETRY_VIRTUALENVS_IN_PROJECT=true \
16
16
POETRY_NO_INTERACTION=1 \
17
- PYSETUP_PATH="/opt/pysetup" \
18
- VENV_PATH="/opt/pysetup/.venv"
17
+ PYSETUP_PATH="/opt/pysetup"
19
18
19
+ ENV EXAMPLE_PATH="$PYSETUP_PATH/examples/reducestream/counter"
20
+ ENV VENV_PATH="$EXAMPLE_PATH/.venv"
20
21
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
21
22
22
23
RUN apt-get update \
@@ -41,16 +42,13 @@ FROM builder AS udf
41
42
WORKDIR $PYSETUP_PATH
42
43
COPY ./ ./
43
44
44
- WORKDIR $PYSETUP_PATH/examples/reducestream/counter
45
+ WORKDIR $EXAMPLE_PATH
45
46
RUN poetry install --no-cache --no-root && \
46
47
rm -rf ~/.cache/pypoetry/
47
48
48
- COPY examples/reducestream/counter /app
49
- WORKDIR /app
50
-
51
49
RUN chmod +x entry.sh
52
50
53
51
ENTRYPOINT ["/dumb-init" , "--" ]
54
- CMD ["/app /entry.sh" ]
52
+ CMD ["sh" , "-c" , "$EXAMPLE_PATH /entry.sh" ]
55
53
56
- EXPOSE 5000
54
+ EXPOSE 5000
Original file line number Diff line number Diff line change @@ -13,12 +13,13 @@ spec:
13
13
udf :
14
14
container :
15
15
# Tell the input number is even or odd, see https://github.com/numaproj/numaflow-go/tree/main/pkg/mapper/examples/even_odd
16
- image : quay.io/numaio/numaflow-go/map-even-odd:v0.6.1
16
+ image : quay.io/numaio/numaflow-go/map-even-odd:stable
17
+ imagePullPolicy : Always
17
18
- name : compute-sum
18
19
udf :
19
20
container :
20
21
# compute the sum
21
- image : quay.io/numaio/numaflow-python/reduce-stream-counter:v0.7.0
22
+ image : quay.io/numaio/numaflow-python/reduce-stream-counter:stable
22
23
imagePullPolicy : Always
23
24
env :
24
25
- name : PYTHONDEBUG
Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ ENV PYTHONFAULTHANDLER=1 \
14
14
POETRY_HOME="/opt/poetry" \
15
15
POETRY_VIRTUALENVS_IN_PROJECT=true \
16
16
POETRY_NO_INTERACTION=1 \
17
- PYSETUP_PATH="/opt/pysetup" \
18
- VENV_PATH="/opt/pysetup/.venv"
17
+ PYSETUP_PATH="/opt/pysetup"
19
18
19
+ ENV EXAMPLE_PATH="$PYSETUP_PATH/examples/reducestream/sum"
20
+ ENV VENV_PATH="$EXAMPLE_PATH/.venv"
20
21
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
21
22
22
23
RUN apt-get update \
@@ -41,16 +42,13 @@ FROM builder AS udf
41
42
WORKDIR $PYSETUP_PATH
42
43
COPY ./ ./
43
44
44
- WORKDIR $PYSETUP_PATH/examples/reducestream/sum
45
+ WORKDIR $EXAMPLE_PATH
45
46
RUN poetry install --no-cache --no-root && \
46
47
rm -rf ~/.cache/pypoetry/
47
48
48
- COPY examples/reducestream/sum /app
49
- WORKDIR /app
50
-
51
49
RUN chmod +x entry.sh
52
50
53
51
ENTRYPOINT ["/dumb-init" , "--" ]
54
- CMD ["/app /entry.sh" ]
52
+ CMD ["sh" , "-c" , "$EXAMPLE_PATH /entry.sh" ]
55
53
56
- EXPOSE 5000
54
+ EXPOSE 5000
Original file line number Diff line number Diff line change @@ -13,12 +13,13 @@ spec:
13
13
udf :
14
14
container :
15
15
# Tell the input number is even or odd, see https://github.com/numaproj/numaflow-go/tree/main/pkg/mapper/examples/even_odd
16
- image : quay.io/numaio/numaflow-go/map-even-odd:v0.6.1
16
+ image : quay.io/numaio/numaflow-go/map-even-odd:stable
17
+ imagePullPolicy : Always
17
18
- name : compute-sum
18
19
udf :
19
20
container :
20
21
# compute the sum
21
- image : quay.io/numaio/numaflow-python/reduce-stream-sum:v0.7.0
22
+ image : quay.io/numaio/numaflow-python/reduce-stream-sum:stable
22
23
imagePullPolicy : Always
23
24
env :
24
25
- name : PYTHONDEBUG
Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ ENV PYTHONFAULTHANDLER=1 \
14
14
POETRY_HOME="/opt/poetry" \
15
15
POETRY_VIRTUALENVS_IN_PROJECT=true \
16
16
POETRY_NO_INTERACTION=1 \
17
- PYSETUP_PATH="/opt/pysetup" \
18
- VENV_PATH="/opt/pysetup/.venv"
17
+ PYSETUP_PATH="/opt/pysetup"
19
18
19
+ ENV EXAMPLE_PATH="$PYSETUP_PATH/examples/sideinput/simple_sideinput"
20
+ ENV VENV_PATH="$EXAMPLE_PATH/.venv"
20
21
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
21
22
22
23
RUN apt-get update \
@@ -41,16 +42,13 @@ FROM builder AS udf
41
42
WORKDIR $PYSETUP_PATH
42
43
COPY ./ ./
43
44
44
- WORKDIR $PYSETUP_PATH/examples/sideinput/simple_sideinput
45
+ WORKDIR $EXAMPLE_PATH
45
46
RUN poetry install --no-cache --no-root && \
46
47
rm -rf ~/.cache/pypoetry/
47
48
48
- COPY examples/sideinput/simple_sideinput /app
49
- WORKDIR /app
50
-
51
49
RUN chmod +x entry.sh
52
50
53
51
ENTRYPOINT ["/dumb-init" , "--" ]
54
- CMD ["/app /entry.sh" ]
52
+ CMD ["sh" , "-c" , "$EXAMPLE_PATH /entry.sh" ]
55
53
56
- EXPOSE 5000
54
+ EXPOSE 5000
You can’t perform that action at this time.
0 commit comments