-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sh
executable file
·84 lines (65 loc) · 2.62 KB
/
config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#! /bin/bash
######### MAIN CONFIG ##########
# Setup your application deployment here
################################
# Main version number we are tagging the app with. Always update
# this when you cut a new version of the app!
APP_VERSION=v1.3.8
CORE_SERVER_REPO_TAG=v1.3.0
UCD_LIB_SERVER_REPO_TAG=v1.1.3
LORIS_SERVICE_REPO_TAG=v1.0.0
TESSERACT_SERVICE_REPO_TAG=v1.0.1
CAS_SERVICE_REPO_TAG=v1.0.1
#### End main config ####
# Repositories
GITHUB_ORG_URL=https://github.com/UCDavisLibrary
## Core Server
CORE_SERVER_REPO_NAME=fin-server
CORE_SERVER_REPO_URL=$GITHUB_ORG_URL/$CORE_SERVER_REPO_NAME
## UCD Library Server
UCD_LIB_SERVER_REPO_NAME=fin-ucd-lib-server
UCD_LIB_SERVER_REPO_URL=$GITHUB_ORG_URL/$UCD_LIB_SERVER_REPO_NAME
## Loris Service
LORIS_SERVICE_REPO_NAME=fin-service-loris
LORIS_SERVICE_REPO_URL=$GITHUB_ORG_URL/$LORIS_SERVICE_REPO_NAME
## Tesseract Service
TESSERACT_SERVICE_REPO_NAME=fin-service-tesseract
TESSERACT_SERVICE_REPO_URL=$GITHUB_ORG_URL/$TESSERACT_SERVICE_REPO_NAME
## CAS Service
CAS_SERVICE_REPO_NAME=fin-service-cas
CAS_SERVICE_REPO_URL=$GITHUB_ORG_URL/$CAS_SERVICE_REPO_NAME
# Docker Hub
UCD_LIB_DOCKER_ORG=ucdlib
DOCKER_CACHE_TAG="latest"
LOCAL_TAG="local-dev"
# Docker Images
FCREPO_IMAGE_NAME=$UCD_LIB_DOCKER_ORG/fin-fcrepo
POSTGRES_IMAGE_NAME=$UCD_LIB_DOCKER_ORG/fin-postgres
NODE_UTILS_IMAGE_NAME=$UCD_LIB_DOCKER_ORG/fin-node-utils
SERVER_IMAGE_NAME=$UCD_LIB_DOCKER_ORG/fin-server
TRUSTED_PROXY_IMAGE_NAME=$UCD_LIB_DOCKER_ORG/fin-trusted-proxy
ELASTIC_SEARCH_IMAGE_NAME=$UCD_LIB_DOCKER_ORG/fin-elasticsearch
UCD_LIB_SERVER_IMAGE_NAME=$UCD_LIB_DOCKER_ORG/fin-ucd-lib-server
ESSYNC_IMAGE_NAME=$UCD_LIB_DOCKER_ORG/fin-essync
UCD_LIB_CLIENT_IMAGE_NAME=$UCD_LIB_DOCKER_ORG/fin-ucd-lib-client
LORIS_IMAGE_NAME=$UCD_LIB_DOCKER_ORG/fin-loris
TESSERACT_IMAGE_NAME=$UCD_LIB_DOCKER_ORG/fin-tesseract
CAS_IMAGE_NAME=$UCD_LIB_DOCKER_ORG/fin-cas
UCD_LIB_SERVER_IMPL=$UCD_LIB_DOCKER_ORG/fin-ucd-lib-server-impl
ALL_DOCKER_BUILD_IMAGES=( \
$FCREPO_IMAGE_NAME $POSTGRES_IMAGE_NAME $NODE_UTILS_IMAGE_NAME \
$SERVER_IMAGE_NAME $TRUSTED_PROXY_IMAGE_NAME $ELASTIC_SEARCH_IMAGE_NAME \
$UCD_LIB_SERVER_IMAGE_NAME $ESSYNC_IMAGE_NAME $UCD_LIB_CLIENT_IMAGE_NAME \
$LORIS_IMAGE_NAME $TESSERACT_IMAGE_NAME $CAS_IMAGE_NAME $UCD_LIB_SERVER_IMPL \
)
# Git
GIT=git
GIT_CLONE="$GIT clone"
ALL_GIT_REPOSITORIES=( \
$CORE_SERVER_REPO_NAME $UCD_LIB_SERVER_REPO_NAME $LORIS_SERVICE_REPO_NAME \
$TESSERACT_SERVICE_REPO_NAME $CAS_SERVICE_REPO_NAME \
)
# directory we are going to cache our various git repos at different tags
# if using pull.sh or the directory we will look for repositories (can by symlinks)
# if local development
REPOSITORY_DIR=repositories