Fix Directory Hardcodes, Documentation Improvements (#10)
* Improve the main crontab example. * Remove /opt/Docker hardcodes. * Add periods. * Improve readability. * Begin removing hardcoded path from the bin files. * Update main README to no longer enforce hardcoded path. Other improvements. * Add the load folder with a README. * Add load folder and its README. * Improve reverse proxy text files. * Switch to tabs. * Update all scripts for tabs, DOCKER_HOME, and comments. * Let users know the directory choice is optional. * Fix environment file. * Add more details for the reverse proxy load balancing. * Don't actually listen for postgres. * Fix comments on source file. * Be more explicit on the pathing.
This commit is contained in:
22
source.env
Normal file → Executable file
22
source.env
Normal file → Executable file
@ -1,19 +1,7 @@
|
||||
#!/bin/bash
|
||||
# Provide any necessary project variables.
|
||||
# Script is a shell file so that the paths can be relative.
|
||||
# Needs run in the current shell environment, such as:
|
||||
# source /PATH_TO_GIT_PROJECT/source.env
|
||||
|
||||
DIR=`dirname $0`
|
||||
if [[ $DIR == \.* ]]; then
|
||||
DIR=`pwd`
|
||||
fi
|
||||
|
||||
# Some projects are hard-coded to use /opt/Docker/Volumes so display a notice
|
||||
# until they are updated to be directory agnostic. Will help with testing!
|
||||
PREFERRED_HOME="/opt/Docker"
|
||||
if [[ $DIR != $PREFERRED_HOME ]]; then
|
||||
echo "WARNING: Preferred home is $PREFERRED_HOME but using $DIR." >&2
|
||||
fi
|
||||
|
||||
DOCKER_HOME=$DIR
|
||||
DOCKER_PATH=$DOCKER_HOME/bin
|
||||
PATH=$DOCKER_PATH:$PATH
|
||||
export DOCKER_HOME="$(dirname -- "${BASH_SOURCE[0]}")"
|
||||
export DOCKER_PATH="$DOCKER_HOME/bin"
|
||||
export PATH="$DOCKER_PATH:$PATH"
|
||||
|
Reference in New Issue
Block a user