datahub/docker/archive-factory/build-backend.sh
2017-05-01 09:31:44 -07:00

22 lines
492 B
Bash
Executable File

#!/bin/bash
if [ -d "tmp" ]; then
rm -rf tmp
fi
mkdir tmp
cp originals/backend.zip tmp
cd tmp
unzip backend.zip
mv backend-ser* backend-service
# Some people may want to remove the documentation of the API.
# rm -rf backend-service/share
rm backend-service/README.md
# leave the option to change the secret later.
sed -i 's/changeme/$PLAY_CRYPTO_SECRET/g' backend-service/conf/application.conf
tar zcvf backend-service.tar.gz backend-service
cp *.tar.gz ../../backend-service/archives