Change mqm uid/gid to 999
This commit is contained in:
@@ -22,7 +22,7 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.ibm.com/mq-container/mq-container/pkg/name"
|
"github.com/ibm-messaging/mq-container/pkg/name"
|
||||||
)
|
)
|
||||||
|
|
||||||
func queueManagerHealthy() (bool, error) {
|
func queueManagerHealthy() (bool, error) {
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
//const mainDir string := "/mnt/mqm"
|
//const mainDir string := "/mnt/mqm"
|
||||||
const mqmUID uint32 = 1000
|
const mqmUID uint32 = 999
|
||||||
const mqmGID uint32 = 1000
|
const mqmGID uint32 = 999
|
||||||
|
|
||||||
func createVolume(path string) error {
|
func createVolume(path string) error {
|
||||||
// fi, err := os.Stat(path)
|
// fi, err := os.Stat(path)
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ RUN chmod u+x /usr/local/bin/install-mq.sh \
|
|||||||
|
|
||||||
ENV LANG=en_US.UTF-8
|
ENV LANG=en_US.UTF-8
|
||||||
|
|
||||||
# Run as mqm (1000)
|
# Run as mqm (999)
|
||||||
USER 1000
|
USER 999
|
||||||
|
|
||||||
ENTRYPOINT ["MQExplorer"]
|
ENTRYPOINT ["MQExplorer"]
|
||||||
@@ -49,8 +49,8 @@ curl -LO $MQ_URL
|
|||||||
tar -zxvf ./*.tar.gz
|
tar -zxvf ./*.tar.gz
|
||||||
|
|
||||||
# Recommended: Create the mqm user ID with a fixed UID and group, so that the file permissions work between different images
|
# Recommended: Create the mqm user ID with a fixed UID and group, so that the file permissions work between different images
|
||||||
groupadd --gid 1000 mqm
|
groupadd --system --gid 999 mqm
|
||||||
useradd --uid 1000 --gid mqm mqm
|
useradd --system --uid 999 --gid mqm mqm
|
||||||
usermod -G mqm root
|
usermod -G mqm root
|
||||||
cd /tmp/mq/DebianMQServer
|
cd /tmp/mq/DebianMQServer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user