SERVER-121793: prettier-format README files (#49712)
GitOrigin-RevId: 3206b35683899266c7dcbee2d2a5bd27dd57b541
This commit is contained in:
parent
87dede76a6
commit
3634a70cf5
@ -8,8 +8,6 @@
|
|||||||
*.json
|
*.json
|
||||||
*.wxs
|
*.wxs
|
||||||
|
|
||||||
README
|
|
||||||
|
|
||||||
# Ignore files that fail after format
|
# Ignore files that fail after format
|
||||||
jstests/noPassthrough/js_exceptions.js
|
jstests/noPassthrough/js_exceptions.js
|
||||||
jstests/noPassthrough/network/client_metadata_slowlog.js
|
jstests/noPassthrough/network/client_metadata_slowlog.js
|
||||||
|
|||||||
175
distsrc/README
175
distsrc/README
@ -1,88 +1,87 @@
|
|||||||
MongoDB README
|
MongoDB README
|
||||||
|
|
||||||
Welcome to MongoDB!
|
Welcome to MongoDB!
|
||||||
|
|
||||||
COMPONENTS
|
COMPONENTS
|
||||||
|
|
||||||
mongod - The database server.
|
mongod - The database server.
|
||||||
mongos - Sharding router.
|
mongos - Sharding router.
|
||||||
mongo - The database shell (uses interactive javascript).
|
mongo - The database shell (uses interactive javascript).
|
||||||
|
|
||||||
UTILITIES
|
UTILITIES
|
||||||
|
|
||||||
install_compass - Installs MongoDB Compass for your platform.
|
install_compass - Installs MongoDB Compass for your platform.
|
||||||
|
|
||||||
BUILDING
|
BUILDING
|
||||||
|
|
||||||
See docs/building.md.
|
See docs/building.md.
|
||||||
|
|
||||||
RUNNING
|
RUNNING
|
||||||
|
|
||||||
For command line options invoke:
|
For command line options invoke:
|
||||||
|
|
||||||
$ ./mongod --help
|
$ ./mongod --help
|
||||||
|
|
||||||
To run a single server database:
|
To run a single server database:
|
||||||
|
|
||||||
$ sudo mkdir -p /data/db
|
$ sudo mkdir -p /data/db
|
||||||
$ ./mongod
|
$ ./mongod
|
||||||
$
|
$
|
||||||
$ # The mongo javascript shell connects to localhost and test database by default:
|
$ # The mongo javascript shell connects to localhost and test database by default:
|
||||||
$ ./mongo
|
$ ./mongo
|
||||||
> help
|
> help
|
||||||
|
|
||||||
INSTALLING COMPASS
|
INSTALLING COMPASS
|
||||||
|
|
||||||
You can install compass using the install_compass script packaged with MongoDB:
|
You can install compass using the install_compass script packaged with MongoDB:
|
||||||
|
|
||||||
$ ./install_compass
|
$ ./install_compass
|
||||||
|
|
||||||
This will download the appropriate MongoDB Compass package for your platform
|
This will download the appropriate MongoDB Compass package for your platform
|
||||||
and install it.
|
and install it.
|
||||||
|
|
||||||
DRIVERS
|
DRIVERS
|
||||||
|
|
||||||
Client drivers for most programming languages are available at
|
Client drivers for most programming languages are available at
|
||||||
https://docs.mongodb.com/manual/applications/drivers/. Use the shell
|
https://docs.mongodb.com/manual/applications/drivers/. Use the shell
|
||||||
("mongo") for administrative tasks.
|
("mongo") for administrative tasks.
|
||||||
|
|
||||||
BUG REPORTS
|
BUG REPORTS
|
||||||
|
|
||||||
See https://github.com/mongodb/mongo/wiki/Submit-Bug-Reports.
|
See https://github.com/mongodb/mongo/wiki/Submit-Bug-Reports.
|
||||||
|
|
||||||
PACKAGING
|
PACKAGING
|
||||||
|
|
||||||
Packages are created dynamically by the packager.py script located in the
|
Packages are created dynamically by the packager.py script located in the
|
||||||
buildscripts directory. This will generate RPM and Debian packages.
|
buildscripts directory. This will generate RPM and Debian packages.
|
||||||
|
|
||||||
DOCUMENTATION
|
DOCUMENTATION
|
||||||
|
|
||||||
https://docs.mongodb.com/manual/
|
https://docs.mongodb.com/manual/
|
||||||
|
|
||||||
CLOUD HOSTED MONGODB
|
CLOUD HOSTED MONGODB
|
||||||
|
|
||||||
https://www.mongodb.com/cloud/atlas
|
https://www.mongodb.com/cloud/atlas
|
||||||
|
|
||||||
FORUMS
|
FORUMS
|
||||||
|
|
||||||
https://community.mongodb.com
|
https://community.mongodb.com
|
||||||
|
|
||||||
A forum for technical questions about using MongoDB.
|
A forum for technical questions about using MongoDB.
|
||||||
|
|
||||||
https://community.mongodb.com/c/server-dev
|
https://community.mongodb.com/c/server-dev
|
||||||
|
|
||||||
A forum for technical questions about building and developing MongoDB.
|
A forum for technical questions about building and developing MongoDB.
|
||||||
|
|
||||||
LEARN MONGODB
|
LEARN MONGODB
|
||||||
|
|
||||||
https://university.mongodb.com/
|
https://university.mongodb.com/
|
||||||
|
|
||||||
LICENSE
|
LICENSE
|
||||||
|
|
||||||
MongoDB is free and open-source. Versions released prior to October 16,
|
MongoDB is free and open-source. Versions released prior to October 16,
|
||||||
2018 are published under the AGPL. All versions released after October
|
2018 are published under the AGPL. All versions released after October
|
||||||
16, 2018, including patch fixes for prior versions, are published under
|
16, 2018, including patch fixes for prior versions, are published under
|
||||||
the Server Side Public License (SSPL) v1. See individual files for
|
the Server Side Public License (SSPL) v1. See individual files for
|
||||||
details which will specify the license applicable to each file. Files
|
details which will specify the license applicable to each file. Files
|
||||||
subject to the SSPL will be noted in their headers.
|
subject to the SSPL will be noted in their headers.
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
This directory contains two scripts.
|
This directory contains two scripts.
|
||||||
|
|
||||||
mkcert.py - A python3 script using PyOpenSSL to generate the majority of
|
mkcert.py - A python3 script using PyOpenSSL to generate the majority of
|
||||||
X509 certificates based on the contents of certs.yml
|
X509 certificates based on the contents of certs.yml
|
||||||
mkcrl.sh - Certificate Revocation List generators.
|
mkcrl.sh - Certificate Revocation List generators.
|
||||||
|
|
||||||
mkcert.py may be invoked without any arguments, in which case it will regenerate ALL certificates.
|
mkcert.py may be invoked without any arguments, in which case it will regenerate ALL certificates.
|
||||||
Alternatively, pass one or more certificate symbolic names.
|
Alternatively, pass one or more certificate symbolic names.
|
||||||
@ -10,6 +10,7 @@ If any of these certificates represent CAs, then all dependent certificates will
|
|||||||
|
|
||||||
cert.yml format:
|
cert.yml format:
|
||||||
|
|
||||||
|
```
|
||||||
global:
|
global:
|
||||||
output_path: '.../' # Required, default output path for all certs in this file.
|
output_path: '.../' # Required, default output path for all certs in this file.
|
||||||
Subject: {...} # Optional, name entities to use for all cert, overridden by values in cert entries.
|
Subject: {...} # Optional, name entities to use for all cert, overridden by values in cert entries.
|
||||||
@ -35,7 +36,7 @@ certs:
|
|||||||
serial: 42
|
serial: 42
|
||||||
# Optional, validity start date, currently expressed in seconds relative to now.
|
# Optional, validity start date, currently expressed in seconds relative to now.
|
||||||
not_before: -86400 # 1 day ago
|
not_before: -86400 # 1 day ago
|
||||||
# Optional, validity end date, currently expressed in seconds relative to now.
|
# Optional, validity end date, currently expressed in seconds relative to now.
|
||||||
# Note that not_after - not_before, the validity period, should be less than or equal to 825 days, see:
|
# Note that not_after - not_before, the validity period, should be less than or equal to 825 days, see:
|
||||||
# https://support.apple.com/en-us/HT210176
|
# https://support.apple.com/en-us/HT210176
|
||||||
not_after: 71107200 # 823 days from now
|
not_after: 71107200 # 823 days from now
|
||||||
@ -65,3 +66,4 @@ certs:
|
|||||||
- {role: readWrite, db: test1}
|
- {role: readWrite, db: test1}
|
||||||
- {role: read, db: test2}
|
- {role: read, db: test2}
|
||||||
- mongoClusterMembership: clusterName
|
- mongoClusterMembership: clusterName
|
||||||
|
```
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
This directory contains a number of C++ headers which describe concepts for
|
This directory contains a number of C++ headers which describe concepts for
|
||||||
C++ types used by and with the Mongo library. These headers do not describe
|
C++ types used by and with the Mongo library. These headers do not describe
|
||||||
instantiable types, but instead are used to concisely describe models of C++
|
instantiable types, but instead are used to concisely describe models of C++
|
||||||
type concepts. When C++ grows a proper `Concepts` feature, these files can be
|
type concepts. When C++ grows a proper `Concepts` feature, these files can be
|
||||||
converted to proper concepts.
|
converted to proper concepts.
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
"BSON" stands for "binary JSON" - a binary storage format that is JSON inspired
|
"BSON" stands for "binary JSON" - a binary storage format that is JSON inspired
|
||||||
(and adds a couple extra types such as Date).
|
(and adds a couple extra types such as Date).
|
||||||
|
|
||||||
This is the C++ implementation. Implementations which translate BSON<->JSON
|
This is the C++ implementation. Implementations which translate BSON<->JSON
|
||||||
are available for most languages at bsonspec.org.
|
are available for most languages at bsonspec.org.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -10,11 +10,14 @@ This directory contains:
|
|||||||
|
|
||||||
To run:
|
To run:
|
||||||
|
|
||||||
|
```
|
||||||
python x509/mkcert.py CONFIG [--mkcrl | --no-mkcrl] [-o OUTPUT] [--static-dir STATIC_DIR]
|
python x509/mkcert.py CONFIG [--mkcrl | --no-mkcrl] [-o OUTPUT] [--static-dir STATIC_DIR]
|
||||||
[--dry-run] [certs ...]
|
[--dry-run] [certs ...]
|
||||||
|
```
|
||||||
|
|
||||||
- CONFIG is the path to the JSON file specifying a list of certificates, required
|
- CONFIG is the path to the JSON file specifying a list of certificates, required
|
||||||
- OUTPUT is the path to a directory where the generated items will be stored, default .
|
- OUTPUT is the path to a directory where the generated items will be stored, default .
|
||||||
- STATIC_DIR is the path where signing keys needed by certificates are stored, default x509/static
|
- STATIC_DIR is the path where signing keys needed by certificates are stored, default x509/static
|
||||||
- If --mkcrl is specified, CRLs will be generated after certificate generation ends. Default false.
|
- If --mkcrl is specified, CRLs will be generated after certificate generation ends. Default false.
|
||||||
These are hardcoded and require certain certificates to be generated to work.
|
These are hardcoded and require certain certificates to be generated to work.
|
||||||
- If --dry-run is specified, no files will be written out. This can be used to test what files will
|
- If --dry-run is specified, no files will be written out. This can be used to test what files will
|
||||||
@ -38,6 +41,7 @@ Future work:
|
|||||||
|
|
||||||
Certificate definition format:
|
Certificate definition format:
|
||||||
|
|
||||||
|
```
|
||||||
{
|
{
|
||||||
"global": {
|
"global": {
|
||||||
# Optional, default value to use for Key1 for all certs, overridden by values in cert entries.
|
# Optional, default value to use for Key1 for all certs, overridden by values in cert entries.
|
||||||
@ -61,7 +65,7 @@ Certificate definition format:
|
|||||||
# Optional, serial number to assign this certificate (default: sequential numbers starting from 1000)
|
# Optional, serial number to assign this certificate (default: sequential numbers starting from 1000)
|
||||||
"serial": 42,
|
"serial": 42,
|
||||||
# Optional, validity start date, expressed in seconds relative to midnight on the first day of the current year.
|
# Optional, validity start date, expressed in seconds relative to midnight on the first day of the current year.
|
||||||
"not_before": -86400, # 1 day before
|
"not_before": -86400, # 1 day before
|
||||||
# Optional, validity end date, currently expressed in seconds relative to midnight on the first day of the current year.
|
# Optional, validity end date, currently expressed in seconds relative to midnight on the first day of the current year.
|
||||||
# Note that not_after - not_before, the validity period, should be less than or equal to 825 days, see:
|
# Note that not_after - not_before, the validity period, should be less than or equal to 825 days, see:
|
||||||
# https://support.apple.com/en-us/HT210176
|
# https://support.apple.com/en-us/HT210176
|
||||||
@ -103,3 +107,4 @@ Certificate definition format:
|
|||||||
...
|
...
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user