Default ENV changes
This commit is contained in:
parent
2a4eff5573
commit
86f6d28044
5
build.sh
5
build.sh
|
@ -5,6 +5,11 @@ HOME_DIR=`dirname ${REAL_VAR0}`
|
||||||
TEMP_DIR="${HOME_DIR}/temp"
|
TEMP_DIR="${HOME_DIR}/temp"
|
||||||
SQL_DIR="${HOME_DIR}/sql"
|
SQL_DIR="${HOME_DIR}/sql"
|
||||||
|
|
||||||
|
if [ ! -f "${HOME_DIR}/.env" ]
|
||||||
|
then
|
||||||
|
cp "${HOME_DIR}/env-default" "${HOME_DIR}/.env"
|
||||||
|
fi
|
||||||
|
|
||||||
docker build -t reso-builder -f docker/docker-builder .
|
docker build -t reso-builder -f docker/docker-builder .
|
||||||
docker run --name builder --mount type=bind,source="${HOME_DIR}",target=/usr/src/app -t reso-builder
|
docker run --name builder --mount type=bind,source="${HOME_DIR}",target=/usr/src/app -t reso-builder
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,6 @@ SQL_DIR="${HOME_DIR}/sql"
|
||||||
# Ensure we have directories set up
|
# Ensure we have directories set up
|
||||||
[ -d "${TEMP_DIR}" ] && echo "temp directory found." || mkdir ${TEMP_DIR}
|
[ -d "${TEMP_DIR}" ] && echo "temp directory found." || mkdir ${TEMP_DIR}
|
||||||
[ -d "${SQL_DIR}" ] && echo "sql directory found." || mkdir ${SQL_DIR}
|
[ -d "${SQL_DIR}" ] && echo "sql directory found." || mkdir ${SQL_DIR}
|
||||||
if [ ! -f "${HOME_DIR}/.env" ]
|
|
||||||
then
|
|
||||||
cp "${HOME_DIR}/env-default" "${HOME_DIR}/.env"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${SQL_HOST}" ]
|
if [ -z "${SQL_HOST}" ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
COMPOSE_FILE=docker-compose.yml:./optional/docker-db-compose.yml
|
COMPOSE_FILE=docker-compose.yml;./optional/docker-db-compose.yml
|
||||||
SQL_HOST=docker-mysql
|
SQL_HOST=docker-mysql
|
||||||
SQL_USER=root
|
SQL_USER=root
|
||||||
SQL_PASSWORD=root
|
SQL_PASSWORD=root
|
||||||
|
|
Loading…
Reference in New Issue