jason f5fe0366bb 🐛 Fix entrypoint hang and lost-interpreter bugs 🐛
- rootfs/usr/local/bin/entrypoint.sh:
  1. The "start all services" gate
     (`if [ "$START_SERVICES" = "yes" ] || [ -z "$1" ]`) always evaluated
     true on a first-run container regardless of $1, because
     START_SERVICES is force-set to "yes" whenever no PID file exists yet.
     Any command passed to `docker run` — `exec ...`, `sh -c ...`,
     `shell`, or an arbitrary program — was swallowed into the
     service-start+monitor branch before reaching the `case "$1"`
     statement that already handles those subcommands, hanging the
     container as a daemon instead of running the given command. Changed
     the condition to `if [ -z "$1" ]` so the daemon branch only fires
     when no command was given at all.
  2. The `*/bin/sh | */bin/bash | bash | sh | shell)` case branch
     unconditionally shifted $1 before `__exec_command "$@"` (a bare
     `exec "$@"`). For `docker run image sh -c 'cmd'` this turned the
     exec into `exec -c cmd` (command not found, exit 127) instead of
     `exec sh -c 'cmd'`. Split the branch: real interpreter names
     (*/bin/sh, */bin/bash, bash, sh) now pass through unshifted; the
     "shell" keyword (not a real interpreter) gets its own branch that
     shifts and prepends "sh" to any remaining args, or falls back to a
     bare `__exec_command` (exec bash -l) when none remain.
  Verified `bash -n` passes. Found and fixed upstream in
  dockersrc/go, confirmed identical in this repo's generated
  entrypoint.sh, and mechanically applied here with the same patch.
2026-07-27 23:28:31 -04:00
2026-05-12 20:09:24 -04:00
2023-08-23 20:10:41 -04:00
2023-03-03 21:13:58 -05:00
2024-07-14 10:48:20 -04:00
2023-08-22 17:53:03 -04:00
🗃️ Updated domain names 🗃️
2023-08-10 19:57:38 -04:00
2024-07-17 19:49:13 -04:00
2026-05-12 20:09:24 -04:00
2026-05-12 20:09:24 -04:00
2026-05-12 20:09:24 -04:00
2026-05-12 20:09:24 -04:00
🗃️ Updated domain names 🗃️
2023-08-10 19:57:38 -04:00
2026-05-12 20:09:24 -04:00
2026-07-10 12:27:38 -04:00

👋 Welcome to tools 🚀

tools 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 tools

Install and run container

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

via docker-compose

version: "2"
services:
  ProjectName:
    image: casjaysdevdocker/tools
    container_name: casjaysdevdocker-tools
    environment:
      - TZ=America/New_York
      - HOSTNAME=tools
    volumes:
      - "/srv/$USER/docker/casjaysdevdocker/tools/tools/latest/rootfs/data:/data:z"
      - "/srv/$USER/docker/casjaysdevdocker/tools/tools/latest/rootfs/config:/config:z"
    ports:
      - 80:80
    restart: always

Get source files

dockermgr download src casjaysdevdocker/tools

OR

git clone "https://github.com/casjaysdevdocker/tools" "$HOME/Projects/github/casjaysdevdocker/tools"

Build container

cd "$HOME/Projects/github/casjaysdevdocker/tools"
buildx 

Authors

🤖 casjay: Github 🤖
casjaysdevdocker: Github Docker

S
Description
docker tools
Readme
614 KiB
Languages
Shell 58.4%
CSS 33%
Perl 4.4%
PHP 3.4%
HTML 0.4%
Other 0.2%