Skip to content

Commit b03806c

Browse files
alanconwayzhuje
authored andcommitted
chore: Use UBI image, enable use of alternate image repos.
1 parent e93e5ee commit b03806c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN make install-frontend
1212
COPY web/ web/
1313
RUN make build-frontend
1414

15-
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_golang_1.23 as go-builder
15+
FROM registry.redhat.io/ubi9/go-toolset:latest AS go-builder
1616

1717
WORKDIR /opt/app-root
1818

scripts/build-image.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@ set -euo pipefail
55
PREFER_PODMAN="${PREFER_PODMAN:-1}"
66
PUSH="${PUSH:-0}"
77
TAG="${TAG:-v0.1.0}"
8+
9+
REGISTRY_HOST=${REGISTRY_HOST:-quay.io}
810
REGISTRY_ORG="${REGISTRY_ORG:-openshift-observability-ui}"
11+
REGISTRY_BASE=$REGISTRY_HOST/$REGISTRY_ORG
912

1013
if [[ -x "$(command -v podman)" && $PREFER_PODMAN == 1 ]]; then
1114
OCI_BIN="podman"
1215
else
1316
OCI_BIN="docker"
1417
fi
1518

16-
BASE_IMAGE="quay.io/${REGISTRY_ORG}/troubleshooting-panel-console-plugin"
19+
BASE_IMAGE="${REGISTRY_BASE}/troubleshooting-panel-console-plugin"
1720
IMAGE=${BASE_IMAGE}:${TAG}
1821

1922
echo "Building image '${IMAGE}' with ${OCI_BIN}"

0 commit comments

Comments
 (0)