Skip to content

Commit efc2861

Browse files
committed
fix
1 parent b67d10f commit efc2861

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Dockerfile.ci

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ WORKDIR /workspace
1313
COPY . .
1414

1515
ENV GOEXPERIMENT=strictfipsruntime
16-
RUN make -f Makefile-ocp.mk build-ocp GOFLAGS='-tags=strictfipsruntime -mod=vendor -a' GO_BUILD_ENV='CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH}' BINARY_NAME=openshift-mcp-server
16+
RUN make -f Makefile-ocp.mk build-ocp GO_BUILD_ENV='GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH}'
1717

1818
FROM --platform=$TARGETPLATFORM ${BASE_IMAGE}
1919
WORKDIR /
@@ -28,7 +28,9 @@ ENV CONFIG_PATH=/mcp_config.toml
2828
# Labels for enterprise contract
2929
LABEL com.redhat.component=openshift-mcp-server
3030
LABEL description="Red Hat OpenShift MCP Server"
31+
LABEL distribution-scope=private
3132
LABEL io.k8s.description="Red Hat OpenShift MCP Server"
33+
LABEL io.k8s.display-name="Red Hat OpenShift MCP Server"
3234
LABEL io.openshift.tags="openshift,mcp"
3335
LABEL name=openshift-mcp-server
3436
LABEL release=0.0.1

Dockerfile.ocp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ WORKDIR /workspace
1313
COPY . .
1414

1515
ENV GOEXPERIMENT=strictfipsruntime
16-
RUN make -f Makefile-ocp.mk build-ocp GOFLAGS='-tags=strictfipsruntime -mod=vendor -a' GO_BUILD_ENV='CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH}' BINARY_NAME=openshift-mcp-server
16+
RUN make -f Makefile-ocp.mk build-ocp GO_BUILD_ENV='GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH}'
1717

1818
FROM --platform=$TARGETPLATFORM ${BASE_IMAGE}
1919
WORKDIR /
@@ -28,7 +28,6 @@ ENV CONFIG_PATH=/mcp_config.toml
2828
# Labels for enterprise contract
2929
LABEL com.redhat.component=openshift-mcp-server
3030
LABEL description="Red Hat OpenShift MCP Server"
31-
LABEL io.k8s.description="Red Hat OpenShift MCP Server"
3231
LABEL io.openshift.tags="openshift,mcp"
3332
LABEL name=openshift-mcp-server
3433
LABEL release=0.0.1

Makefile-ocp.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ include Makefile
22

33
.PHONY: build-ocp
44
build-ocp: clean format
5-
$(GO_BUILD_ENV) go build $(COMMON_BUILD_ARGS) $(GOFLAGS) -o $(BINARY_NAME) ./cmd/kubernetes-mcp-server
5+
CGO_ENABLED=1 $(GO_BUILD_ENV) go build $(COMMON_BUILD_ARGS) -tags=strictfipsruntime -mod=vendor -a -o openshift-mcp-server ./cmd/kubernetes-mcp-server

0 commit comments

Comments
 (0)