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: README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ You will require the following programs:
36
36
37
37
38
38
### MQ Client SDK
39
-
The MQ Client SDK for C programs is required in order to compile and run Go programs. You may have this from an MQ Client installation image (eg rpm, dep formats for Linux, msi for Windows).
39
+
The MQ Client SDK for C programs is required in order to compile and run Go programs. You may have this from an MQ Client installation image (eg rpm, deb formats for Linux, msi for Windows).
40
40
41
41
For Linux x64 and Windows systems, you may also choose to use the
42
42
MQ Redistributable Client package which is a simple zip/tar file that does not need
@@ -84,9 +84,17 @@ containers. You still need to provide the configuration file at runtime, perhaps
84
84
85
85
```
86
86
docker build -t mqprom:1.0 .
87
-
docker run -v <directory>/mq_prometheus.yaml:/opt/config/mq_prometheus.yaml mqprom:1.0
87
+
docker run -p 9157:9157 -v <directory>/mq_prometheus.yaml:/opt/config/mq_prometheus.yaml mqprom:1.0
88
88
```
89
89
90
+
### Platform support
91
+
This Dockerfile should work for a variety of platforms. For those with a Redistributable client, it uses
92
+
`curl` to automatically download and unpack the required MQ files. For other platforms, it assumes that
93
+
you have an `MQDEB` subdirectory under this root, and then copied the `.deb` files from your
94
+
real MQ installation tree into it.
95
+
96
+
### Additional container scripts
97
+
90
98
As a more flexible example, you can use the `buildMonitors.sh` script in the `scripts` subdirectory to
91
99
build a Docker container that in turn will build all the binary programs and copy them to a local directory.
92
100
That script also sets some extra version-related flags that will be shown when the program starts. The container will
0 commit comments