-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1414d31
commit 56ed019
Showing
4 changed files
with
31 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
ENVFILE=$1 | ||
DEBUG= | ||
|
||
|
||
if [[ "$1" != "" ]]; then | ||
ENV_TAG="$1" | ||
else | ||
echo "You must give an argument that specifies the deployment, e.g. crawler06 uses prod-env-crawler06.sh." | ||
exit 1 | ||
# read environment file | ||
if [[ "${ENVFILE}" == "" ]]; then | ||
echo "ERROR: You must give an argument that specifies the deployment, e.g. crawler06 uses prod-env-crawler06.sh." | ||
exit 1 | ||
fi | ||
if ! [[ -f ${ENVFILE} ]]; then | ||
echo "ERROR: argument [${ENVFILE}] environment file missing" | ||
exit 1 | ||
fi | ||
source ./${ENVFILE} | ||
|
||
|
||
source ./env-${ENV_TAG}.sh | ||
# check pywb envars | ||
if [[ "${WB_HOST}" == "" ]]; then | ||
echo "ERROR: WB_HOST not set" | ||
exit 1 | ||
fi | ||
|
||
# start FC pywb | ||
docker stack deploy -c ../fc-wb/docker-compose.yml fc_wb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters