forked from sclorg/mongodb-container
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update default config file to YAML format
Resolves: sclorg#197 Fix tests to test the new config file format. MongoDB 2.6 does not support modular storage engines. Have MONGODB_NOPREALLOC only for backward compatibility. Update tests to also use deprecated MONGODB_NOPREALLOC. Use user management functions introduced in 2.6 (already used in common.sh scripts)
- Loading branch information
Marek Skalický
committed
Mar 21, 2017
1 parent
c8af6e9
commit 7143f79
Showing
14 changed files
with
124 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 27 additions & 16 deletions
43
2.6/root/usr/share/container-scripts/mongodb/mongodb.conf.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,34 @@ | ||
# mongodb.conf | ||
## | ||
## For list of options visit: | ||
## https://docs.mongodb.org/manual/reference/configuration-options/ | ||
## | ||
|
||
port = ${CONTAINER_PORT} | ||
# systemLog Options - How to do logging | ||
systemLog: | ||
# Runs the mongod in a quiet mode that attempts to limit the amount of output | ||
quiet: ${MONGODB_QUIET} | ||
|
||
# Set this value to designate a directory for the mongod instance to store its data. | ||
# Default: /var/lib/mongodb/data | ||
dbpath = ${MONGODB_DATADIR} | ||
|
||
# Disable data file preallocation. Default: true | ||
noprealloc = ${MONGODB_NOPREALLOC} | ||
# net Options - Network interfaces settings | ||
net: | ||
# Specify port number (27017 by default) | ||
port: ${CONTAINER_PORT} | ||
|
||
# Set MongoDB to use a smaller default data file size. Default: true | ||
smallfiles = ${MONGODB_SMALLFILES} | ||
|
||
# Runs MongoDB in a quiet mode that attempts to limit the amount of output. | ||
# Default: true | ||
quiet = ${MONGODB_QUIET} | ||
# storage Options - How and Where to store data | ||
storage: | ||
# Directory for datafiles (defaults to /data/db/) | ||
dbPath: ${MONGODB_DATADIR} | ||
|
||
# Disable the HTTP interface (Defaults to localhost:28017). | ||
nohttpinterface = true | ||
# Enable or disable the preallocation of data files (true by default) | ||
preallocDataFiles: ${MONGODB_PREALLOC} | ||
|
||
# Size to use (in MB) for replication op log (default 5% of disk space) | ||
oplogSize = 64 | ||
# Use a smaller default file size (false by default) | ||
smallFiles: ${MONGODB_SMALLFILES} | ||
|
||
|
||
# replication Options - Configures replication | ||
replication: | ||
# Specifies a maximum size in megabytes for the replication operation log (i.e. the oplog, | ||
# 5% of disk space by default) | ||
oplogSizeMB: 64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 28 additions & 16 deletions
44
3.0-upg/root/usr/share/container-scripts/mongodb/mongodb.conf.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,35 @@ | ||
# mongodb.conf | ||
## | ||
## For list of options visit: | ||
## https://docs.mongodb.org/manual/reference/configuration-options/ | ||
## | ||
|
||
port = ${CONTAINER_PORT} | ||
# systemLog Options - How to do logging | ||
systemLog: | ||
# Runs the mongod in a quiet mode that attempts to limit the amount of output | ||
quiet: ${MONGODB_QUIET} | ||
|
||
# Set this value to designate a directory for the mongod instance to store its data. | ||
# Default: /var/lib/mongodb/data | ||
dbpath = ${MONGODB_DATADIR} | ||
|
||
# Disable data file preallocation. Default: true | ||
noprealloc = ${MONGODB_NOPREALLOC} | ||
# net Options - Network interfaces settings | ||
net: | ||
# Specify port number (27017 by default) | ||
port: ${CONTAINER_PORT} | ||
|
||
# Set MongoDB to use a smaller default data file size. Default: true | ||
smallfiles = ${MONGODB_SMALLFILES} | ||
|
||
# Runs MongoDB in a quiet mode that attempts to limit the amount of output. | ||
# Default: true | ||
quiet = ${MONGODB_QUIET} | ||
# storage Options - How and Where to store data | ||
storage: | ||
# Directory for datafiles (defaults to /data/db/) | ||
dbPath: ${MONGODB_DATADIR} | ||
|
||
# Disable the HTTP interface (Defaults to localhost:28017). | ||
nohttpinterface = true | ||
mmapv1: | ||
# Enable or disable the preallocation of data files (true by default) | ||
preallocDataFiles: ${MONGODB_PREALLOC} | ||
|
||
# Size to use (in MB) for replication op log (default 5% of disk space) | ||
oplogSize = 64 | ||
# Use a smaller default file size (false by default) | ||
smallFiles: ${MONGODB_SMALLFILES} | ||
|
||
|
||
# replication Options - Configures replication | ||
replication: | ||
# Specifies a maximum size in megabytes for the replication operation log (i.e. the oplog, | ||
# 5% of disk space by default) | ||
oplogSizeMB: 64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 23 additions & 12 deletions
35
3.2/root/usr/share/container-scripts/mongodb/mongodb.conf.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,28 @@ | ||
# mongodb.conf | ||
## | ||
## For list of options visit: | ||
## https://docs.mongodb.org/manual/reference/configuration-options/ | ||
## | ||
|
||
port = ${CONTAINER_PORT} | ||
# systemLog Options - How to do logging | ||
systemLog: | ||
# Runs the mongod in a quiet mode that attempts to limit the amount of output | ||
quiet: ${MONGODB_QUIET} | ||
|
||
# Set this value to designate a directory for the mongod instance to store its data. | ||
# Default: /var/lib/mongodb/data | ||
dbpath = ${MONGODB_DATADIR} | ||
|
||
# Runs MongoDB in a quiet mode that attempts to limit the amount of output. | ||
# Default: true | ||
quiet = ${MONGODB_QUIET} | ||
# net Options - Network interfaces settings | ||
net: | ||
# Specify port number (27017 by default) | ||
port: ${CONTAINER_PORT} | ||
|
||
# Disable the HTTP interface (Defaults to localhost:28017). | ||
nohttpinterface = true | ||
|
||
# Size to use (in MB) for replication op log (default 5% of disk space) | ||
oplogSize = 64 | ||
# storage Options - How and Where to store data | ||
storage: | ||
# Directory for datafiles (defaults to /data/db/) | ||
dbPath: ${MONGODB_DATADIR} | ||
|
||
|
||
# replication Options - Configures replication | ||
replication: | ||
# Specifies a maximum size in megabytes for the replication operation log (i.e. the oplog, | ||
# 5% of disk space by default) | ||
oplogSizeMB: 64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters