mirror of
https://github.com/casjaysdevdocker/claude
synced 2026-06-24 08:01:05 -04:00
9114c4098d
Migrate claude Docker image to the new build-time config architecture. - rootfs/root/docker/setup/03-files.sh: rewrite to canonical form with /tmp/bin, /tmp/var, /tmp/etc, /tmp/usr handlers - rootfs/usr/local/etc/docker/functions/entrypoint.sh: update to latest template - rootfs/usr/local/etc/docker/init.d/*.sh: fix $(basename) UUOC; move inline comments above code lines - rootfs/tmp/etc/: add service config files (claude ) deployed to /etc/ at build time - rootfs/usr/local/share/template-files/: delete; config now deployed via /tmp/etc/ and /tmp/usr/ at build time rootfs/root/docker/setup/03-files.sh rootfs/tmp/ rootfs/usr/local/etc/docker/functions/entrypoint.sh rootfs/usr/local/etc/docker/init.d/01-dockerd.sh rootfs/usr/local/etc/docker/init.d/99-claude.sh rootfs/usr/local/share/template-files/config/claude/settings.json rootfs/usr/local/share/template-files/config/env/default.sample rootfs/usr/local/share/template-files/config/env/examples/00-directory.sh rootfs/usr/local/share/template-files/config/env/examples/addresses.sh rootfs/usr/local/share/template-files/config/env/examples/certbot.sh rootfs/usr/local/share/template-files/config/env/examples/couchdb.sh rootfs/usr/local/share/template-files/config/env/examples/dockerd.sh rootfs/usr/local/share/template-files/config/env/examples/global.sh rootfs/usr/local/share/template-files/config/env/examples/healthcheck.sh rootfs/usr/local/share/template-files/config/env/examples/mariadb.sh rootfs/usr/local/share/template-files/config/env/examples/mongodb.sh rootfs/usr/local/share/template-files/config/env/examples/networking.sh rootfs/usr/local/share/template-files/config/env/examples/other.sh rootfs/usr/local/share/template-files/config/env/examples/php.sh rootfs/usr/local/share/template-files/config/env/examples/postgres.sh rootfs/usr/local/share/template-files/config/env/examples/redis.sh rootfs/usr/local/share/template-files/config/env/examples/services.sh rootfs/usr/local/share/template-files/config/env/examples/ssl.sh rootfs/usr/local/share/template-files/config/env/examples/supabase.sh rootfs/usr/local/share/template-files/config/env/examples/webservers.sh rootfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh rootfs/usr/local/share/template-files/config/.gitkeep rootfs/usr/local/share/template-files/data/.gitkeep rootfs/usr/local/share/template-files/defaults/.gitkeep
75 lines
2.3 KiB
Bash
Executable File
75 lines
2.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
##@Version : 202606041215-git
|
|
# @@Author : CasjaysDev
|
|
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
|
|
# @@License : WTFPL
|
|
# @@ReadME :
|
|
# @@Copyright : Copyright: (c) 2023 CasjaysDev
|
|
# @@Created : Mon Aug 28 06:48:42 PM EDT 2023
|
|
# @@File : 03-files.sh
|
|
# @@Description : script to run files
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# shellcheck shell=bash
|
|
# shellcheck disable=SC1001,SC1003,SC2001,SC2003,SC2016,SC2031,SC2090,SC2115,SC2120,SC2155,SC2199,SC2229,SC2317,SC2329
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
set -o pipefail
|
|
[ "$DEBUGGER" = "on" ] && echo "Enabling debugging" && set -x$DEBUGGER_OPTIONS
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
exitCode=0
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
if [ -d "/tmp/bin" ]; then
|
|
\mkdir -p "/usr/local/bin"
|
|
for bin in "/tmp/bin"/*; do
|
|
name="${bin##*/}"
|
|
echo "Installing $name to /usr/local/bin/$name"
|
|
copy "$bin" "/usr/local/bin/$name"
|
|
\chmod -f +x "/usr/local/bin/$name"
|
|
done
|
|
fi
|
|
unset bin
|
|
if [ -d "/tmp/var" ]; then
|
|
for var in "/tmp/var"/*; do
|
|
name="${var##*/}"
|
|
echo "Installing $var to /var/$name"
|
|
if [ -d "$var" ]; then
|
|
\mkdir -p "/var/$name"
|
|
copy "$var/." "/var/$name/"
|
|
else
|
|
copy "$var" "/var/$name"
|
|
fi
|
|
done
|
|
fi
|
|
unset var
|
|
if [ -d "/tmp/etc" ]; then
|
|
for config in "/tmp/etc"/*; do
|
|
name="${config##*/}"
|
|
echo "Installing $config to /etc/$name"
|
|
if [ -d "$config" ]; then
|
|
\mkdir -p "/etc/$name"
|
|
copy "$config/." "/etc/$name/"
|
|
else
|
|
copy "$config" "/etc/$name"
|
|
fi
|
|
done
|
|
fi
|
|
unset config
|
|
if [ -d "/tmp/usr" ]; then
|
|
for usrpath in "/tmp/usr"/*; do
|
|
name="${usrpath##*/}"
|
|
echo "Installing $usrpath to /usr/$name"
|
|
if [ -d "$usrpath" ]; then
|
|
\mkdir -p "/usr/$name"
|
|
copy "$usrpath/." "/usr/$name/"
|
|
else
|
|
copy "$usrpath" "/usr/$name"
|
|
fi
|
|
done
|
|
fi
|
|
unset usrpath
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
exitCode=$?
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
exit $exitCode
|
|
# ex: ts=2 sw=2 et filetype=sh
|