You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/building.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,21 +13,42 @@ You will also need a [Red Hat Account](https://access.redhat.com) to be able to
13
13
14
14
## Building a production image
15
15
16
+
From MQ 9.2.X, the MQ container adds support for MQ Long Term Support (LTS) **production licensed** releases.
17
+
18
+
### MQ Continuous Delivery (CD)
19
+
16
20
This procedure works for building the MQ Continuous Delivery release, on `amd64`, `ppc64le` and `s390x` architectures.
17
21
18
22
1. Create a `downloads` directory in the root of this repository
19
23
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.2.0_LINUX_X86-64_NOINST.tar.gz`) in the `downloads` directory
20
24
3. Login to the Red Hat Registry: `docker login registry.redhat.io` using your Customer Portal credentials.
21
25
4. Run `make build-advancedserver`
22
26
23
-
> **Warning**: Note that from MQ 9.2.X, the MQ container build uses a 'No-Install' MQ Package, available under `IBM MQ V9.2.x Continuous Delivery Release components eAssembly, part no. CJ7CNML`
27
+
> **Warning**: Note that from MQ 9.2.X CD, the MQ container build uses a 'No-Install' MQ Package, available under `IBM MQ V9.2.x Continuous Delivery Release components eAssembly, part no. CJ7CNML`
24
28
25
29
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:
26
30
27
31
```bash
28
32
MQ_ARCHIVE=mq-1.2.3.4.tar.gz MQ_VERSION=1.2.3.4 make build-advancedserver
29
33
```
30
34
35
+
### MQ Long Term Support (LTS)
36
+
37
+
This procedure works for building the MQ Long Term Support release, on `amd64`, `ppc64le` and `s390x` architectures.
38
+
39
+
1. Create a `downloads` directory in the root of this repository
40
+
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, `9.2.0.1-IBM-MQ-Advanced-Non-Install-LinuxX86.tar.gz`) in the `downloads` directory
41
+
3. Login to the Red Hat Registry: `docker login registry.redhat.io` using your Customer Portal credentials.
42
+
4. Run `LTS=true make build-advancedserver`
43
+
44
+
> **Warning**: Note that from MQ 9.2 LTS, the MQ container build uses a 'No-Install' MQ Package, available under `IBM MQ V9.2 Long Term Support Release components eAssembly, part no. CXXXXXX`
45
+
46
+
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:
47
+
48
+
```bash
49
+
MQ_ARCHIVE=mq-1.2.3.4.tar.gz MQ_VERSION=1.2.3.4 LTS=true make build-advancedserver
50
+
```
51
+
31
52
## Building a developer image
32
53
33
54
Login to the Red Hat Registry: `docker login registry.redhat.io` using your Customer Portal credentials.
// Compare returns an integer comparing two MQ version strings lexicographically. The result will be 0 if currentVersion==checkVersion, -1 if currentVersion < checkVersion, and +1 if currentVersion > checkVersion
36
+
funcCompare(checkVersionstring) (int, error) {
37
+
currentVersion, err:=Get()
38
+
iferr!=nil {
39
+
return0, err
40
+
}
41
+
// trim any suffix from MQ version x.x.x.x
42
+
currentVersion=currentVersion[0:7]
43
+
ifcurrentVersion<checkVersion {
44
+
return-1, nil
45
+
} elseifcurrentVersion==checkVersion {
46
+
return0, nil
47
+
} elseifcurrentVersion>checkVersion {
48
+
return1, nil
49
+
}
50
+
return0, fmt.Errorf("Failed to compare MQ versions")
0 commit comments