File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ services:
9393 network_mode : " host"
9494 profiles : ['mongo', 'ceph']
9595 image : ${MONGODB_IMAGE}
96+ volumes :
97+ - /tmp/artifacts/${JOB_NAME}:/logs
9698 ceph :
9799 network_mode : " host"
98100 profiles : ['ceph']
Original file line number Diff line number Diff line change @@ -7,4 +7,8 @@ init_RS() {
77}
88init_RS &
99
10+ # Pre-create log file as world-readable; mongod (logAppend: true) opens it without resetting permissions
11+ # Otherwise mongod create the file with 600 permissions, preventing CI artifact upload
12+ touch /logs/mongod.log && chmod 644 /logs/mongod.log
13+
1014mongod --bind_ip_all --config=/conf/mongod.conf
Original file line number Diff line number Diff line change 1+ systemLog:
2+ destination: file
3+ path: "/logs/mongod.log"
4+ logAppend: true
15storage:
26 journal:
37 enabled: true
You can’t perform that action at this time.
0 commit comments