Skip to content

Commit

Permalink
feat: Building the feast image (feast-dev#4775)
Browse files Browse the repository at this point in the history
Adding code to build the feast container image during the operator test run.

Signed-off-by: lrangine <[email protected]>
  • Loading branch information
lokeshrangineni authored and tmihalac committed Nov 21, 2024
1 parent 677246c commit 0284baa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions infra/feast-operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ run: manifests generate fmt vet ## Run a controller from your host.
docker-build: ## Build docker image with the manager.
$(CONTAINER_TOOL) build -t ${IMG} .

## Build feast docker image.
.PHONY: feast-docker-build
feast-image-build:
cd ./../.. && VERSION=operator.v0 REGISTRY=example.com make build-feature-transformation-server-docker


.PHONY: docker-push
docker-push: ## Push docker image with the manager.
$(CONTAINER_TOOL) push ${IMG}
Expand Down
10 changes: 10 additions & 0 deletions infra/feast-operator/test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ var _ = Describe("controller", Ordered, func() {
err = utils.LoadImageToKindClusterWithName(projectimage)
ExpectWithOffset(1, err).NotTo(HaveOccurred())

By("building the feast image")
cmd = exec.Command("make", "feast-image-build")
_, err = utils.Run(cmd)
ExpectWithOffset(1, err).NotTo(HaveOccurred())

var feastImage = "example.com/feature-transformation-server:operator.v0"
By("loading the the feast image on Kind")
err = utils.LoadImageToKindClusterWithName(feastImage)
ExpectWithOffset(1, err).NotTo(HaveOccurred())

By("installing CRDs")
cmd = exec.Command("make", "install")
_, err = utils.Run(cmd)
Expand Down

0 comments on commit 0284baa

Please sign in to comment.