|
3 | 3 | SHELL := /usr/bin/env bash -o pipefail |
4 | 4 | .SHELLFLAGS := -ec |
5 | 5 |
|
6 | | -ifeq ($(origin IMAGE_REPO), undefined) |
7 | | -IMAGE_REPO := quay.io/operator-framework/catalogd |
8 | | -endif |
9 | | -export IMAGE_REPO |
10 | | - |
11 | | -ifeq ($(origin IMAGE_TAG), undefined) |
12 | | -IMAGE_TAG := devel |
13 | | -endif |
14 | | -export IMAGE_TAG |
15 | | - |
16 | | -IMAGE := $(IMAGE_REPO):$(IMAGE_TAG) |
17 | | - |
18 | 6 | ifneq (, $(shell command -v docker 2>/dev/null)) |
19 | 7 | CONTAINER_RUNTIME := docker |
20 | 8 | else ifneq (, $(shell command -v podman 2>/dev/null)) |
|
26 | 14 | # bingo manages consistent tooling versions for things like kind, kustomize, etc. |
27 | 15 | include ./../.bingo/Variables.mk |
28 | 16 |
|
29 | | -# Dependencies |
30 | | -export CERT_MGR_VERSION := v1.15.3 |
31 | | -ENVTEST_SERVER_VERSION := $(shell go list -m k8s.io/client-go | cut -d" " -f2 | sed 's/^v0\.\([[:digit:]]\{1,\}\)\.[[:digit:]]\{1,\}$$/1.\1.x/') |
32 | | - |
33 | | -# Cluster configuration |
34 | | -ifeq ($(origin KIND_CLUSTER_NAME), undefined) |
35 | | -KIND_CLUSTER_NAME := catalogd |
36 | | -endif |
37 | | - |
38 | 17 | ##@ General |
39 | 18 |
|
40 | 19 | # The help target prints out all targets with their descriptions organized |
@@ -110,14 +89,6 @@ $(LINUX_BINARIES): BUILDBIN = bin/linux |
110 | 89 | $(LINUX_BINARIES): |
111 | 90 | GOOS=linux $(BUILDCMD) |
112 | 91 |
|
113 | | -.PHONY: build-container |
114 | | -build-container: build-linux ## Build docker image for catalogd. |
115 | | - $(CONTAINER_RUNTIME) build -f Dockerfile -t $(IMAGE) ./bin/linux |
116 | | - |
117 | | -.PHONY: kind-load |
118 | | -kind-load: $(KIND) ## Load the built images onto the local cluster |
119 | | - $(CONTAINER_RUNTIME) save $(IMAGE) | $(KIND) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME) |
120 | | - |
121 | 92 | ##@ Deploy |
122 | 93 |
|
123 | 94 | # The demo script requires to install asciinema with: brew install asciinema to run on mac os envs. |
|
0 commit comments