2021-03-18 17:13:44 -04:00
|
|
|
#!/bin/bash
|
2021-03-18 18:35:11 -04:00
|
|
|
|
2021-04-22 15:57:44 -04:00
|
|
|
REAL_VAR0=`readlink -f $0`
|
|
|
|
HOME_DIR=`dirname ${REAL_VAR0}`
|
|
|
|
TEMP_DIR="${HOME_DIR}/temp"
|
|
|
|
SQL_DIR="${HOME_DIR}/sql"
|
2021-04-05 16:21:54 -04:00
|
|
|
|
2021-10-26 13:31:33 -04:00
|
|
|
if [ ! -f "${HOME_DIR}/.env" ]
|
|
|
|
then
|
|
|
|
cp "${HOME_DIR}/env-default" "${HOME_DIR}/.env"
|
|
|
|
fi
|
|
|
|
|
2021-10-26 18:36:30 -04:00
|
|
|
#Needed for Linux builds
|
2021-11-04 02:46:34 -04:00
|
|
|
chmod a+x ./docker/scripts/*
|
2021-10-26 18:36:30 -04:00
|
|
|
|
2021-08-17 15:26:35 -04:00
|
|
|
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
|
2021-04-22 15:57:44 -04:00
|
|
|
|
|
|
|
if ! docker-compose build
|
|
|
|
then
|
|
|
|
echo "docker-compose could not be found. You may need to install with pip."
|
|
|
|
exit
|
2021-08-17 15:26:35 -04:00
|
|
|
fi
|