-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructured project for improved maintainability and organization
- Loading branch information
1 parent
23ade7d
commit bb4e1c7
Showing
12 changed files
with
38 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Makefile for building and pushing the WandB Operator image | ||
|
||
# Define variables | ||
IMAGE ?= wandb-operator # Name of the Docker image | ||
QUAY_DOCKER_REGISTRY ?= quay.io # Docker registry URL | ||
QUAY_PROJECT ?= wandb_tools # Project name in the registry | ||
VERSION ?= latest # Default version for the image | ||
BRANCH ?= main # Default branch for tagging | ||
|
||
# Targets | ||
|
||
# Build the Docker image | ||
build-image: | ||
docker build -t $(QUAY_DOCKER_REGISTRY)/$(QUAY_PROJECT)/$(IMAGE):$(VERSION) \ | ||
-f olm-catalog/bundle.Dockerfile olm-catalog/ | ||
|
||
docker tag $(QUAY_DOCKER_REGISTRY)/$(QUAY_PROJECT)/$(IMAGE):$(VERSION) \ | ||
$(QUAY_DOCKER_REGISTRY)/$(QUAY_PROJECT)/$(IMAGE):$(BRANCH) | ||
|
||
# Build and push the Docker image to the registry | ||
build-push: | ||
docker push $(QUAY_DOCKER_REGISTRY)/$(QUAY_PROJECT)/$(IMAGE):$(VERSION) | ||
docker push $(QUAY_DOCKER_REGISTRY)/$(QUAY_PROJECT)/$(IMAGE):$(BRANCH) | ||
|
||
# Specify that these targets do not represent files | ||
.PHONY: build-image build-push |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: CatalogSource | ||
metadata: | ||
name: wandb-operator-catalog | ||
labels: | ||
app.kubernetes.io/part-of: wandb-operator | ||
spec: | ||
sourceType: grpc | ||
image: quay.io/wandb_tools/wandb-operator-index:<release_tag> | ||
updateStrategy: | ||
registryPoll: | ||
interval: 5m |