Skip to content

Commit

Permalink
hack: Dockerfile to use UBI image, Makefile to use podman
Browse files Browse the repository at this point in the history
  • Loading branch information
alebedev87 committed Nov 14, 2023
1 parent 0291b63 commit 0c1db81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions hack/Dockerfile.debug
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM centos:8
RUN yum install -y https://github.com/frobware/haproxy-hacks/raw/master/RPMs/haproxy24-2.4.1-1.el8.x86_64.rpm
FROM registry.access.redhat.com/ubi8/ubi
RUN yum install -y https://github.com/frobware/haproxy-builds/raw/master/rhaos-4.14-rhel-8/haproxy26-2.6.13-2.rhaos4.14.el8.x86_64.rpm
RUN haproxy -vv
RUN INSTALL_PKGS="rsyslog procps-ng util-linux socat" && \
yum install -y $INSTALL_PKGS && \
Expand Down
7 changes: 4 additions & 3 deletions hack/Makefile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ export GOOS=linux
REGISTRY ?= quay.io
IMAGE ?= openshift/openshift-router
TAG ?= latest
IMAGEBUILDER ?= podman

new-openshift-router-image:
GO111MODULE=on CGO_ENABLED=0 GOFLAGS=-mod=vendor go build -o openshift-router -gcflags=all="-N -l" ./cmd/openshift-router
imagebuilder -t $(IMAGE):$(TAG) -f hack/Dockerfile.debug .
$(IMAGEBUILDER) build -t $(IMAGE):$(TAG) -f hack/Dockerfile.debug .

push:
docker tag $(IMAGE):$(TAG) $(REGISTRY)/$(IMAGE):$(TAG)
docker push $(REGISTRY)/$(IMAGE):$(TAG)
$(IMAGEBUILDER) tag $(IMAGE):$(TAG) $(REGISTRY)/$(IMAGE):$(TAG)
$(IMAGEBUILDER) push $(REGISTRY)/$(IMAGE):$(TAG)

set-image:
oc scale --replicas 0 -n openshift-cluster-version deployments/cluster-version-operator
Expand Down

0 comments on commit 0c1db81

Please sign in to comment.