committed by
GitHub Enterprise
commit
f16ce5e4a4
@@ -158,7 +158,7 @@ RUN chown -R 1001:root /etc/mqm/* \
|
|||||||
&& install --directory --mode 2775 --owner 1001 --group root /run/runmqdevserver
|
&& install --directory --mode 2775 --owner 1001 --group root /run/runmqdevserver
|
||||||
ENV MQ_ENABLE_EMBEDDED_WEB_SERVER=1 MQ_GENERATE_CERTIFICATE_HOSTNAME=localhost
|
ENV MQ_ENABLE_EMBEDDED_WEB_SERVER=1 MQ_GENERATE_CERTIFICATE_HOSTNAME=localhost
|
||||||
ENV LD_LIBRARY_PATH=/opt/mqm/lib64
|
ENV LD_LIBRARY_PATH=/opt/mqm/lib64
|
||||||
ENV MQS_PERMIT_UNKNOWN_ID=true
|
|
||||||
ENV MQ_CONNAUTH_USE_HTP=true
|
ENV MQ_CONNAUTH_USE_HTP=true
|
||||||
|
ENV MQS_PERMIT_UNKNOWN_ID=true
|
||||||
USER 1001
|
USER 1001
|
||||||
ENTRYPOINT ["runmqdevserver"]
|
ENTRYPOINT ["runmqdevserver"]
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ import (
|
|||||||
"github.com/ibm-messaging/mq-container/internal/command"
|
"github.com/ibm-messaging/mq-container/internal/command"
|
||||||
containerruntime "github.com/ibm-messaging/mq-container/internal/containerruntime"
|
containerruntime "github.com/ibm-messaging/mq-container/internal/containerruntime"
|
||||||
"github.com/ibm-messaging/mq-container/internal/mqscredact"
|
"github.com/ibm-messaging/mq-container/internal/mqscredact"
|
||||||
|
"github.com/ibm-messaging/mq-container/internal/mqversion"
|
||||||
"github.com/ibm-messaging/mq-container/internal/ready"
|
"github.com/ibm-messaging/mq-container/internal/ready"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -203,9 +204,24 @@ func getQueueManagerDataDir(mounts map[string]string, name string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getCreateQueueManagerArgs(mounts map[string]string, name string, devMode bool) []string {
|
func getCreateQueueManagerArgs(mounts map[string]string, name string, devMode bool) []string {
|
||||||
|
|
||||||
|
mqversionBase := "9.2.1.0"
|
||||||
|
|
||||||
|
// use "UserExternal" only if we are 9.2.1.0 or above.
|
||||||
|
oaVal := "user"
|
||||||
|
mqVersionCheck, err := mqversion.Compare(mqversionBase)
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("Error comparing MQ versions for oa,rc: %v", mqVersionCheck)
|
||||||
|
}
|
||||||
|
if mqVersionCheck >= 0 {
|
||||||
|
oaVal = "UserExternal"
|
||||||
|
}
|
||||||
|
|
||||||
|
//build args
|
||||||
args := []string{"-ii", "/etc/mqm/", "-ic", "/etc/mqm/", "-q", "-p", "1414"}
|
args := []string{"-ii", "/etc/mqm/", "-ic", "/etc/mqm/", "-q", "-p", "1414"}
|
||||||
if devMode {
|
if devMode {
|
||||||
args = append(args, "-oa", "user")
|
args = append(args, "-oa", oaVal)
|
||||||
}
|
}
|
||||||
if _, ok := mounts["/mnt/mqm-log"]; ok {
|
if _, ok := mounts["/mnt/mqm-log"]; ok {
|
||||||
args = append(args, "-ld", "/mnt/mqm-log/log")
|
args = append(args, "-ld", "/mnt/mqm-log/log")
|
||||||
|
|||||||
Reference in New Issue
Block a user