genienlp/dockerfiles/start.sh

11 lines
327 B
Bash
Raw Normal View History

2021-02-05 20:14:59 +00:00
#!/bin/bash
set -ex
if [ -n "${S3_MODEL_DIR}" ]; then
aws s3 sync --no-progress --exclude '*/dataset/*' --exclude '*/cache/*' --exclude 'iteration_*.pth' --exclude '*_optim.pth' "${S3_MODEL_DIR}" ./model
2021-02-05 20:14:59 +00:00
fi
if [ -n "${S3_DATABASE_DIR}" ]; then
2021-03-16 20:12:15 +00:00
aws s3 sync --no-progress "${S3_DATABASE_DIR}" ./database
fi
exec genienlp $@