heartranked

git clone https://git.tarina.org/heartranked
Log | Files | Refs | README

commit 95b37855e4c5d1541f185cab7ad87b0b53514480
parent 9ff3e8ffff8b1199cb7fb5adfba0fb5921771eb5
Author: rbckman <rob@tarina.org>
Date:   Wed, 26 Aug 2026 10:25:46 +0300

docker & termux install

Diffstat:
ADockerfile | 32++++++++++++++++++++++++++++++++
Adocker-compos.yml | 16++++++++++++++++
Ainstall-termux.sh | 55+++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 103 insertions(+), 0 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -0,0 +1,32 @@ +FROM python:3.11-slim + +# Install system audio, compression, and imaging tools found in install.sh and server.py +RUN apt-get update && apt-get install -y --no-install-recommends \ + wget \ + zip \ + unzip \ + ffmpeg \ + sox \ + mediainfo \ + libmagic1 \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /app + +# Copy the dependencies directly +COPY webpy-v.0.76.zip /tmp/ + +# Install exact application requirements +RUN pip install --no-cache-dir /tmp/webpy-v.0.76.zip mutagen pillow markdown requests + +# Copy source repository structure +COPY . /app + +# Ensure required runfirst directories exist with proper access bounds +RUN mkdir -p p/posts p/zipped p/comborank p/heartrank p/deleted u/ r/visitors r/invites r/trusted r/users r/stopflood r/stopresetpass sessions + +# Expose web.py's standard fallback port +EXPOSE 8080 + +# Run standalone server framework natively +CMD ["python3", "server.py"] diff --git a/docker-compos.yml b/docker-compos.yml @@ -0,0 +1,16 @@ +version: '3.8' + +services: + heartranked: + build: . + container_name: heartranked_node + ports: + - "8080:8080" + volumes: + # Absolute data persistence mapping for local sqlite alternative folders + - ./p:/app/p + - ./u:/app/u + - ./r:/app/r + - ./sessions:/app/sessions + - ./settings.py:/app/settings.py + restart: unless-stopped diff --git a/install-termux.sh b/install-termux.sh @@ -0,0 +1,55 @@ +#!/data/data/com.termux/files/usr/bin/bash + +echo "Initializing Heartranked Version 11 Installer for Android Termux..." +cat <<'EOF' + .__---~~~(~~-_. + _-' ) -~~- ) _-" )_ + ( ( `-,_..`.,_--_ '_,)_ + ( -_) ( -_-~ -_ `, ) + (_ -_ _-~-__-~`, ,' )__-'))--___--~~~--__--~~--___--__.. + _ ~`_-'( (____;--==,,_))))--___--~~~--__--~~--__----~~~'`=__-~+_-_. +(@) (@) ````` `-_(())_-~ mn +EOF + +# 1. System updates inside Termux architecture +echo "Updating Termux repositories..." +pkg update -y && pkg upgrade -y + +# 2. Grab system dependencies safely inside native phone sandbox environment +echo "Installing core utilities, media libraries, and compression systems..." +pkg install -y python ndk-sysroot clang make libjpeg-turbo wget zip unzip ffmpeg sox mediainfo + +# 3. Handle specific modern python wheels inside mobile platforms +echo "Upgrading pip components..." +pip install --upgrade pip setuptools wheel + +# 4. Pull Python libraries required for data extraction, web parsing, and text generation +echo "Installing application requirements..." +pip install mutagen pillow markdown requests + +# 5. Extract and deploy web.py framework bundle from project archive +if [ -f "webpy-v.0.76.zip" ]; then + echo "Installing local web.py wheel framework..." + pip install ./webpy-v.0.76.zip +else + echo "⚠️ Warning: webpy-v.0.76.zip archive not directly located in execution path." + echo "Attempting alternative distribution extraction..." + pip install web.py +fi + +# 6. Initialize tracking paths natively so web.py server loop starts immediately +echo "Building functional directory tree structures..." +mkdir -p p/posts p/zipped p/comborank p/heartrank p/deleted u/ r/visitors r/invites r/trusted r/users r/stopflood r/stopresetpass sessions + +cat <<'EOF' + .-. + .-""`""-. |(@ @) + _/`oOoOoOoOo`\_ \ \-/ + '.-=-=-=-=-=-=-.' \/ \ + `-=.=-.-=.=-' \ /\ + ^ ^ ^ _H_ \ + +🚀 Installation Complete! +To deploy your sovereign network node live on your phone, execute: +python server.py +EOF