Skip to content

Commit

Permalink
replace repo with image_registry
Browse files Browse the repository at this point in the history
Signed-off-by: a3hadi <[email protected]>
  • Loading branch information
ayildirim21 committed Jul 4, 2024
1 parent 97e8c5a commit d2bde88
Show file tree
Hide file tree
Showing 27 changed files with 108 additions and 108 deletions.
8 changes: 4 additions & 4 deletions pkg/mapper/examples/even_odd/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/map-even-odd:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/map-even-odd:${TAG}

.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 ${REPO} --platform linux/amd64,linux/arm64 --target even-odd . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target even-odd . --push

.PHONY: image
image: build
docker build -t ${REPO} --target even-odd .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target even-odd .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/mapper/examples/flatmap/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/map-flatmap:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/map-flatmap:${TAG}

.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 ${REPO} --platform linux/amd64,linux/arm64 --target flatmap . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target flatmap . --push

.PHONY: image
image: build
docker build -t ${REPO} --target flatmap .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target flatmap .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/mapper/examples/forward_message/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/map-forward-message:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/map-forward-message:${TAG}

.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 ${REPO} --platform linux/amd64,linux/arm64 --target forward-message . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target forward-message . --push

.PHONY: image
image: build
docker build -t ${REPO} --target forward-message .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target forward-message .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/mapper/examples/retry/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/map-retry:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/map-retry:${TAG}

.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 ${REPO} --platform linux/amd64,linux/arm64 --target retry . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target retry . --push

.PHONY: image
image: build
docker build -t ${REPO} --target map-retry .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target map-retry .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/mapper/examples/tickgen/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/map-tickgen:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/map-tickgen:${TAG}

.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 ${REPO} --platform linux/amd64,linux/arm64 --target tickgen . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target tickgen . --push

.PHONY: image
image: build
docker build -t ${REPO} --target tickgen .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target tickgen .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/mapstreamer/examples/flatmap_stream/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/map-flatmap-stream:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/map-flatmap-stream:${TAG}

.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 ${REPO} --platform linux/amd64,linux/arm64 --target flatmap_stream . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target flatmap_stream . --push

.PHONY: image
image: build
docker build -t ${REPO} --target flatmap_stream .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target flatmap_stream .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/reducer/examples/counter/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/reduce-counter:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/reduce-counter:${TAG}

.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 ${REPO} --platform linux/amd64,linux/arm64 --target counter . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target counter . --push

.PHONY: image
image: build
docker build -t ${REPO} --target counter .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target counter .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/reducer/examples/sum/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/reduce-sum:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/reduce-sum:${TAG}

.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 ${REPO} --platform linux/amd64,linux/arm64 --target sum . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target sum . --push

.PHONY: image
image: build
docker build -t ${REPO} --target sum .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target sum .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/reducestreamer/examples/counter/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/reduce-stream-counter:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/reduce-stream-counter:${TAG}

.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 ${REPO} --platform linux/amd64,linux/arm64 --target counter . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target counter . --push

.PHONY: image
image: build
docker build -t ${REPO} --target counter .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target counter .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/reducestreamer/examples/sum/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/reduce-stream-sum:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/reduce-stream-sum:${TAG}

.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 ${REPO} --platform linux/amd64,linux/arm64 --target sum . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target sum . --push

.PHONY: image
image: build
docker build -t ${REPO} --target sum .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target sum .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/sessionreducer/examples/counter/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/session-counter:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/session-counter:${TAG}

.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 ${REPO} --platform linux/amd64,linux/arm64 --target counter . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target counter . --push

.PHONY: image
image: build
docker build -t ${REPO} --target counter .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target counter .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/sessionreducer/examples/sum/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/session-sum:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/session-sum:${TAG}

.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 ${REPO} --platform linux/amd64,linux/arm64 --target sum . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target sum . --push

.PHONY: image
image: build
docker build -t ${REPO} --target sum .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target sum .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/sideinput/examples/map_sideinput/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/map-sideinput:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/map-sideinput:${TAG}

.PHONY: build
build:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/map-sideinput-example main.go

.PHONY: image-push
image-push: build
docker buildx build -t ${REPO} --platform linux/amd64,linux/arm64 --target sideinput . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target sideinput . --push

.PHONY: image
image: build
docker build -t ${REPO} --target sideinput .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target sideinput .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/sideinput/examples/map_sideinput/udf/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/map-sideinput-udf:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/map-sideinput-udf:${TAG}

.PHONY: build
build:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/map-sideinput-udf main.go

.PHONY: image-push
image-push: build
docker buildx build -t ${REPO} --platform linux/amd64,linux/arm64 --target sideinput-udf . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target sideinput-udf . --push

.PHONY: image
image: build
docker build -t ${REPO} --target sideinput-udf .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target sideinput-udf .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/sideinput/examples/reduce_sideinput/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/reduce-sideinput:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/reduce-sideinput:${TAG}

.PHONY: build
build:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/reduce-sideinput-example main.go

.PHONY: image-push
image-push: build
docker buildx build -t ${REPO} --platform linux/amd64,linux/arm64 --target sideinput . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target sideinput . --push

.PHONY: image
image: build
docker build -t ${REPO} --target sideinput .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target sideinput .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
8 changes: 4 additions & 4 deletions pkg/sideinput/examples/reduce_sideinput/udf/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
TAG ?= stable
PUSH ?= false
REPO = quay.io/numaio/numaflow-go/reduce-sideinput-udf:${TAG}
IMAGE_REGISTRY = quay.io/numaio/numaflow-go/reduce-sideinput-udf:${TAG}

.PHONY: build
build:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./dist/reduce-sideinput-udf main.go

.PHONY: image-push
image-push: build
docker buildx build -t ${REPO} --platform linux/amd64,linux/arm64 --target sideinput-udf . --push
docker buildx build -t ${IMAGE_REGISTRY} --platform linux/amd64,linux/arm64 --target sideinput-udf . --push

.PHONY: image
image: build
docker build -t ${REPO} --target sideinput-udf .
@if [ "$(PUSH)" = "true" ]; then docker push ${REPO}; fi
docker build -t ${IMAGE_REGISTRY} --target sideinput-udf .
@if [ "$(PUSH)" = "true" ]; then docker push ${IMAGE_REGISTRY}; fi

clean:
-rm -rf ./dist
Loading

0 comments on commit d2bde88

Please sign in to comment.