Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ This is the simplest method for Debian-based systems like Ubuntu, Debian, Linux

```bash
# Download the latest .deb release
wget https://github.com/nexoral/ContainDB/releases/download/v9.20.44-stable/containDB_9.20.44-stable_amd64.deb
wget https://github.com/nexoral/ContainDB/releases/download/v9.20.46-stable/containDB_9.20.46-stable_amd64.deb

# Install the package
sudo dpkg -i containDB_9.20.44-stable_amd64.deb
sudo dpkg -i containDB_9.20.46-stable_amd64.deb

# If you see dependency errors, run:
sudo apt-get install -f
Expand Down
2 changes: 1 addition & 1 deletion Scripts/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARCH=$(dpkg --print-architecture)

echo "Detected architecture: $ARCH"

VERSION="9.20.44-stable"
VERSION="9.20.46-stable"

if [[ "$ARCH" == "amd64" ]]; then
PKG="containdb_${VERSION}_amd64.deb"
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.20.44-stable
9.20.46-stable
12 changes: 12 additions & 0 deletions npm/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# Ignore common development files
node_modules/
.DS_Store
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.git/
.gitignore

# We explicitly want to include everything else in this folder
38 changes: 38 additions & 0 deletions npm/InstallController.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env node

const { spawn } = require('child_process');
const path = require('path');
const os = require('os');

const platform = os.platform();
const arch = os.arch();

const supported = {
'linux': {
'x64': 'containdb_linux_amd64'
},
'darwin': {
'x64': 'containdb_darwin_amd64',
'arm64': 'containdb_darwin_arm64'
},
'win32': {
'x64': 'containdb_windows_amd64.exe'
}
};

if (!supported[platform] || !supported[platform][arch]) {
console.error(`Unsupported platform or architecture: ${platform} ${arch}`);
process.exit(1);
}

const binaryName = supported[platform][arch];
const binaryPath = path.join(__dirname, 'bin', binaryName);

// Copy existing environment and add our custom flag
const env = { ...process.env, CONTAINDB_INSTALL_SOURCE: 'npm' };

const child = spawn(binaryPath, process.argv.slice(2), { stdio: 'inherit', env });

child.on('exit', (code) => {
process.exit(code);
});
64 changes: 64 additions & 0 deletions npm/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name": "containdb",
"version": "9.20.46",
"description": "The Ultimate Docker Database Manager. Automate the creation, management, and monitoring of containerized databases (MongoDB, MySQL, PostgreSQL, Redis) and their GUI tools (Compass, phpMyAdmin, PgAdmin, RedisInsight) with a simple CLI. No complex Docker commands—just productivity.",
"bin": {
"containdb": "./InstallController.js"
},
"preferGlobal": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/nexoral/ContainDB.git"
},
"homepage": "https://github.com/nexoral/ContainDB#readme",
"bugs": {
"url": "https://github.com/nexoral/ContainDB/issues"
},
"keywords": [
"containdb",
"docker",
"database",
"cli",
"devops",
"mongodb",
"mysql",
"postgresql",
"redis",
"mariadb",
"phpmyadmin",
"pgadmin",
"redisinsight",
"mongodb-compass",
"container-management",
"docker-compose",
"productivity",
"developer-tools",
"golang",
"cross-platform",
"automation",
"environment-setup",
"local-development"
],
"author": "Ankan Saha",
"license": "MIT",
"funding": {
"type": "git",
"url": "https://github.com/sponsors/AnkanSaha"
},
"os": [
"darwin",
"linux",
"win32"
],
"cpu": [
"x64",
"arm64"
],
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
}
}
2 changes: 1 addition & 1 deletion src/Core/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

func main() {
VERSION := "9.20.44-stable"
VERSION := "9.20.46-stable"

// handle version flag without requiring sudo
if len(os.Args) > 1 && os.Args[1] == "--version" {
Expand Down
2 changes: 1 addition & 1 deletion src/base/Banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/fatih/color"
)

const Version = "9.20.44-stable"
const Version = "9.20.46-stable"

func ShowBanner() {
// Define styles
Expand Down
Loading