File tree Expand file tree Collapse file tree 5 files changed +23
-2
lines changed
Expand file tree Collapse file tree 5 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ COPY config/ config/
1818COPY metrics/ metrics/
1919COPY console/ console/
2020COPY hack/ hack/
21+ COPY services/ services/
2122COPY main.go Makefile ./
2223
2324# Build
@@ -28,6 +29,7 @@ RUN make go-build
2829FROM gcr.io/distroless/static:nonroot
2930WORKDIR /
3031COPY --from=builder /workspace/bin/manager .
32+ COPY --from=builder /workspace/bin/ux-backend-server .
3133USER 65532:65532
3234
3335ENTRYPOINT ["/manager" ]
Original file line number Diff line number Diff line change @@ -108,6 +108,12 @@ docker-build: godeps-update test-setup go-test ## Build docker image with the ma
108108docker-push : # # Push docker image with the manager.
109109 docker push ${IMG}
110110
111+ devicefinder-build : # # Build devicefinder binary.
112+ ./hack/build-devicefinder.sh
113+
114+ devicefinder-push : # # Push devicefinder image.
115+ docker-push ${DEVICEFINDER_IMAGE}
116+
111117# #@ Deployment
112118
113119install : manifests kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e
4+ set -x
5+
6+ pushd services/devicefinder
7+ podman build -f Dockerfile -t " ${DEVICEFINDER_IMAGE} " ../.. \
8+ --build-arg=" LDFLAGS=${LDFLAGS} " --platform=" linux/amd64"
9+ popd
Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ export GO111MODULE=${GO111MODULE:-on}
88set -x
99
1010go build -a -o ${GOBIN:- bin} /manager main.go
11+ go build -a -o ${GOBIN:- bin} /ux-backend-server services/ux-backend/main.go
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ IMAGE_REGISTRY ?= quay.io
4545REGISTRY_NAMESPACE ?= ocs-dev
4646IMAGE_TAG ?= latest
4747IMAGE_NAME ?= odf-operator
48+ DEVICEFINDER_IMAGE_NAME ?= odf-devicefinder
4849BUNDLE_IMAGE_NAME ?= $(IMAGE_NAME ) -bundle
4950ODF_DEPS_BUNDLE_NAME ?= odf-dependencies
5051ODF_DEPS_BUNDLE_IMAGE_NAME ?= $(ODF_DEPS_BUNDLE_NAME ) -bundle
@@ -56,6 +57,9 @@ ODF_DEPS_CATALOG_IMAGE_NAME ?= $(ODF_DEPS_BUNDLE_NAME)-catalog
5657# IMG defines the image used for the operator.
5758IMG ?= $(IMAGE_REGISTRY ) /$(REGISTRY_NAMESPACE ) /$(IMAGE_NAME ) :$(IMAGE_TAG )
5859
60+ # DEVICEFINDER_IMAGE defines the image used for the devicefinder.
61+ DEVICEFINDER_IMAGE ?= $(IMAGE_REGISTRY ) /$(REGISTRY_NAMESPACE ) /$(DEVICEFINDER_IMAGE_NAME ) :$(IMAGE_TAG )
62+
5963# BUNDLE_IMG defines the image used for the bundle.
6064BUNDLE_IMG ?= $(IMAGE_REGISTRY ) /$(REGISTRY_NAMESPACE ) /$(BUNDLE_IMAGE_NAME ) :$(IMAGE_TAG )
6165
8387OPERATOR_NAMESPACE ?= openshift-storage
8488
8589ODF_CONSOLE_IMG ?= quay.io/ocs-dev/odf-console:latest
86- UX_BACKEND_SERVER_IMAGE ?= quay.io/ocs-dev/ocs-operator:latest
90+ UX_BACKEND_SERVER_IMAGE ?= $( IMG )
8791UX_BACKEND_OAUTH_IMAGE ?= quay.io/openshift/origin-oauth-proxy:4.20.0
88- DEVICEFINDER_IMAGE ?= quay.io/ocs-dev/ocs-devicefinder:latest
8992
9093ODF_DEPS_SUBSCRIPTION_PACKAGE ?= $(ODF_DEPS_BUNDLE_NAME )
9194ODF_DEPS_SUBSCRIPTION_CHANNEL ?= $(DEFAULT_CHANNEL )
You can’t perform that action at this time.
0 commit comments