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
I recently tried creating a standalone replica set for a build pipeline that uses multi-document transactions in tests. The issue is that the host is only available when the build is running and I cannot manually run rs.initiate() for cluster setup. From the docs and this issue I came up with this (there are more services in the compose file but I skipped them here):
storage:dbPath: /data/dbjournal:enabled: truenet:port: 27017bindIp: 0.0.0.0# how the process runsprocessManagement:timeZoneInfo: /usr/share/zoneinfo#operationProfiling:replication:replSetName: rp0
and /etc/mongo-setup contains a simple .sh file with this single line:
mongo --eval "rs.initiate()"
Later, I noticed because I changed the entrypoint in the compose file, docker-entrypoint.sh is not run and as a result, the shell file in docker-entrypoint-initdb.d is skipped. Any help regarding this is much appreciated.
The text was updated successfully, but these errors were encountered:
I recently tried creating a standalone replica set for a build pipeline that uses multi-document transactions in tests. The issue is that the host is only available when the build is running and I cannot manually run
rs.initiate()
for cluster setup. From the docs and this issue I came up with this (there are more services in the compose file but I skipped them here):The contents of
/etc/mongod.conf
is as follows:and
/etc/mongo-setup
contains a simple.sh
file with this single line:mongo --eval "rs.initiate()"
Later, I noticed because I changed the entrypoint in the compose file,
docker-entrypoint.sh
is not run and as a result, the shell file indocker-entrypoint-initdb.d
is skipped. Any help regarding this is much appreciated.The text was updated successfully, but these errors were encountered: