2023-07-05 18:36:23 -07:00
|
|
|
#!/bin/bash
|
2023-07-05 18:43:48 -07:00
|
|
|
# 2023-07-05 Converted the env file to a shell script so that $0 can be used.
|
2023-07-05 18:36:23 -07:00
|
|
|
|
|
|
|
DIR=`dirname $0`
|
|
|
|
if [[ $DIR == \.* ]]; then
|
|
|
|
DIR=`pwd`
|
|
|
|
fi
|
|
|
|
|
2023-07-05 18:43:48 -07:00
|
|
|
# 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
|
|
|
|
|
2023-07-05 18:36:23 -07:00
|
|
|
DOCKER_HOME=$DIR
|
2022-08-06 08:11:04 -05:00
|
|
|
DOCKER_PATH=$DOCKER_HOME/bin
|
2023-07-05 18:00:40 -07:00
|
|
|
PATH=$DOCKER_PATH:$PATH
|