🔧 Update to latest docker template revision 🔧
Build and Push / build (push) Has been cancelled

- .env.scripts: synced version stamp to current template
- Dockerfile: fixed trailing space in PACK_LIST; restored image.source LABEL to GitHub URL after gen-dockerfile mis-set it to Docker Hub
- rootfs/usr/local/bin/entrypoint.sh: regenerated from current template
- rootfs/usr/local/etc/docker/functions/entrypoint.sh: replaced from current template
- rootfs/root/docker/setup/00-init.sh through 07-cleanup.sh: regenerated from current template
- rootfs/etc/profile.d/go.sh: migrated to rootfs/tmp/etc/profile.d/go.sh per current rootfs layout
- .gitignore: added rootfs/tmp/ exception so migrated rootfs/tmp files stay tracked

Dockerfile
.env.scripts
.gitignore
rootfs/etc/profile.d/go.sh
rootfs/root/docker/setup/00-init.sh
rootfs/root/docker/setup/01-system.sh
rootfs/root/docker/setup/02-packages.sh
rootfs/root/docker/setup/03-files.sh
rootfs/root/docker/setup/04-users.sh
rootfs/root/docker/setup/05-custom.sh
rootfs/root/docker/setup/06-post.sh
rootfs/root/docker/setup/07-cleanup.sh
rootfs/tmp/
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
This commit is contained in:
2026-07-12 01:04:38 -04:00
parent 6c9a4f091a
commit 74685f6042
14 changed files with 57 additions and 22 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
# - - - - - - - - - - - - - - - - - - - - - - - - -
##@Version : 202607092001-git
##@Version : 202607112108-git
# @@Author : CasjaysDev
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
# @@License : WTFPL
# @@Copyright : Copyright 2026 CasjaysDev
# @@Created : Thu Jul 9 08:01:29 PM EDT 2026
# @@Created : Sat Jul 11 09:08:33 PM EDT 2026
# @@File : .env.scripts
# @@Description : Variables for gen-dockerfile and buildx scripts
# @@Changelog : newScript
+2
View File
@@ -206,6 +206,8 @@ tmp/
*.tmp
*.cache
.cache/
!rootfs/tmp/
!rootfs/tmp/**
### Test and coverage ###
coverage/
+1 -1
View File
@@ -78,7 +78,7 @@ ARG PHP_SERVER
ARG SHELL_OPTS
ARG PATH
ARG PACK_LIST="git make bash tini ca-certificates openssh-client curl wget tar tzdata jq build-base gcc musl-dev pkgconf openssl-dev libffi-dev zlib-dev linux-headers protobuf protobuf-dev"
ARG PACK_LIST="git make bash tini ca-certificates openssh-client curl wget tar tzdata jq build-base gcc musl-dev pkgconf openssl-dev libffi-dev zlib-dev linux-headers protobuf protobuf-dev "
ENV ENV=~/.profile
ENV SHELL="/bin/sh"
+2 -2
View File
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# - - - - - - - - - - - - - - - - - - - - - - - - -
##@Version : 202607092021-git
##@Version : 202607112314-git
# @@Author : CasjaysDev
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
# @@License : WTFPL
# @@Copyright : Copyright 2026 CasjaysDev
# @@Created : Thu Jul 9 08:21:30 PM EDT 2026
# @@Created : Sat Jul 11 11:14:27 PM EDT 2026
# @@File : 00-init.sh
# @@Description : script to run init
# @@Changelog : newScript
+2 -2
View File
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# - - - - - - - - - - - - - - - - - - - - - - - - -
##@Version : 202607092021-git
##@Version : 202607112314-git
# @@Author : CasjaysDev
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
# @@License : WTFPL
# @@Copyright : Copyright 2026 CasjaysDev
# @@Created : Thu Jul 9 08:21:31 PM EDT 2026
# @@Created : Sat Jul 11 11:14:27 PM EDT 2026
# @@File : 01-system.sh
# @@Description : script to run system
# @@Changelog : newScript
+2 -2
View File
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# - - - - - - - - - - - - - - - - - - - - - - - - -
##@Version : 202607092021-git
##@Version : 202607112314-git
# @@Author : CasjaysDev
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
# @@License : WTFPL
# @@Copyright : Copyright 2026 CasjaysDev
# @@Created : Thu Jul 9 08:21:32 PM EDT 2026
# @@Created : Sat Jul 11 11:14:28 PM EDT 2026
# @@File : 02-packages.sh
# @@Description : script to run packages
# @@Changelog : newScript
+2 -2
View File
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# - - - - - - - - - - - - - - - - - - - - - - - - -
##@Version : 202607092021-git
##@Version : 202607112314-git
# @@Author : CasjaysDev
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
# @@License : WTFPL
# @@Copyright : Copyright 2026 CasjaysDev
# @@Created : Thu Jul 9 08:21:32 PM EDT 2026
# @@Created : Sat Jul 11 11:14:28 PM EDT 2026
# @@File : 03-files.sh
# @@Description : script to run files
# @@Changelog : newScript
+2 -2
View File
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# - - - - - - - - - - - - - - - - - - - - - - - - -
##@Version : 202607092021-git
##@Version : 202607112314-git
# @@Author : CasjaysDev
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
# @@License : WTFPL
# @@Copyright : Copyright 2026 CasjaysDev
# @@Created : Thu Jul 9 08:21:32 PM EDT 2026
# @@Created : Sat Jul 11 11:14:29 PM EDT 2026
# @@File : 04-users.sh
# @@Description : script to run users
# @@Changelog : newScript
+2 -2
View File
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# - - - - - - - - - - - - - - - - - - - - - - - - -
##@Version : 202607092021-git
##@Version : 202607112314-git
# @@Author : CasjaysDev
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
# @@License : WTFPL
# @@Copyright : Copyright 2026 CasjaysDev
# @@Created : Thu Jul 9 08:21:32 PM EDT 2026
# @@Created : Sat Jul 11 11:14:29 PM EDT 2026
# @@File : 05-custom.sh
# @@Description : script to run custom
# @@Changelog : newScript
+2 -2
View File
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# - - - - - - - - - - - - - - - - - - - - - - - - -
##@Version : 202607092021-git
##@Version : 202607112314-git
# @@Author : CasjaysDev
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
# @@License : WTFPL
# @@Copyright : Copyright 2026 CasjaysDev
# @@Created : Thu Jul 9 08:21:32 PM EDT 2026
# @@Created : Sat Jul 11 11:14:29 PM EDT 2026
# @@File : 06-post.sh
# @@Description : script to run post
# @@Changelog : newScript
+2 -2
View File
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# - - - - - - - - - - - - - - - - - - - - - - - - -
##@Version : 202607092021-git
##@Version : 202607112314-git
# @@Author : CasjaysDev
# @@Contact : CasjaysDev <docker-admin@casjaysdev.pro>
# @@License : WTFPL
# @@Copyright : Copyright 2026 CasjaysDev
# @@Created : Thu Jul 9 08:21:33 PM EDT 2026
# @@Created : Sat Jul 11 11:14:30 PM EDT 2026
# @@File : 07-cleanup.sh
# @@Description : script to run cleanup
# @@Changelog : newScript
+1 -1
View File
@@ -7,7 +7,7 @@
# @@License : WTFPL
# @@ReadME : entrypoint.sh --help
# @@Copyright : Copyright: (c) 2026 Jason Hempstead, Casjays Developments
# @@Created : Thursday, Jul 09, 2026 20:21 EDT
# @@Created : Saturday, Jul 11, 2026 23:13 EDT
# @@File : entrypoint.sh
# @@Description : Entrypoint file for go
# @@Changelog : New script
@@ -1124,7 +1124,7 @@ __start_init_scripts() {
__setup_mta() {
# Check for an installed MTA binary — directories alone cannot be trusted because
# /etc/postfix ships in some base images (casjaysdev/alpine) even without postfix.
command -v ssmtp &>/dev/null || command -v postfix &>/dev/null || return 0
command -v msmtp &>/dev/null || command -v ssmtp &>/dev/null || command -v postfix &>/dev/null || return 0
local exitCode=0
# Extract server and port only when EMAIL_RELAY contains a colon
local relay_server="" relay_port=""
@@ -1148,8 +1148,41 @@ __setup_mta() {
local relay_use_tls="Yes"
local relay_smtp_tls="yes"
[ "$relay_port" = "25" ] && relay_use_tls="No" && relay_smtp_tls="no"
################# msmtp relay setup
if command -v msmtp &>/dev/null; then
[ -d "/config/msmtp" ] || mkdir -p "/config/msmtp"
[ -f "/etc/msmtprc" ] && __rm "/etc/msmtprc"
if [ ! -f "/config/msmtp/msmtprc" ]; then
cat >"/config/msmtp/msmtprc" <<EOF
# msmtp configuration.
defaults
auth on
tls ${relay_use_tls,,}
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile /var/log/msmtp.log
account default
host ${relay_server:-172.17.0.1}
port $relay_port
from ${account_user:-root}@${account_domain:-$HOSTNAME}
#user username
#password password
EOF
fi
if [ -f "/config/msmtp/msmtprc" ]; then
__symlink "/config/msmtp/msmtprc" "/etc/msmtprc"
__initialize_replace_variables "/etc/msmtprc"
chmod 600 "/etc/msmtprc" 2>/dev/null || true
# sendmail compat symlink
if [ ! -e "/usr/sbin/sendmail" ] && command -v msmtp &>/dev/null; then
__symlink "$(command -v msmtp)" "/usr/sbin/sendmail"
fi
[ "$DEBUGGER" = "on" ] && echo "Done setting up msmtp"
fi
################# sSMTP relay setup
if command -v ssmtp &>/dev/null; then
elif command -v ssmtp &>/dev/null; then
[ -d "/config/ssmtp" ] || mkdir -p "/config/ssmtp"
[ -f "/etc/ssmtp/ssmtp.conf" ] && __rm "/etc/ssmtp/ssmtp.conf"
symlink_files="$(__find_file_relative "/config/ssmtp")"