forked from fabric8-analytics/fabric8-analytics-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv-template.sh
78 lines (62 loc) · 2.82 KB
/
env-template.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
# This is a deployment configuration template with default values used to configure dev deployment of fabric8-analytics.
# It is recommended to copy this file and then modify it:
# $ cp env-template.sh env.sh
# (Required) Dev cluster
# Export dev cluster token
export OC_TOKEN='not-set'
# Usually your kerberos-id
export USER_ID='not-set'
# (Required) AWS credentials
export AWS_ACCESS_KEY_ID='not-set'
export AWS_SECRET_ACCESS_KEY='not-set'
# PostgreSQL/RDS password to be used
# You can generate a good password with `pwgen`:
# $ pwgen -1cs 32
export RDS_PASSWORD='not-set'
# (Required) Your OpenShift.io API token. You can find it on your profile page when you log in to https://openshift.io.
export RECOMMENDER_API_TOKEN='not-set'
# (Required) GitHub
# Comma-separated list of tokens for talking to GitHub API. Having just single token here is enough.
# You can generate a token here: https://github.com/settings/tokens
export GITHUB_API_TOKENS='not-set'
# (Required) Get your Libraries.io API token here: https://libraries.io/account
export LIBRARIES_IO_TOKEN='not-set'
# Following section describes how to setup authentication for the jobs service. Feel free to skip it, if you don't need the service.
#
# Create a new GitHub OAuth App here: https://github.com/settings/developers
# You will need to provide homepage and callback URL; for the dev cluster, use following values (replace OC_
NAME):
# "Homepage URL" is "http://bayesian-jobs-${USER_ID}-fabric8-analytics.devtools-dev.ext.devshift.net/"
# "Authorization callback URL" is "http://bayesian-jobs-${USER_ID}-fabric8-analytics.devtools-dev.ext.devshift.net/api/v1/authorized"
# In return, you'll get GITHUB_OAUTH_CONSUMER_KEY and GITHUB_OAUTH_CONSUMER_SECRET from GitHub.
# Client ID is GITHUB_OAUTH_CONSUMER_KEY
# Client Secret is GITHUB_OAUTH_CONSUMER_SECRET
export GITHUB_OAUTH_CONSUMER_KEY='not-set'
export GITHUB_OAUTH_CONSUMER_SECRET='not-set'
# ----------------------------------------------------------------------------------
# Non-essential configuration options follow. You likely don't need to touch these.
# Deployment Prefix
export DEPLOYMENT_PREFIX=${USER_ID}
# Keycloak
export KEYCLOAK_URL='https://sso.openshift.io'
# Flask
export FLASK_APP_SECRET_KEY='notsosecret'
# Dev cluster
export OC_URI='devtools-dev.ext.devshift.net:8443'
export OC_PROJECT="${USER_ID}-fabric8-analytics"
# AWS
export AWS_DEFAULT_REGION='us-east-1'
## RDS configuration variables are use to provision RDS instance
export RDS_ENDPOINT=''
export RDS_INSTANCE_NAME="${USER_ID}-bayesiandb"
export RDS_INSTANCE_CLASS='db.t2.micro'
export RDS_DBNAME='postgres'
export RDS_DBADMIN='coreapi'
export RDS_STORAGE=5
export RDS_SUBNET_GROUP_NAME='dv peering az'
export RDS_ARN='not-set'
# URLs against which to run E2E tests
export F8A_API_URL='not-set'
export F8A_JOB_API_URL='not-set'
# Sentry URL
export SENTRY_DSN=''