Skip to content

Commit f57efcf

Browse files
committed
updated docs
1 parent c724cc4 commit f57efcf

1 file changed

Lines changed: 31 additions & 2 deletions

File tree

README.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# MongoDB Builder for Linux
22

3-
This Docker image builds MongoDB for Linux from source without OpenSSL and cURL, similar to the generic Linux packages that are [not provided anymore since MongoDB 4.2](https://www.mongodb.com/blog/post/a-proposal-to-endoflife-our-generic-linux-tar-packages).
3+
This Docker image builds MongoDB for Linux from source without OpenSSL and cURL, similar to the generic Linux packages
4+
that
5+
are [not provided anymore since MongoDB 4.2](https://www.mongodb.com/blog/post/a-proposal-to-endoflife-our-generic-linux-tar-packages).
46

57
## Building the Image
68

@@ -10,8 +12,35 @@ docker build -t mongodb-builder .
1012

1113
## Usage
1214

13-
The `run-builder.sh` script downloads the MongoDB source, builds `mongod` and `mongo`, and creates an archive (`mongodb-linux-x86_64-*.tgz`):
15+
The `run-builder.sh` script downloads the MongoDB source, builds `mongod` and `mongo`, and creates an
16+
archive (`mongodb-linux-x86_64-*.tgz`):
1417

1518
```sh
1619
./run-builder.sh
1720
```
21+
22+
### Side notes!
23+
24+
Use an AWS big machine with some cores(need to update the j flag in ./run-builder.sh) and a lot of memory. I used a
25+
r3.4xlarge with 16 cores and 123GB of memory. It took about 1 hours to build.
26+
27+
Remember to setup git and ssh keys on the machine you are building on. The build script will clone the mongodb repo and
28+
you will need to be able to do that.
29+
30+
at the end of the script it will open the /build/install/bin directory and you will see a mongod and mongo or mongos
31+
binary, that is the one that you strip and ship. the two last lines of run-builder.sh will do that for you.
32+
33+
Having your tarball you should create a git tag:
34+
35+
```sh
36+
git tag -a v4.2.0 -m "MongoDB 4.2.0"
37+
git push origin <tag_name>
38+
```
39+
40+
Normally you will not commit your tarball to git. You have two options:
41+
42+
create a branch and commit your tarball to that branch, create a PR and download the tarball from the PR and update the release tag.
43+
44+
or you can send to an S3 and download it from there and update the tag with the tarball.
45+
46+
If you have a big enough machine you can do it in your local machine.

0 commit comments

Comments
 (0)