Skip to content

Commit c39a532

Browse files
committed
Use Red Hat registry for all images in build
1 parent efb35ff commit c39a532

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile-server

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
ARG BASE_IMAGE=registry.redhat.io/ubi8/ubi-minimal
1616
ARG BASE_TAG=8.3-201
17-
ARG GO_WORKDIR=/go/src/github.com/ibm-messaging/mq-container
17+
ARG GO_WORKDIR=/opt/app-root/src/go/src/github.com/ibm-messaging/mq-container
1818
ARG MQ_URL="https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/9.2.0.0-IBM-MQ-Advanced-for-Developers-Non-Install-LinuxX64.tar.gz"
1919
###############################################################################
2020
# Build stage to build Go code
2121
###############################################################################
22-
FROM golang:1.14.9 as builder
22+
FROM registry.redhat.io/ubi8/go-toolset:1.14.7-15 as builder
2323
# The URL to download the MQ installer from in tar.gz format
2424
# This assumes an archive containing the MQ Non-Install packages
2525
ARG MQ_URL

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ test-advancedserver-cover: test/docker/vendor coverage
277277
# Build an MQ image. The commands used are slightly different between Docker and Podman
278278
define build-mq
279279
$(if $(findstring docker,$(COMMAND)), @docker network create build,)
280-
$(if $(findstring docker,$(COMMAND)), @docker run --rm --name $(BUILD_SERVER_CONTAINER) --network build --network-alias build --volume $(DOWNLOADS_DIR):/usr/share/nginx/html:ro --detach docker.io/nginx:alpine,)
281-
$(eval EXTRA_ARGS=$(if $(findstring docker,$(COMMAND)), --network build --build-arg MQ_URL=http://build:80/$4, --volume $(DOWNLOADS_DIR):/var/downloads --build-arg MQ_URL=file:///var/downloads/$4))
280+
$(if $(findstring docker,$(COMMAND)), @docker run --rm --name $(BUILD_SERVER_CONTAINER) --network build --network-alias build --volume $(DOWNLOADS_DIR):/opt/app-root/src:ro --detach registry.redhat.io/ubi8/nginx-118 nginx -g "daemon off;",)
281+
$(eval EXTRA_ARGS=$(if $(findstring docker,$(COMMAND)), --network build --build-arg MQ_URL=http://build:8080/$4, --volume $(DOWNLOADS_DIR):/var/downloads --build-arg MQ_URL=file:///var/downloads/$4))
282282
# Build the new image
283283
$(COMMAND) build \
284284
--tag $1:$2 \

0 commit comments

Comments
 (0)