Put variable data in /run instead of /tmp
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# © Copyright IBM Corporation 2015, 2017
|
# © Copyright IBM Corporation 2015, 2018
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
@@ -48,6 +48,10 @@ RUN chmod u+x /usr/local/bin/install-mq.sh \
|
|||||||
&& sleep 1 \
|
&& sleep 1 \
|
||||||
&& install-mq.sh
|
&& install-mq.sh
|
||||||
|
|
||||||
|
# Create a directory for runtime data from runmqserver
|
||||||
|
RUN mkdir -p /run/runmqserver \
|
||||||
|
&& chown mqm:mqm /run/runmqserver
|
||||||
|
|
||||||
COPY --from=builder /go/src/github.com/ibm-messaging/mq-container/runmqserver /usr/local/bin/
|
COPY --from=builder /go/src/github.com/ibm-messaging/mq-container/runmqserver /usr/local/bin/
|
||||||
COPY --from=builder /go/src/github.com/ibm-messaging/mq-container/chkmq* /usr/local/bin/
|
COPY --from=builder /go/src/github.com/ibm-messaging/mq-container/chkmq* /usr/local/bin/
|
||||||
COPY NOTICES.txt /opt/mqm/licenses/notices-container.txt
|
COPY NOTICES.txt /opt/mqm/licenses/notices-container.txt
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import (
|
|||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
const fileName string = "/tmp/runmqserverReady"
|
const fileName string = "/run/runmqserver/ready"
|
||||||
|
|
||||||
func fileExists() (bool, error) {
|
func fileExists() (bool, error) {
|
||||||
_, err := os.Stat(fileName)
|
_, err := os.Stat(fileName)
|
||||||
|
|||||||
Reference in New Issue
Block a user