Coder Social home page Coder Social logo

patrikx3 / debian-testing-mongodb-stable Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 1.0 168 KB

✨ Debian Bullseye / Bookworm / Testing / SID MongoDB and MongoDB Tools build stable

Home Page: https://www.corifeus.com/debian-testing-mongodb-stable

License: Other

Shell 79.33% JavaScript 2.95% Dockerfile 17.71%
debian testing bullseye mongodb mongodb-tools tools build linux testing-mongodb corifeus

debian-testing-mongodb-stable's Introduction

Donate for Corifeus / P3X Contact Corifeus / P3X Corifeus @ Facebook Build Status Uptime Robot ratio (30 days)

✨ Debian Bullseye / Bookworm / Testing / SID MongoDB and MongoDB Tools build stable

It is basically a built for the latest MongoDB for Debian.

This is for x64 only.

The current version is the r4.4.8 build (https://docs.mongodb.com/manual/release-notes/).

There is a newer version 4.5.0, but given, we use NoSQLBooster, it only works with 4.4.8 and the 4.4.x is the stable, the next stable will be 4.6.0, 4.8.0 and so on...

Scripts for building

It can work with sudo, but the best if you are root. Of course, you can check the code, there is no harm for sure!

git clone https://github.com/patrikx3/docker-debian-testing-mongodb-stable
cd docker-debian-testing-mongodb-stable

It downloads the specified version and deploy on your server.

1. Build MongoDB Server

First stop the database server.

The command:

sudo ./scripts/build-server.sh 4.4.8

All defaults are in the config, that MongoDB uses:

  • /var/log/mongodb - log
  • /var/lib/mongodb - data

It generates everything, all you have to do as the script says.

Now, you can start again the MongoDB server.

2. Build MongoDB Tools

The command:

./scripts/build-tools.sh

It generates and install GoLang and builds the tools that you find them in:
https://github.com/mongodb/mongo-tools

Then, it puts all tools into the default Debian /usr/bin directories.

The exact command is like:

sudo ./scripts/build-tools.sh r4.3.2

3. Start the services

Before you start the database, but after the build , you are required to create a config (unless, you already have it), a skeleton is here:

artifacts/root-filesystem/etc/mongodb.conf

Add safety to the mongodb config file

sudo cp ./artifacts/root-filesystem/etc/mongodb.conf /etc/mongodb.conf
sudo chmod o-rwx /etc/mongodb.conf
sudo chown mongodb:mongodb /etc/mongodb.conf

After you created the config, you start the database like:
service mongodb-server start or service mongodb-server restart


🙏 This is an open-source project. Star this repository, if you like it, or even donate to maintain the servers and the development. Thank you so much!

Possible, this server, rarely, is down, please, hang on for 15-30 minutes and the server will be back up.

All my domains (patrikx3.com and corifeus.com) could have minor errors, since I am developing in my free time. However, it is usually stable.

Note about versioning: Versions are cut in Major.Minor.Patch schema. Major is always the current year. Minor is either 4 (January - June) or 10 (July - December). Patch is incremental by every build. If there is a breaking change, it should be noted in the readme.


P3X-DEBIAN-TESTING-MONGODB-STABLE Build v2021.10.104

Donate for Corifeus / P3X Contact Corifeus / P3X Like Corifeus @ Facebook

P3X Sponsor

IntelliJ - The most intelligent Java IDE

JetBrains

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.