Skip to content

Commit e212248

Browse files
committed
feat(DUMB)!: initial DUMB push
Release-As: 1.0.0
0 parents  commit e212248

57 files changed

Lines changed: 13660 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"name": "DUMB Dev Container",
3+
"image": "iampuid0/dumb:latest",
4+
"workspaceFolder": "/workspace",
5+
"customizations": {
6+
"vscode": {
7+
"extensions": [
8+
"ms-python.python",
9+
"ms-python.black-formatter"
10+
],
11+
"settings": {
12+
"terminal.integrated.defaultProfile.linux": "sh",
13+
"python.formatting.provider": "black",
14+
"editor.formatOnSave": true,
15+
"python.defaultInterpreterPath": "/venv/bin/python",
16+
"git.path": "/usr/bin/git"
17+
}
18+
}
19+
},
20+
"forwardPorts": [
21+
3005,
22+
8000,
23+
3000,
24+
9090,
25+
5050,
26+
8182
27+
],
28+
"mounts": [
29+
"source=${localWorkspaceFolder},target=/workspace,type=bind",
30+
"source=${localWorkspaceFolder}/main.py,target=/main.py,type=bind",
31+
"source=${localWorkspaceFolder}/config,target=/config,type=bind",
32+
"source=${localWorkspaceFolder}/utils,target=/utils,type=bind",
33+
"source=${localWorkspaceFolder}/zurg/RD,target=/zurg/RD,type=bind",
34+
"source=${localWorkspaceFolder}/riven/backend/data,target=/riven/backend/data,type=bind",
35+
"source=${localWorkspaceFolder}/zilean/app/data,target=/zilean/app/data,type=bind",
36+
"source=${localWorkspaceFolder}/log,target=/log,type=bind",
37+
"source=${localWorkspaceFolder}/mnt/debrid,target=/mnt/debrid,type=bind,bind-propagation=rshared",
38+
"source=${localWorkspaceFolder}/postgres_data,target=/postgres_data,type=bind",
39+
"source=${localWorkspaceFolder}/pgadmin/data,target=/pgadmin/data,type=bind",
40+
"source=${localWorkspaceFolder}/plex_debrid/config,target=/plex_debrid/config,type=bind",
41+
"source=${localWorkspaceFolder}/cli_debrid/data,target=/cli_debrid/data,type=bind",
42+
"source=${localWorkspaceFolder}/decypharr,target=/decypharr,type=bind",
43+
"source=${localWorkspaceFolder}/plex,target=/plex,type=bind",
44+
"source=${localWorkspaceFolder}/phalanx_db/data,target=/phalanx_db/data,type=bind"
45+
],
46+
"runArgs": [
47+
"--name=dumb_dev",
48+
"--hostname=dumb_dev",
49+
"--dns=8.8.8.8",
50+
"--dns=8.8.4.4",
51+
"--device=/dev/fuse:/dev/fuse:rwm",
52+
"--cap-add=SYS_ADMIN",
53+
"--security-opt=apparmor:unconfined",
54+
"--security-opt=no-new-privileges",
55+
"--shm-size=128m",
56+
"--pull=always"
57+
],
58+
"postCreateCommand": "apt update && apt install -y gcc python3.11-dev libpq-dev && curl -sSL https://install.python-poetry.org | python - && export PATH=\"$HOME/.local/bin:$PATH\" && poetry config virtualenvs.create false && poetry install --no-root --with dev && git config --global --add safe.directory /workspace"
59+
}

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**/*.gitattributes
2+
**/*.gitignore
3+
**/*.github
4+
*Ubuntu*

.env.example

Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
#-------------------------------------
2+
# Global Variables
3+
#-------------------------------------
4+
5+
PUID=1000
6+
PGID=1000
7+
TZ=
8+
9+
#-------------------------------------
10+
# DUMB Variables
11+
#-------------------------------------
12+
13+
DUMB_LOG_LEVEL=INFO
14+
DUMB_LOG_NAME=DUMB
15+
DUMB_LOG_DIR=/log
16+
DUMB_LOG_COUNT=2
17+
DUMB_LOG_SIZE=10M
18+
DUMB_COLOR_LOG=true
19+
DUMB_PLEX_TOKEN=
20+
DUMB_PLEX_ADDRESS=
21+
DUMB_GITHUB_TOKEN=
22+
23+
#-------------------------------------
24+
# DUMB API Variables
25+
#-------------------------------------
26+
27+
DUMB_API_SERVICE_ENABLED=true
28+
DUMB_API_SERVICE_PROCESS_NAME=DUMB API
29+
DUMB_API_SERVICE_LOG_LEVEL=INFO
30+
DUMB_API_SERVICE_HOST=127.0.0.1
31+
DUMB_API_SERVICE_PORT=8000
32+
33+
#-------------------------------------
34+
# DUMB Frontend Variables
35+
#-------------------------------------
36+
37+
DUMB_FRONTEND_ENABLED=true
38+
DUMB_FRONTEND_PROCESS_NAME="DUMB Frontend"
39+
DUMB_FRONTEND_REPO_OWNER=I-am-PUID-0
40+
DUMB_FRONTEND_REPO_NAME=dmbdb
41+
DUMB_FRONTEND_RELEASE_VERSION_ENABLED=false
42+
DUMB_FRONTEND_RELEASE_VERSION=1.1.0
43+
DUMB_FRONTEND_BRANCH_ENABLED=false
44+
DUMB_FRONTEND_BRANCH=main
45+
DUMB_FRONTEND_SUPPRESS_LOGGING=false
46+
DUMB_FRONTEND_LOG_LEVEL=INFO
47+
DUMB_FRONTEND_ORIGINS=http://0.0.0.0:3005
48+
DUMB_FRONTEND_HOST=0.0.0.0
49+
DUMB_FRONTEND_PORT=3005
50+
DUMB_FRONTEND_AUTO_UPDATE=false
51+
DUMB_FRONTEND_AUTO_UPDATE_INTERVAL=24
52+
DUMB_FRONTEND_CLEAR_ON_UPDATE=true
53+
DUMB_FRONTEND_EXCLUDE_DIRS=
54+
DUMB_FRONTEND_PLATFORMS=pnpm
55+
DUMB_FRONTEND_COMMAND=node .output/server/index.mjs
56+
DUMB_FRONTEND_CONFIG_DIR=/dumb/frontend
57+
58+
#-------------------------------------
59+
# PostgreSQL Variables
60+
#-------------------------------------
61+
62+
POSTGRES_ENABLED=true
63+
POSTGRES_PROCESS_NAME=PostgreSQL
64+
POSTGRES_SUPPRESS_LOGGING=false
65+
POSTGRES_LOG_LEVEL=INFO
66+
POSTGRES_HOST=127.0.0.1
67+
POSTGRES_PORT=5432
68+
POSTGRES_CONFIG_DIR=/postgres_data
69+
POSTGRES_CONFIG_FILE=/postgres_data/postgresql.conf
70+
POSTGRES_INITDB_ARGS=--data-checksums
71+
POSTGRES_USER=DUMB
72+
POSTGRES_PASSWORD=postgres
73+
POSTGRES_SHARED_BUFFERS=128MB
74+
POSTGRES_MAX_CONNECTIONS=100
75+
POSTGRES_RUN_DIRECTORY=/run/postgresql
76+
POSTGRES_COMMAND=postgres -D {postgres_config_dir} -c config_file={postgres_config_file}
77+
78+
#-------------------------------------
79+
# pgAdmin Variables
80+
#-------------------------------------
81+
82+
PGADMIN_ENABLED=true
83+
PGADMIN_PROCESS_NAME=pgAdmin4
84+
PGADMIN_CONFIG_DIR=/pgadmin/data
85+
PGADMIN_CONFIG_FILE=/pgadmin/data/config_local.py
86+
PGADMIN_LOG_FILE=/pgadmin/data/pgadmin4.log
87+
PGADMIN_PORT=5050
88+
PGADMIN_DEFAULT_SERVER=0.0.0.0
89+
PGADMIN_SETUP_EMAIL=DUMB@DUMB.DUMB
90+
PGADMIN_SETUP_PASSWORD=postgres
91+
92+
#-------------------------------------
93+
# Rclone Variables
94+
#-------------------------------------
95+
96+
RCLONE_INSTANCES_REALDEBRID_ENABLED=true
97+
RCLONE_INSTANCES_REALDEBRID_PROCESS_NAME="rclone w/ RealDebrid"
98+
RCLONE_INSTANCES_REALDEBRID_SUPPRESS_LOGGING=false
99+
RCLONE_INSTANCES_REALDEBRID_LOG_LEVEL=INFO
100+
RCLONE_INSTANCES_REALDEBRID_KEY_TYPE=RealDebrid
101+
RCLONE_INSTANCES_REALDEBRID_ZURG_ENABLED=true
102+
RCLONE_INSTANCES_REALDEBRID_MOUNT_DIR=/data
103+
RCLONE_INSTANCES_REALDEBRID_MOUNT_NAME=rclone_RD
104+
RCLONE_INSTANCES_REALDEBRID_CACHE_DIR=/cache
105+
RCLONE_INSTANCES_REALDEBRID_CONFIG_DIR=/config
106+
RCLONE_INSTANCES_REALDEBRID_CONFIG_FILE=/config/rclone.config
107+
RCLONE_INSTANCES_REALDEBRID_ZURG_CONFIG_FILE=/zurg/RD/config.yml
108+
RCLONE_INSTANCES_REALDEBRID_COMMAND=
109+
RCLONE_INSTANCES_REALDEBRID_API_KEY=
110+
111+
#-------------------------------------
112+
# Riven Variables
113+
#-------------------------------------
114+
115+
RIVEN_BACKEND_ENABLED=true
116+
RIVEN_BACKEND_PROCESS_NAME="Riven Backend"
117+
RIVEN_BACKEND_REPO_OWNER=rivenmedia
118+
RIVEN_BACKEND_REPO_NAME=riven
119+
RIVEN_BACKEND_RELEASE_VERSION_ENABLED=false
120+
RIVEN_BACKEND_RELEASE_VERSION=v0.20.1
121+
RIVEN_BACKEND_BRANCH_ENABLED=false
122+
RIVEN_BACKEND_BRANCH=release-please--branches--main
123+
RIVEN_BACKEND_SUPPRESS_LOGGING=false
124+
RIVEN_BACKEND_LOG_LEVEL=INFO
125+
RIVEN_BACKEND_HOST=127.0.0.1
126+
RIVEN_BACKEND_PORT=8080
127+
RIVEN_BACKEND_AUTO_UPDATE=false
128+
RIVEN_BACKEND_AUTO_UPDATE_INTERVAL=24
129+
RIVEN_BACKEND_SYMLINK_LIBRARY_PATH=/mnt
130+
RIVEN_BACKEND_CLEAR_ON_UPDATE=true
131+
RIVEN_BACKEND_EXCLUDE_DIRS=/riven/backend/data
132+
RIVEN_BACKEND_ENV_COPY_SOURCE=/riven/backend/data/.env
133+
RIVEN_BACKEND_ENV_COPY_DESTINATION=/riven/backend/src/.env
134+
RIVEN_BACKEND_PLATFORMS=python
135+
RIVEN_BACKEND_COMMAND=/riven/backend/venv/bin/python src/main.py
136+
RIVEN_BACKEND_CONFIG_DIR=/riven/backend
137+
RIVEN_BACKEND_CONFIG_FILE=/riven/backend/data/settings.json
138+
RIVEN_BACKEND_WAIT_FOR_DIR=/data/rclone_RD/__all__
139+
140+
#-------------------------------------
141+
# Riven Frontend Variables
142+
#-------------------------------------
143+
144+
RIVEN_FRONTEND_ENABLED=true
145+
RIVEN_FRONTEND_PROCESS_NAME="Riven Frontend"
146+
RIVEN_FRONTEND_REPO_OWNER=rivenmedia
147+
RIVEN_FRONTEND_REPO_NAME=riven-frontend
148+
RIVEN_FRONTEND_RELEASE_VERSION_ENABLED=false
149+
RIVEN_FRONTEND_RELEASE_VERSION=v0.17.0
150+
RIVEN_FRONTEND_BRANCH_ENABLED=false
151+
RIVEN_FRONTEND_BRANCH=release-please--branches--main
152+
RIVEN_FRONTEND_SUPPRESS_LOGGING=false
153+
RIVEN_FRONTEND_LOG_LEVEL=INFO
154+
RIVEN_FRONTEND_HOST=127.0.0.1
155+
RIVEN_FRONTEND_PORT=3000
156+
RIVEN_FRONTEND_AUTO_UPDATE=false
157+
RIVEN_FRONTEND_AUTO_UPDATE_INTERVAL=24
158+
RIVEN_FRONTEND_CLEAR_ON_UPDATE=true
159+
RIVEN_FRONTEND_EXCLUDE_DIRS=
160+
RIVEN_FRONTEND_PLATFORMS=pnpm
161+
RIVEN_FRONTEND_COMMAND=node build
162+
RIVEN_FRONTEND_CONFIG_DIR=/riven/frontend
163+
RIVEN_FRONTEND_ENV_DIALECT=postgres
164+
165+
#-------------------------------------
166+
# Zilean Variables
167+
#-------------------------------------
168+
169+
ZILEAN_ENABLED=true
170+
ZILEAN_PROCESS_NAME=Zilean
171+
ZILEAN_REPO_OWNER=iPromKnight
172+
ZILEAN_REPO_NAME=zilean
173+
ZILEAN_RELEASE_VERSION_ENABLED=false
174+
ZILEAN_RELEASE_VERSION=v3.3.0
175+
ZILEAN_BRANCH_ENABLED=false
176+
ZILEAN_BRANCH=main
177+
ZILEAN_SUPPRESS_LOGGING=false
178+
ZILEAN_LOG_LEVEL=INFO
179+
ZILEAN_HOST=127.0.0.1
180+
ZILEAN_PORT=8182
181+
ZILEAN_AUTO_UPDATE=false
182+
ZILEAN_AUTO_UPDATE_INTERVAL=24
183+
ZILEAN_CLEAR_ON_UPDATE=true
184+
ZILEAN_EXCLUDE_DIRS=/zilean/app/data
185+
ZILEAN_ENV_COPY_SOURCE=/zilean/app/data/.env
186+
ZILEAN_ENV_COPY_DESTINATION=/zilean/app/src/.env
187+
ZILEAN_PLATFORMS=python dotnet
188+
ZILEAN_COMMAND=/zilean/app/zilean-api
189+
ZILEAN_CONFIG_DIR=/zilean
190+
ZILEAN_CONFIG_FILE=/zilean/app/data/settings.json
191+
192+
#-------------------------------------
193+
# Zurg Variables
194+
#-------------------------------------
195+
196+
ZURG_INSTANCES_REALDEBRID_ENABLED=true
197+
ZURG_INSTANCES_REALDEBRID_PROCESS_NAME="Zurg w/ RealDebrid"
198+
ZURG_INSTANCES_REALDEBRID_REPO_OWNER=debridmediamanager
199+
ZURG_INSTANCES_REALDEBRID_REPO_NAME=zurg-testing
200+
ZURG_INSTANCES_REALDEBRID_RELEASE_VERSION_ENABLED=false
201+
ZURG_INSTANCES_REALDEBRID_RELEASE_VERSION=v0.9.3-final
202+
ZURG_INSTANCES_REALDEBRID_SUPPRESS_LOGGING=false
203+
ZURG_INSTANCES_REALDEBRID_LOG_LEVEL=INFO
204+
ZURG_INSTANCES_REALDEBRID_AUTO_UPDATE=false
205+
ZURG_INSTANCES_REALDEBRID_AUTO_UPDATE_INTERVAL=1
206+
ZURG_INSTANCES_REALDEBRID_CLEAR_ON_UPDATE=false
207+
ZURG_INSTANCES_REALDEBRID_EXCLUDE_DIRS=
208+
ZURG_INSTANCES_REALDEBRID_KEY_TYPE=RealDebrid
209+
ZURG_INSTANCES_REALDEBRID_CONFIG_DIR=/zurg/RD
210+
ZURG_INSTANCES_REALDEBRID_CONFIG_FILE=/zurg/RD/config.yml
211+
ZURG_INSTANCES_REALDEBRID_COMMAND=/zurg/RD/zurg
212+
ZURG_INSTANCES_REALDEBRID_PORT=
213+
ZURG_INSTANCES_REALDEBRID_USER=
214+
ZURG_INSTANCES_REALDEBRID_PASSWORD=
215+
ZURG_INSTANCES_REALDEBRID_API_KEY=

.gitattributes

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.0.0"
3+
}

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @I-am-PUID-0

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: I-am-PUID-0
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
12+
A clear and concise description of what the bug is.
13+
14+
15+
**To Reproduce**
16+
17+
Steps to reproduce the behavior.
18+
19+
20+
**Expected behavior**
21+
22+
A clear and concise description of what you expected to happen.
23+
24+
25+
**Screenshots**
26+
27+
If applicable, add screenshots to help explain your problem.
28+
29+
30+
**Please complete the following information:**
31+
- OS: [e.g., Ubuntu, Windows]
32+
- Version: [e.g., 22.04 LTS, WIN 11]
33+
- Supporting Applications: [e.g., Docker, Docker Desktop, WSL2]
34+
35+
36+
**Additional context**
37+
38+
Add any other context about the problem here.
39+

0 commit comments

Comments
 (0)