diff --git a/Makefile b/Makefile index 38c9f3b..15d158d 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,8 @@ ############################################################################### # MQ_VERSION is the fully qualified MQ version number to build MQ_VERSION ?= 9.1.2.0 +# RELEASE shows what release of the container code has been built +RELEASE ?= 3 # MQ_ARCHIVE is the name of the file, under the downloads directory, from which MQ Advanced can # be installed. The default value is derived from MQ_VERSION, BASE_IMAGE and architecture # Does not apply to MQ Advanced for Developers. @@ -217,7 +219,9 @@ define build-mq --label version=$(MQ_VERSION) \ --label name=$1 \ --label build-date=$(shell date +%Y-%m-%dT%H:%M:%S%z) \ - --label release="" \ + --label release="$(RELEASE)" \ + --label architecture="$(ARCH)" \ + --label run="docker run -d -e LICENSE=accept $1:$2" \ --label vcs-ref=$(IMAGE_REVISION) \ --label vcs-type=git \ --label vcs-url=$(IMAGE_SOURCE) \ @@ -237,7 +241,9 @@ define build-mq-ctr --label version=$(MQ_VERSION) \ --label name=$1 \ --label build-date=$(shell date +%Y-%m-%dT%H:%M:%S%z) \ - --label release="" \ + --label release="$(RELEASE)" \ + --label architecture="$(ARCH)" \ + --label run="docker run -d -e LICENSE=accept $1:$2" \ --label vcs-ref=$(IMAGE_REVISION) \ --label vcs-type=git \ --label vcs-url=$(IMAGE_SOURCE) \ diff --git a/cmd/runmqserver/tls.go b/cmd/runmqserver/tls.go index 85c1ce4..ffc200d 100644 --- a/cmd/runmqserver/tls.go +++ b/cmd/runmqserver/tls.go @@ -120,7 +120,7 @@ func configureTLS(certLabel string, cmsKeystore tls.KeyStoreData, devmode bool) return nil } -// configureSSOTLS configures TLS for the Cloud Integration Platform Single Sign-On +// configureSSOTLS configures MQ Console TLS for Single Sign-On func configureSSOTLS(p12TrustStore tls.KeyStoreData) (string, error) { // TODO find way to supply this // Override the webstore variables to hard coded defaults diff --git a/install-mq.sh b/install-mq.sh index 36a691f..cdf3e27 100644 --- a/install-mq.sh +++ b/install-mq.sh @@ -100,3 +100,7 @@ sed -i 's/password\t\[success=1 default=ignore\]\tpam_unix\.so obscure sha512/pa # List all the installed packages, for the build log $RPM && rpm -q --all || true $UBUNTU && dpkg --list || true + +# Copy MQ Licenses into the correct location +mkdir -p /licenses +cp /opt/mqm/licenses/*.txt /licenses/