Chad
fc7a5dc57d
* Make the backup puller a full-fledged script after all. * Finish the main portion. * Remove version tag to avoid log errors on Docker 26.0, Compose 2.25.0. * Try moving to a smaller, faster, more stable image. * Move Nextcloud to the stable tag. * Add shortcut aliases. * Rename container website to www. * Do not install the latest of the PHP or Node programs if a version already exists in the container. * We need git!! * Try only git and the PHP interpretor. * Remove comments. * Install express at the image layer, not during runtime. * Let the app install express after all. * Remove warning about apt CLI. * Try to cache the express download/install. * Fix caching of Node packages.
40 lines
870 B
Bash
Executable File
40 lines
870 B
Bash
Executable File
#!/bin/bash
|
|
# Provide any necessary project variables.
|
|
# Needs run in the current shell environment, such as:
|
|
# source /PATH_TO_PROJECT/source.env
|
|
|
|
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
|
|
PROG="$(basename -- "${BASH_SOURCE[0]}")"
|
|
|
|
# Get the absolute path.
|
|
CURR="`pwd`"
|
|
cd $DIR
|
|
DIR="`pwd`"
|
|
cd "$CURR"
|
|
|
|
## Variables ##
|
|
|
|
DOCKER_HOME="$DIR"
|
|
DOCKER_PATH="$DOCKER_HOME/bin"
|
|
PATH="$DOCKER_PATH:$PATH"
|
|
|
|
export DOCKER_HOME DOCKER_PATH PATH
|
|
|
|
## Aliases ##
|
|
|
|
alias manage="$DOCKER_HOME/bin/manage.sh"
|
|
|
|
alias Docker="cd $DOCKER_HOME"
|
|
alias Config="cd $DOCKER_HOME/Config"
|
|
alias Volumes="cd $DOCKER_HOME/Volumes"
|
|
|
|
## Validations ##
|
|
|
|
if [[ -e $DOCKER_HOME/$PROG ]]; then
|
|
echo "'$DOCKER_HOME/$PROG' has been loaded successfully."
|
|
else
|
|
echo "ERROR: Something has gone wrong, could not find '$PROG' from absolute "
|
|
echo "path, Docker Home '$DOCKER_HOME' is likely wrong."
|
|
exit 1
|
|
fi
|