-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: a3hadi <[email protected]> Co-authored-by: Keran Yang <[email protected]>
- Loading branch information
1 parent
ec242ee
commit 432fbcc
Showing
20 changed files
with
257 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/even-odd-example main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/map-even-odd:${TAG}" --platform linux/amd64,linux/arm64 --target even-odd . --push | ||
|
||
.PHONY: image | ||
image: build | ||
docker build -t "quay.io/numaio/numaflow-go/map-even-odd:stable" --target even-odd . | ||
docker build -t "quay.io/numaio/numaflow-go/map-even-odd:${TAG}" --target even-odd . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/map-even-odd:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/flatmap-example main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/map-flatmap:${TAG}" --platform linux/amd64,linux/arm64 --target flatmap . --push | ||
|
||
.PHONY: image | ||
image: build | ||
docker build -t "quay.io/numaio/numaflow-go/map-flatmap:stable" --target flatmap . | ||
docker build -t "quay.io/numaio/numaflow-go/map-flatmap:${TAG}" --target flatmap . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/map-flatmap:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/forward-message-example main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/map-forward-message:${TAG}" --platform linux/amd64,linux/arm64 --target forward-message . --push | ||
|
||
.PHONY: image | ||
image: build | ||
docker build -t "quay.io/numaio/numaflow-go/map-forward-message:stable" --target forward-message . | ||
docker build -t "quay.io/numaio/numaflow-go/map-forward-message:${TAG}" --target forward-message . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/map-forward-message:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/retry main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/map-retry:${TAG}" --platform linux/amd64,linux/arm64 --target retry . --push | ||
|
||
.PHONY: image | ||
image: build | ||
docker build -t "quay.io/numaio/numaflow-go/map-retry:stable" --target retry . | ||
docker build -t "quay.io/numaio/numaflow-go/map-retry:${TAG}" --target map-retry . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/map-retry:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/tickgen-example main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/map-tickgen:${TAG}" --platform linux/amd64,linux/arm64 --target tickgen . --push | ||
|
||
.PHONY: image | ||
image: build | ||
docker build -t "quay.io/numaio/numaflow-go/map-tickgen:stable" --target tickgen . | ||
docker build -t "quay.io/numaio/numaflow-go/map-tickgen:${TAG}" --target tickgen . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/map-tickgen:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/flatmap-stream-example main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/map-flatmap-stream:${TAG}" --platform linux/amd64,linux/arm64 --target flatmap_stream . --push | ||
|
||
.PHONY: image | ||
image: build | ||
docker build -t "quay.io/numaio/numaflow-go/map-flatmap-stream:stable" --target flatmap_stream . | ||
docker build -t "quay.io/numaio/numaflow-go/map-flatmap-stream:${TAG}" --target flatmap_stream . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/map-flatmap-stream:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/counter-example main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/reduce-counter:${TAG}" --platform linux/amd64,linux/arm64 --target counter . --push | ||
|
||
.PHONY: image | ||
image: build | ||
docker build -t "quay.io/numaio/numaflow-go/reduce-counter:stable" --target counter . | ||
docker build -t "quay.io/numaio/numaflow-go/reduce-counter:${TAG}" --target counter . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/reduce-counter:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/sum-example main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/reduce-sum:${TAG}" --platform linux/amd64,linux/arm64 --target sum . --push | ||
|
||
.PHONY: image | ||
image: build | ||
docker build -t "quay.io/numaio/numaflow-go/reduce-sum:stable" --target sum . | ||
docker build -t "quay.io/numaio/numaflow-go/reduce-sum:${TAG}" --target sum . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/reduce-sum:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/counter-example main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/reduce-stream-counter:${TAG}" --platform linux/amd64,linux/arm64 --target counter . --push | ||
|
||
.PHONY: image | ||
image: build | ||
docker build -t "quay.io/numaio/numaflow-go/reduce-stream-counter:stable" --target counter . | ||
docker build -t "quay.io/numaio/numaflow-go/reduce-stream-counter:${TAG}" --target counter . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/reduce-stream-counter:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/sum-example main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/reduce-stream-sum:${TAG}" --platform linux/amd64,linux/arm64 --target sum . --push | ||
|
||
.PHONY: image | ||
image: build | ||
docker build -t "quay.io/numaio/numaflow-go/reduce-stream-sum:stable" --target sum . | ||
docker build -t "quay.io/numaio/numaflow-go/reduce-stream-sum:${TAG}" --target sum . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/reduce-stream-sum:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/counter-example main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/session-counter:${TAG}" --platform linux/amd64,linux/arm64 --target counter . --push | ||
|
||
.PHONY: image | ||
image: build | ||
docker build -t "quay.io/numaio/numaflow-go/session-counter:stable" --target counter . | ||
docker build -t "quay.io/numaio/numaflow-go/session-counter:${TAG}" --target counter . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/session-counter:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/sideinput-example main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/sideinput-example:${TAG}" --platform linux/amd64,linux/arm64 --target sideinput . --push | ||
|
||
.PHONY: image | ||
image: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/sideinput-example:stable" --platform linux/amd64,linux/arm64 --target sideinput . --push | ||
docker build -t "quay.io/numaio/numaflow-go/sideinput-example:${TAG}" --target sideinput . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/sideinput-example:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/udf-sideinput-example main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/udf-sideinput-example:${TAG}" --platform linux/amd64,linux/arm64 --target udf-sideinput . --push | ||
|
||
.PHONY: image | ||
#To build an image that supports multiple platforms(linux/amd64,linux/arm64) and push to quay.io, use the following command | ||
image: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/udf-sideinput-example:stable" --platform linux/amd64,linux/arm64 --target udf-sideinput . --push | ||
|
||
|
||
docker build -t "quay.io/numaio/numaflow-go/udf-sideinput-example:${TAG}" --target udf-sideinput . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/udf-sideinput-example:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/log-example main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/sink-log:${TAG}" --platform linux/amd64,linux/arm64 --target log . --push | ||
|
||
.PHONY: image | ||
image: build | ||
docker build -t "quay.io/numaio/numaflow-go/sink-log:stable" --target log . | ||
imageimage: build | ||
docker build -t "quay.io/numaio/numaflow-go/sink-log:${TAG}" --target log . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/sink-log:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
TAG ?= stable | ||
PUSH ?= false | ||
|
||
.PHONY: build | ||
build: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/simple-source-example main.go | ||
|
||
.PHONY: image-push | ||
image-push: build | ||
docker buildx build -t "quay.io/numaio/numaflow-go/source-simple-source:${TAG}" --platform linux/amd64,linux/arm64 --target simple-source . --push | ||
|
||
.PHONY: image | ||
image: build | ||
docker build -t "quay.io/numaio/numaflow-go/source-simple-source:stable" --target simple-source . | ||
docker build -t "quay.io/numaio/numaflow-go/source-simple-source:${TAG}" --target simple-source . | ||
@if [ "$(PUSH)" = "true" ]; then docker push "quay.io/numaio/numaflow-go/source-simple-source:${TAG}"; fi | ||
|
||
clean: | ||
-rm -rf ./dist |
Oops, something went wrong.