mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-02-12 10:31:55 +00:00
This should fix https://github.com/riptidewave93/UNVR-NAS/issues/13 and make building easier across different systems.
21 lines
556 B
Bash
Executable file
21 lines
556 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
# Source our common vars
|
|
scripts_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
. ${scripts_path}/vars.sh
|
|
|
|
debug_msg "Starting 01_pre_docker.sh"
|
|
|
|
# Make sure our BuildEnv dir exists
|
|
if [ -d ${build_path} ]; then
|
|
error_msg "BuildEnv already exists, this isn't a clean build! Things might fail, but we're going to try!"
|
|
else
|
|
mkdir ${build_path}
|
|
fi
|
|
|
|
# Always build to pickup changes/updates/improvements
|
|
debug_msg "Building ${docker_tag}"
|
|
docker build -t ${docker_tag} ${root_path}
|
|
|
|
debug_msg "Finished 01_pre_docker.sh"
|