Merge pull request #191 from mq-cloudpak/amf-update-go-920
Update go, go-toolset, and UBI
This commit is contained in:
@@ -13,9 +13,9 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
ARG BASE_IMAGE=registry.redhat.io/ubi8/ubi-minimal
|
ARG BASE_IMAGE=registry.redhat.io/ubi8/ubi-minimal
|
||||||
ARG BASE_TAG=8.4-212
|
ARG BASE_TAG=8.5-204
|
||||||
ARG BUILDER_IMAGE=registry.redhat.io/ubi8/go-toolset
|
ARG BUILDER_IMAGE=registry.redhat.io/ubi8/go-toolset
|
||||||
ARG BUILDER_TAG=1.15.14-18
|
ARG BUILDER_TAG=1.16.7-5
|
||||||
ARG GO_WORKDIR=/opt/app-root/src/go/src/github.com/ibm-messaging/mq-container
|
ARG GO_WORKDIR=/opt/app-root/src/go/src/github.com/ibm-messaging/mq-container
|
||||||
ARG MQ_URL="https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/9.2.0.4-IBM-MQ-Advanced-for-Developers-Non-Install-LinuxX64.tar.gz"
|
ARG MQ_URL="https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/9.2.0.4-IBM-MQ-Advanced-for-Developers-Non-Install-LinuxX64.tar.gz"
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@@ -37,6 +37,7 @@ RUN mkdir /opt/mqm \
|
|||||||
&& INSTALL_SDK=1 install-mq.sh \
|
&& INSTALL_SDK=1 install-mq.sh \
|
||||||
&& chown -R 1001:root /opt/mqm/*
|
&& chown -R 1001:root /opt/mqm/*
|
||||||
WORKDIR $GO_WORKDIR/
|
WORKDIR $GO_WORKDIR/
|
||||||
|
COPY go.mod go.sum ./
|
||||||
COPY cmd/ ./cmd
|
COPY cmd/ ./cmd
|
||||||
COPY internal/ ./internal
|
COPY internal/ ./internal
|
||||||
COPY pkg/ ./pkg
|
COPY pkg/ ./pkg
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -376,7 +376,9 @@ endif
|
|||||||
|
|
||||||
.PHONY: docker-login
|
.PHONY: docker-login
|
||||||
docker-login:
|
docker-login:
|
||||||
|
ifneq ($(DOCKER_USER),)
|
||||||
docker login -u $(DOCKER_USER) -p $(DOCKER_PASS)
|
docker login -u $(DOCKER_USER) -p $(DOCKER_PASS)
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: log-build-env
|
.PHONY: log-build-env
|
||||||
log-build-vars:
|
log-build-vars:
|
||||||
|
|||||||
@@ -22,5 +22,8 @@ set -ex
|
|||||||
sudo curl -Lo /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.5.1/dep-linux-$ARCH
|
sudo curl -Lo /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.5.1/dep-linux-$ARCH
|
||||||
sudo chmod +x /usr/local/bin/dep
|
sudo chmod +x /usr/local/bin/dep
|
||||||
|
|
||||||
go get -u golang.org/x/lint/golint
|
(
|
||||||
|
cd "$(mktemp -d)"
|
||||||
|
go get -u golang.org/x/lint/golint
|
||||||
|
)
|
||||||
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $GOPATH/bin 2.0.0 || echo "Gosec not installed. Platform may not be supported."
|
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $GOPATH/bin 2.0.0 || echo "Gosec not installed. Platform may not be supported."
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
//go:build mqdev
|
||||||
// +build mqdev
|
// +build mqdev
|
||||||
|
|
||||||
/*
|
/*
|
||||||
© Copyright IBM Corporation 2018, 2019
|
© Copyright IBM Corporation 2018, 2021
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
@@ -49,7 +50,7 @@ var insecureTLSConfig *tls.Config = &tls.Config{
|
|||||||
|
|
||||||
func waitForWebReady(t *testing.T, cli *client.Client, ID string, tlsConfig *tls.Config) {
|
func waitForWebReady(t *testing.T, cli *client.Client, ID string, tlsConfig *tls.Config) {
|
||||||
httpClient := http.Client{
|
httpClient := http.Client{
|
||||||
Timeout: time.Duration(3 * time.Second),
|
Timeout: time.Duration(10 * time.Second),
|
||||||
Transport: &http.Transport{
|
Transport: &http.Transport{
|
||||||
TLSClientConfig: tlsConfig,
|
TLSClientConfig: tlsConfig,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user