Files
openfoodnetwork/docker/build
2024-11-28 08:39:51 +09:00

13 lines
327 B
Bash
Executable File

#!/bin/bash
set -e
# This script builds the Docker container, seeds the app with sample data, and logs the screen output.
DATE=`date +%Y%m%d-%H%M%S-%3N`
if [ -n "$1" ]; then
docker/build-log $1 2>&1 | tee log/build-$DATE.log
else
docker/build-log 2>&1 | tee log/build-$DATE.log
fi
docker/seed 2>&1 | tee log/seed-$DATE.log