-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sh
79 lines (61 loc) · 1.98 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
#! /bin/bash
######### MAIN CONFIG ##########
# Setup your application deployment here
################################
# Grab build number is mounted in CI system
if [[ -f /config/.buildenv ]]; then
source /config/.buildenv
else
BUILD_NUM=-1
fi
# Main version number we are tagging the app with. Always update
# this when you cut a new version of the app!
APP_TAG=v2.0.0-alpha
APP_VERSION=${APP_TAG}.${BUILD_NUM}
FIN_SERVER_REPO_TAG=v2.0-sandbox
#### End main config ####
# Repositories
GITHUB_ORG_URL=https://github.com/UCDavisLibrary
## Core Server
FIN_SERVER_REPO_NAME=fin
FIN_SERVER_REPO_URL=$GITHUB_ORG_URL/$FIN_SERVER_REPO_NAME
UCD_DAMS_REPO_NAME=dams
UCD_DAMS_REPO_URL=https://github.com/ucd-library/$UCD_DAMS_REPO_NAME
##
# Registery
##
if [[ -z $A6T_REG_HOST ]]; then
A6T_REG_HOST=gcr.io/ucdlib-pubreg
# set local-dev tags used by
# local development docker-compose file
if [[ $LOCAL_DEV == 'true' ]]; then
A6T_REG_HOST=localhost/local-dev
fi
fi
DOCKER_CACHE_TAG=latest
# Docker Images
FCREPO_IMAGE_NAME=$A6T_REG_HOST/fin-fcrepo
POSTGRES_IMAGE_NAME=$A6T_REG_HOST/fin-postgres
SERVER_IMAGE_NAME=$A6T_REG_HOST/fin-service
UCD_DAMS_SERVER_IMAGE_NAME=$A6T_REG_HOST/ucd-lib-dams-service
LORIS_IMAGE_NAME=$A6T_REG_HOST/fin-loris
ELASTIC_SEARCH_IMAGE_NAME=$A6T_REG_HOST/fin-elastic-search
TESSERACT_IMAGE_NAME=$A6T_REG_HOST/fin-tesseract
INIT_IMAGE_NAME=$A6T_REG_HOST/fin-init
UCD_DAMS_INIT_IMAGE_NAME=$A6T_REG_HOST/ucd-lib-dams-init
KEYCLOAK_IMAGE_NAME=$A6T_REG_HOST/ucd-lib-dams-keycloak-dev
ALL_DOCKER_BUILD_IMAGES=( \
$FCREPO_IMAGE_NAME $POSTGRES_IMAGE_NAME $ELASTIC_SEARCH_IMAGE_NAME \
$SERVER_IMAGE_NAME $LORIS_IMAGE_NAME $TESSERACT_IMAGE_NAME \
$INIT_IMAGE_NAME
)
# Git
GIT=git
GIT_CLONE="$GIT clone"
ALL_GIT_REPOSITORIES=( \
$FIN_SERVER_REPO_NAME $UCD_DAMS_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