-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTiltfile
More file actions
65 lines (56 loc) · 2.75 KB
/
Tiltfile
File metadata and controls
65 lines (56 loc) · 2.75 KB
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
############################################################
# Tiltfile for OpenCRVS
############################################################
# ℹ️ Please check readme at: https://github.com/opencrvs/infrastructure/tree/develop
load('../infrastructure/tilt/opencrvs.tilt', 'setup_opencrvs')
load('ext://git_resource', 'git_checkout')
if not os.path.exists('../charts'):
git_checkout('git@github.com:opencrvs/opencrvs-helm-charts.git', '../charts')
############################################################
# ⚙ CONFIGURATION SECTION: User-defined Variables
############################################################
# NOTE: You could take any value from https://github.com/orgs/opencrvs/packages
# Be careful, because not all core + countryconfig images are compatible with each other,
# especially if you are using "develop" tag.
# Usually, official release images, e/g v1.9.0, are compatible with each other
# One of working combination is:
# - core: v1.9.0-beta-6
# - opencrvs/ocrvs-countryconfig: v1.9.0-beta-6
core_images_tag = "v1.9.10"
# Countryconfig/Farajaland image repository and tag
# Usually image repository value (countryconfig_image_name) is your repository on DockerHub
# If for some reason you don't have DockerHub account yet, please create you local registry
# (see: https://medium.com/@ankitkumargupta/quick-start-local-docker-registry-35107038242e)
# If you would like to use Farajaland demo image, please use:
countryconfig_image_name="opencrvs/ocrvs-countryconfig"
# If you would like to start with sample countryconfig image, please use:
# countryconfig_image_name="opencrvs/ocrvs-countryconfig"
countryconfig_image_tag="v1.9.10"
# Namespaces:
# - opencrvs-deps-dev, dependencies namespace
dependencies_namespace = 'opencrvs-deps-dev'
# - opencrvs-dev, main namespace
opencrvs_namespace = 'opencrvs-dev'
# Security enabled:
# Configure security for dependencies and OpenCRVS services:
# - Setup MinIO admin user and password
# - Configure Redis users
# - Sync passwords between dependencies and OpenCRVS services
security_enabled = False
# Monitoring enabled:
# Enable Kibana and all other components
monitoring_enabled = False
# If your machine is powerful feel free to change parallel updates from default 3
# Be careful repositories like npm, yarn, pip, etc. could have rate limits
update_settings(max_parallel_updates=5)
############################################################
# Deploy workloads:
############################################################
setup_opencrvs(
core_images_tag=core_images_tag,
countryconfig_image_name=countryconfig_image_name,
countryconfig_image_tag=countryconfig_image_tag,
security_enabled=security_enabled,
monitoring_enabled=monitoring_enabled,
)
print("✅ Tiltfile configuration loaded successfully.")