From 5f000ff891b2a487aac121f13ad5a1aa0de23a17 Mon Sep 17 00:00:00 2001 From: Rob Parker Date: Fri, 30 Nov 2018 17:26:19 +0000 Subject: [PATCH] Update to IBM MQ version 9.1.1.0 (#251) * Update to MQ v9.1.1 * update incubating to 911 * check docker version on travis * travis docker version is now high enough --- .travis.yml | 3 +-- CHANGELOG.md | 16 ++++++++++++ Dockerfile-server | 2 +- Makefile-RHEL | 3 ++- Makefile-UBUNTU | 3 ++- README.md | 2 +- docs/building.md | 4 +-- docs/testing.md | 6 ++--- incubating/Dockerfile-sfbridge | 2 +- incubating/mq-explorer/Dockerfile | 2 +- incubating/mq-golang-sdk/Dockerfile | 2 +- incubating/mqadvanced-server-dev/Dockerfile | 4 +-- install-build-deps-ubuntu.sh | 4 --- manifests/dockerhub/manifest-9.1.1.yaml | 29 +++++++++++++++++++++ manifests/dockerhub/manifest-9.yaml | 6 ++--- manifests/dockerhub/manifest-latest.yaml | 6 ++--- manifests/dockerstore/manifest-9.1.1.yaml | 29 +++++++++++++++++++++ 17 files changed, 97 insertions(+), 26 deletions(-) create mode 100644 manifests/dockerhub/manifest-9.1.1.yaml create mode 100644 manifests/dockerstore/manifest-9.1.1.yaml diff --git a/.travis.yml b/.travis.yml index d53347b..0631a76 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,8 +29,7 @@ cache: env: - BASE_IMAGE=ubuntu:16.04 -# Commented out temporarily until Issue 166 is resolved -# - BASE_IMAGE=centos:latest + - BASE_IMAGE=centos:latest jobs: include: diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d51d44..042c004 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Change log +## 9.1.1.0 (2018-11-30) + +* Updated to MQ version 9.1.1.0 +* Created seperate RedHat Makefile for building images on RedHat machines with buildah +* Enabled REST messaging capability for app user. +* Added support for container suplimentary groups +* Removed IBM MQ version 9.0.5 details. +* Added additional Diagnostics ([#203](https://github.com/ibm-messaging/mq-container/pull/203)) +* Implementted GOSec to perform code scans for security vulnerabilities. (([#227](https://github.com/ibm-messaging/mq-container/pull/227))) +* Removed Queue manager create option from the MQ Console. +* Fixes for the following issues: + * Check explicitly for `/mnt/mqm` ([#175](https://github.com/ibm-messaging/mq-container/pull/175)) + * Force string output in chkmqhealthy ([#174](https://github.com/ibm-messaging/mq-container/pull/174)) + * Use -aG not -G when adding a group for a user + * Security fixes for libsystemd0 systemd systemd-sysv & libudev1 + ## 9.1.0.0 (2018-07-23) * Updated to MQ version 9.1.0.0 diff --git a/Dockerfile-server b/Dockerfile-server index 4324555..ba81c0c 100644 --- a/Dockerfile-server +++ b/Dockerfile-server @@ -13,7 +13,7 @@ # limitations under the License. ARG BASE_IMAGE=ubuntu:16.04 -ARG BUILDER_IMAGE=mq-golang-sdk:9.0.5.0-x86_64-ubuntu-16.04 +ARG BUILDER_IMAGE=mq-golang-sdk:9.1.1.0-x86_64-ubuntu-16.04 ############################################################################### # Build stage to build Go code diff --git a/Makefile-RHEL b/Makefile-RHEL index 0bd0939..11f552c 100644 --- a/Makefile-RHEL +++ b/Makefile-RHEL @@ -19,7 +19,7 @@ # BASE_IMAGE is the base image to use for MQ, for example "ubuntu" or "rhel" BASE_IMAGE ?= rhel # MQ_VERSION is the fully qualified MQ version number to build -MQ_VERSION ?= 9.1.0.0 +MQ_VERSION ?= 9.1.1.0 # 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. @@ -78,6 +78,7 @@ endif # Archive names for IBM MQ Advanced for Developers MQ_ARCHIVE_DEV_9.0.5.0=mqadv_dev905_linux_x86-64.tar.gz MQ_ARCHIVE_DEV_9.1.0.0=mqadv_dev910_linux_$(MQ_DEV_ARCH).tar.gz +MQ_ARCHIVE_DEV_9.1.1.0=mqadv_dev910_linux_$(MQ_DEV_ARCH).tar.gz ############################################################################### # Build targets diff --git a/Makefile-UBUNTU b/Makefile-UBUNTU index 4ff4c65..71a76b1 100644 --- a/Makefile-UBUNTU +++ b/Makefile-UBUNTU @@ -19,7 +19,7 @@ # BASE_IMAGE is the base image to use for MQ, for example "ubuntu" or "rhel" BASE_IMAGE ?= ubuntu:16.04 # MQ_VERSION is the fully qualified MQ version number to build -MQ_VERSION ?= 9.1.0.0 +MQ_VERSION ?= 9.1.1.0 # 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. @@ -91,6 +91,7 @@ endif # Archive names for IBM MQ Advanced for Developers MQ_ARCHIVE_DEV_9.0.5.0=mqadv_dev905_$(MQ_ARCHIVE_DEV_PLATFORM)_x86-64.tar.gz MQ_ARCHIVE_DEV_9.1.0.0=mqadv_dev910_$(MQ_ARCHIVE_DEV_PLATFORM)_$(MQ_DEV_ARCH).tar.gz +MQ_ARCHIVE_DEV_9.1.1.0=mqadv_dev911_$(MQ_ARCHIVE_DEV_PLATFORM)_$(MQ_DEV_ARCH).tar.gz ############################################################################### # Build targets diff --git a/README.md b/README.md index 95f631e..27d1aec 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ The Dockerfiles and associated code and scripts are licensed under the [Apache L Licenses for the products installed within the images are as follows: - [IBM MQ Advanced for Developers](http://www14.software.ibm.com/cgi-bin/weblap/lap.pl?la_formnum=Z125-3301-14&li_formnum=L-APIG-AVCJ4S) (International License Agreement for Non-Warranted Programs). This license may be viewed from an image using the `LICENSE=view` environment variable as described above or by following the link above. -- [IBM MQ Advanced](http://www14.software.ibm.com/cgi-bin/weblap/lap.pl?la_formnum=Z125-3301-14&li_formnum=L-APIG-AV6GV5) (International Program License Agreement). This license may be viewed from an image using the `LICENSE=view` environment variable as described above or by following the link above. +- [IBM MQ Advanced](http://www14.software.ibm.com/cgi-bin/weblap/lap.pl?la_formnum=Z125-3301-14&li_formnum=L-APIG-AZYF4X) (International Program License Agreement). This license may be viewed from an image using the `LICENSE=view` environment variable as described above or by following the link above. - License information for Ubuntu packages may be found in `/usr/share/doc/${package}/copyright` Note: The IBM MQ Advanced for Developers license does not permit further distribution and the terms restrict usage to a developer machine. diff --git a/docs/building.md b/docs/building.md index 48f198d..96bec9f 100644 --- a/docs/building.md +++ b/docs/building.md @@ -30,7 +30,7 @@ In addition, you need the following commonly installed tools: This procedure works for building the MQ Continuous Delivery release, on `x86_64`, `ppc64le` and `s390x` architectures. 1. Create a `downloads` directory in the root of this repository -2. Download MQ from [IBM Passport Advantage](https://www.ibm.com/software/passportadvantage/) or [IBM Fix Central](https://www.ibm.com/support/fixcentral), and place the downloaded file (for example, `IBM_MQ_9.1_UBUNTU_X86-64.tar.gz` for MQ V9.1.0 for Ubuntu on x86_64 architecture) in the `downloads` directory +2. Download MQ from [IBM Passport Advantage](https://www.ibm.com/software/passportadvantage/) or [IBM Fix Central](https://www.ibm.com/support/fixcentral), and place the downloaded file (for example, `IBM_MQ_9.1.1_UBUNTU_X86-64.tar.gz` for MQ V9.1.1 for Ubuntu on x86_64 architecture) in the `downloads` directory 3. Run `make build-advancedserver` > **Warning**: Note that MQ offers two different sets of packaging on Linux: one is called "MQ for Linux" and contains RPM files for installing on Red Hat Enterprise Linux and SUSE Linux Enterprise Server. The other package is called "MQ for Ubuntu", and contains DEB files for installing on Ubuntu. @@ -40,7 +40,7 @@ On a Red Hat Enterprise Linux host, the command `make build-advancedserver` will You can build a different version of MQ by setting the `MQ_VERSION` environment variable, for example: ```bash -MQ_VERSION=9.0.5.0 make build-advancedserver +MQ_VERSION=9.1.0.0 make build-advancedserver ``` If you have an MQ archive file with a different file name, you can specify a particular file (which must be in the `downloads` directory). You should also specify the MQ version, so that the resulting image is tagged correctly, for example: diff --git a/docs/testing.md b/docs/testing.md index e66d0d8..2d39ef6 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -25,7 +25,7 @@ make test-advancedserver You can specify the image to use directly by using the `MQ_IMAGE_ADVANCEDSERVER` or `MQ_IMAGE_DEVSERVER` variables, for example: ``` -MQ_IMAGE_ADVANCEDSERVER=mqadvanced-server:9.1.0.0-x86_64-ubuntu-16.04 make test-advancedserver +MQ_IMAGE_ADVANCEDSERVER=mqadvanced-server:9.1.1.0-x86_64-ubuntu-16.04 make test-advancedserver ``` You can pass parameters to `go test` with an environment variable. For example, to run the "TestGoldenPath" test, run the following command:: @@ -34,10 +34,10 @@ You can pass parameters to `go test` with an environment variable. For example, TEST_OPTS_DOCKER="-run TestGoldenPath" make test-advancedserver ``` -You can also use the same environment variables you specified when [building](./building), for example, the following will try and test an image called `mqadvanced-server:9.0.5.0-x86_64-ubuntu-16.04`: +You can also use the same environment variables you specified when [building](./building), for example, the following will try and test an image called `mqadvanced-server:9.1.0.0-x86_64-ubuntu-16.04`: ``` -MQ_VERSION=9.0.5.0 make test-advancedserver +MQ_VERSION=9.1.0.0 make test-advancedserver ``` ### Running the Docker tests with code coverage diff --git a/incubating/Dockerfile-sfbridge b/incubating/Dockerfile-sfbridge index 134cc4f..0815f43 100644 --- a/incubating/Dockerfile-sfbridge +++ b/incubating/Dockerfile-sfbridge @@ -15,7 +15,7 @@ FROM ubuntu:16.04 # The URL to download the MQ installer from in tar.gz format -ARG MQ_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev903_ubuntu_x86-64.tar.gz +ARG MQ_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev911_ubuntu_x86-64.tar.gz # The MQ packages to install ARG MQ_PACKAGES="ibmmq-sfbridge" diff --git a/incubating/mq-explorer/Dockerfile b/incubating/mq-explorer/Dockerfile index 0deffcb..9692099 100644 --- a/incubating/mq-explorer/Dockerfile +++ b/incubating/mq-explorer/Dockerfile @@ -15,7 +15,7 @@ FROM ubuntu:16.04 # The URL to download the MQ installer from in tar.gz format -ARG MQ_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev903_ubuntu_x86-64.tar.gz +ARG MQ_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev911_ubuntu_x86-64.tar.gz # The MQ packages to install ARG MQ_PACKAGES="ibmmq-explorer" diff --git a/incubating/mq-golang-sdk/Dockerfile b/incubating/mq-golang-sdk/Dockerfile index 584992d..589aad0 100644 --- a/incubating/mq-golang-sdk/Dockerfile +++ b/incubating/mq-golang-sdk/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -ARG BASE_IMAGE=mq-sdk:9.0.5.0-x86_64-ubuntu-16.04 +ARG BASE_IMAGE=mq-sdk:9.1.1.0-x86_64-ubuntu-16.04 FROM $BASE_IMAGE diff --git a/incubating/mqadvanced-server-dev/Dockerfile b/incubating/mqadvanced-server-dev/Dockerfile index f022258..148635a 100644 --- a/incubating/mqadvanced-server-dev/Dockerfile +++ b/incubating/mqadvanced-server-dev/Dockerfile @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -ARG BASE_IMAGE=mqadvanced-server-dev-base:9.0.5.0-x86_64-ubuntu-16.04 -ARG BUILDER_IMAGE=mq-golang-sdk:9.0.5.0-x86_64-ubuntu-16.04 +ARG BASE_IMAGE=mqadvanced-server-dev-base:9.1.1.0-x86_64-ubuntu-16.04 +ARG BUILDER_IMAGE=mq-golang-sdk:9.1.1.0-x86_64-ubuntu-16.04 ############################################################################### # Build stage to build Go code diff --git a/install-build-deps-ubuntu.sh b/install-build-deps-ubuntu.sh index bcb1bea..027a834 100755 --- a/install-build-deps-ubuntu.sh +++ b/install-build-deps-ubuntu.sh @@ -19,10 +19,6 @@ set -ex -curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - -sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" -sudo apt-get update -sudo apt-get -y install docker-ce curl https://glide.sh/get | sh sudo curl -Lo /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 sudo chmod +x /usr/local/bin/dep diff --git a/manifests/dockerhub/manifest-9.1.1.yaml b/manifests/dockerhub/manifest-9.1.1.yaml new file mode 100644 index 0000000..95c154f --- /dev/null +++ b/manifests/dockerhub/manifest-9.1.1.yaml @@ -0,0 +1,29 @@ +# © Copyright IBM Corporation 2018 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +image: ibmcom/mq:9.1.1.0 +manifests: + - image: ibmcom/mq:9.1.1.0-x86_64 + platform: + architecture: amd64 + os: linux + - image: ibmcom/mq:9.1.1.0-ppc64le + platform: + architecture: ppc64le + os: linux + - image: ibmcom/mq:9.1.1.0-s390x + platform: + architecture: s390x + os: linux + diff --git a/manifests/dockerhub/manifest-9.yaml b/manifests/dockerhub/manifest-9.yaml index 540b10c..a6d1426 100644 --- a/manifests/dockerhub/manifest-9.yaml +++ b/manifests/dockerhub/manifest-9.yaml @@ -14,15 +14,15 @@ image: ibmcom/mq:9 manifests: - - image: ibmcom/mq:9.1.0.0-x86_64 + - image: ibmcom/mq:9.1.1.0-x86_64 platform: architecture: amd64 os: linux - - image: ibmcom/mq:9.1.0.0-ppc64le + - image: ibmcom/mq:9.1.1.0-ppc64le platform: architecture: ppc64le os: linux - - image: ibmcom/mq:9.1.0.0-s390x + - image: ibmcom/mq:9.1.1.0-s390x platform: architecture: s390x os: linux diff --git a/manifests/dockerhub/manifest-latest.yaml b/manifests/dockerhub/manifest-latest.yaml index 051eac8..453184d 100644 --- a/manifests/dockerhub/manifest-latest.yaml +++ b/manifests/dockerhub/manifest-latest.yaml @@ -14,15 +14,15 @@ image: ibmcom/mq:latest manifests: - - image: ibmcom/mq:9.1.0.0-x86_64 + - image: ibmcom/mq:9.1.1.0-x86_64 platform: architecture: amd64 os: linux - - image: ibmcom/mq:9.1.0.0-ppc64le + - image: ibmcom/mq:9.1.1.0-ppc64le platform: architecture: ppc64le os: linux - - image: ibmcom/mq:9.1.0.0-s390x + - image: ibmcom/mq:9.1.1.0-s390x platform: architecture: s390x os: linux diff --git a/manifests/dockerstore/manifest-9.1.1.yaml b/manifests/dockerstore/manifest-9.1.1.yaml new file mode 100644 index 0000000..9c79f70 --- /dev/null +++ b/manifests/dockerstore/manifest-9.1.1.yaml @@ -0,0 +1,29 @@ +# © Copyright IBM Corporation 2018 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +image: ibmcorp/mqadvanced-server-dev:9.1.1.0 +manifests: + - image: ibmcorp/mqadvanced-server-dev:9.1.1.0-x86_64 + platform: + architecture: amd64 + os: linux + - image: ibmcorp/mqadvanced-server-dev:9.1.1.0-ppc64le + platform: + architecture: ppc64le + os: linux + - image: ibmcorp/mqadvanced-server-dev:9.1.1.0-s390x + platform: + architecture: s390x + os: linux +