Ready for TrueNAS+runtipi hosting
- adapt secretes via tipi-compose - add ix-dockge to runtipi-reverse-proxy as an example - added rt.dockge.yml(.bobo) as an example - bobo auth is now working
This commit is contained in:
parent
aac1960343
commit
dd6cc77488
6 changed files with 125 additions and 10 deletions
|
@ -15,7 +15,7 @@ BASE_NAME="$(basename -- "$0")"
|
|||
BASE_BASE_NAME="${BASE_NAME%.*}"
|
||||
|
||||
RUNTIPI_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
|
||||
RUNTIPI_CLI="${RUNTIPI_ROOT}/runtipi_cli"
|
||||
RUNTIPI_CLI="${RUNTIPI_ROOT}/runtipi-cli"
|
||||
set -e
|
||||
|
||||
cd "${RUNTIPI_ROOT}" > /dev/null
|
||||
|
@ -46,6 +46,9 @@ runtipi-app-docker-compose() {
|
|||
echo --file apps/${APP}/docker-compose.yml
|
||||
append_file_param --file repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903/apps/docker-compose.common.yml
|
||||
append_file_param --file "user-config/${APP}/docker-compose.yml"
|
||||
else
|
||||
append_file_param --file "docker-compose.yml"
|
||||
append_file_param --file "user-config/tipi-compose.yml"
|
||||
fi) \
|
||||
${@:2}
|
||||
}
|
||||
|
@ -68,7 +71,11 @@ case "${1}" in
|
|||
runtipi-cli start --env-file user-config/.env.local --no-permissions
|
||||
;;
|
||||
update)
|
||||
runtipi-cli update --env-file user-config/.env.local --no-permissions "${2:?Must supply version}" "${@:3}"
|
||||
if [ -z "${2}" ]; then
|
||||
${SCRIPT_DIR}/checkver.sh
|
||||
else
|
||||
runtipi-cli update --env-file user-config/.env.local --no-permissions "${2:?Must supply version}" "${@:3}"
|
||||
fi
|
||||
;;
|
||||
docker)
|
||||
docker "${@:2}"
|
||||
|
@ -83,6 +90,9 @@ case "${1}" in
|
|||
cd "${RUNTIPI_ROOT}/../dockge/stacks/${2:?Must supply stack name}" > /dev/null
|
||||
docker compose "${@:3}"
|
||||
;;
|
||||
shell)
|
||||
runtipi-app-docker-compose "${2:?}" exec ${5:+"${@:5}"} -it "${4:-${2}}" "${3:-bash}"
|
||||
;;
|
||||
setup)
|
||||
ln -s $2 "$(cd -- "${SCRIPT_DIR}" && pwd)/${BASE_NAME}" "${3:-$HOME/.local/bin/}"
|
||||
;;
|
||||
|
@ -108,10 +118,10 @@ case "${1}" in
|
|||
"" "dls" "stylized docker ls" \
|
||||
"" "docker" "docker" \
|
||||
"" "dockge" "docker compose for dockge stacks" \
|
||||
"" "shell" "enter an insteractive shell" \
|
||||
"" "" "" \
|
||||
"misc." "" ""\
|
||||
"" "exec" "execute within the shell, START_DIR env applies" \
|
||||
"" "shell" "enter an insteractive shell" \
|
||||
"" "" "" \
|
||||
"" "setup" "setup runtipictl in user's .local/bin dir" \
|
||||
"" "" "${BASE_NAME} setup" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue