Files
ProxmoxVED/ct/drawdb.sh
CanbiZ (MickLesk) 634e89a762 feat: add Transmute, DrawDB, and Nametag CT scripts
Transmute: Self-hosted file converter (Python 3.13/FastAPI + Node.js 20)
  - 100+ formats: images, video, audio, docs, spreadsheets, fonts
  - ffmpeg, ghostscript, inkscape, tesseract, libreoffice, pandoc, calibre
  - Port 3313, SQLite, Xvfb for headless rendering

DrawDB: Database schema editor (pure SPA, Node.js 20 + Caddy)
  - Tags-only repo: uses fetch_and_deploy_gh_tag/check_for_gh_tag
  - Port 3000, no backend, no database

Nametag: Personal relationships manager (Next.js standalone + PostgreSQL)
  - Prisma ORM, photo storage, cron jobs for reminders/purge
  - Port 3000, auto-verified accounts for self-hosted
2026-03-30 10:11:50 +02:00

53 lines
1.4 KiB
Bash

#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
# Source: https://github.com/drawdb-io/drawdb
APP="DrawDB"
var_tags="${var_tags:-database;dev-tools}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-4}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/drawdb ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_tag "drawdb" "drawdb-io/drawdb"; then
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "drawdb" "drawdb-io/drawdb" "latest" "/opt/drawdb"
msg_info "Rebuilding Frontend"
cd /opt/drawdb
$STD npm ci
NODE_OPTIONS="--max-old-space-size=4096" $STD npm run build
msg_ok "Rebuilt Frontend"
msg_ok "Updated successfully!"
fi
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"