casjay 2684bd5dfa 🐛 Fix container init so nginx starts reliably 🐛
Four bugs prevented nginx from starting in the super-productivity container.
All four are fixed; tested end-to-end: HTTP 200 on /, /health returns
"healthy", and sync-config-default-override.json is written correctly
from SUPERSYNC_BASE_URL env vars.
- Dockerfile: remove /etc/postfix and /etc/ssmtp in the pkmgr RUN step
so ssmtp binary cannot resolve config dirs that were never installed
- rootfs/usr/local/bin/entrypoint.sh: make __setup_mta non-fatal with
|| true; image has ssmtp binary but no config dirs — MTA is optional
- rootfs/usr/local/etc/docker/functions/entrypoint.sh: fix __setup_mta
guard (bare return → return 0) so it does not exit caller with code 1;
gate all verbose debug echoes behind DEBUGGER=on so they do not slow
down __fix_permissions / __setup_directories with unnecessary tee pipes
- rootfs/usr/local/etc/docker/init.d/zz-nginx.sh: guard EXEC_PRE_SCRIPT
type-P lookup behind [ -n ] so type -P '' cannot fire __trap_err_handler;
create nginx.local.sh with touch inside __create_service_env and remove
its __file_exists_with_content check from exitCode so the function
returns 0 and zz-nginx.sh proceeds to __run_start_script

Dockerfile
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
rootfs/usr/local/etc/docker/init.d/zz-nginx.sh
2026-06-26 15:00:27 -04:00
🦈🏠🐜 Initial Commit 🐜🦈🏠
2026-06-26 14:10:54 -04:00
2026-06-26 15:00:27 -04:00
🦈🏠🐜 Initial Commit 🐜🦈🏠
2026-06-26 14:10:54 -04:00
🦈🏠🐜 Initial Commit 🐜🦈🏠
2026-06-26 14:10:54 -04:00
🦈🏠🐜 Initial Commit 🐜🦈🏠
2026-06-26 14:10:54 -04:00
🦈🏠🐜 Initial Commit 🐜🦈🏠
2026-06-26 14:10:54 -04:00
🦈🏠🐜 Initial Commit 🐜🦈🏠
2026-06-26 14:10:54 -04:00
2026-06-26 15:00:27 -04:00
🦈🏠🐜 Initial Commit 🐜🦈🏠
2026-06-26 14:10:54 -04:00
🦈🏠🐜 Initial Commit 🐜🦈🏠
2026-06-26 14:10:54 -04:00

👋 Welcome to super-productivity 🚀

super-productivity README

Install my system scripts

 sudo bash -c "$(curl -q -LSsf "https://github.com/systemmgr/installer/raw/main/install.sh")"
 sudo systemmgr --config && sudo systemmgr install scripts  

Automatic install/update

dockermgr update super-productivity

Install and run container

dockerHome="/var/lib/srv/$USER/docker/casjaysdevdocker/super-productivity/latest/volumes"
mkdir -p "$dockerHome"
git clone "https://github.com/dockermgr/super-productivity" "$HOME/.local/share/CasjaysDev/dockermgr/super-productivity"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/super-productivity/volumes/." "$dockerHome/"
docker run -d \
--restart always \
--privileged \
--name casjaysdevdocker-super-productivity-latest \
--hostname super-productivity \
-e TZ=${TIMEZONE:-America/New_York} \
-v "$dockerHome/data:/data:z" \
-v "$dockerHome/config:/config:z" \
-p 80:80 \
casjaysdevdocker/super-productivity:latest

via docker-compose

services:
  ProjectName:
    image: casjaysdevdocker/super-productivity
    container_name: casjaysdevdocker-super-productivity
    environment:
      - TZ=America/New_York
      - HOSTNAME=super-productivity
    volumes:
      - "/var/lib/srv/$USER/docker/casjaysdevdocker/super-productivity/latest/volumes/data:/data:z"
      - "/var/lib/srv/$USER/docker/casjaysdevdocker/super-productivity/latest/volumes/config:/config:z"
    ports:
      - 80:80
    restart: always

Get source files

dockermgr download src casjaysdevdocker/super-productivity

OR

git clone "https://github.com/casjaysdevdocker/super-productivity" "$HOME/Projects/github/casjaysdevdocker/super-productivity"

Build container

cd "$HOME/Projects/github/casjaysdevdocker/super-productivity"
buildx 

Authors

🤖 casjay: Github 🤖
casjaysdevdocker: Github Docker

S
Description
Repo for super-productivity
Readme
115 KiB
Languages
Shell 97.2%
Dockerfile 2.8%