-
Notifications
You must be signed in to change notification settings - Fork 69
fix: Moved all common tilt stuff to shared library #1096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c48b9eb to
dae535c
Compare
dae535c to
e0f4669
Compare
Tiltfile
Outdated
| # 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) | ||
| core_images_tag = "v1.9.0-beta-6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something we want to hardcode? It will be old in a week
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiltfile is a configuration file by itself, some properties like image tag can be parametrised, but some properties used for resource loading can't.
If we can't parametrise all configuration properties, we will made a confusion to people by introducing some parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed tag to develop, that tag should be more stable
|
|
||
| # If your machine is powerful feel free to change parallel updates from default 3 | ||
| # update_settings(max_parallel_updates=3) | ||
| load('../infrastructure/tilt/opencrvs.tilt', 'setup_opencrvs') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this local path? I assume that I would not have the file in place
|
|
||
| # If your machine is powerful feel free to change parallel updates from default 3 | ||
| # update_settings(max_parallel_updates=3) | ||
| load('../infrastructure/tilt/opencrvs.tilt', 'setup_opencrvs') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not os.path.exists('../infrastructure'):
local("git clone [email protected]:opencrvs/infrastructure.git ../infrastructure")
load('../infrastructure/tilt/opencrvs.tilt', 'setup_opencrvs')
Ah, I see. As long we have it somewhere written down that these repos need to live side by side.
Other way would be to introduce INFRA_REPOSITORY_PATH to allow ay config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish to parametrise repository path, but tiltfile has limitations:
# ✅ Correct - string literal
load('../infrastructure/tilt/opencrvs.tilt', 'setup_opencrvs')
# ❌ Wrong - variable
lib_path = '../infrastructure/tilt/opencrvs.tilt'
load(lib_path, 'setup_opencrvs')
load doesn't support variables. In next iteration I will try to publish opencrvs.tilt as external module
b729451 to
51e121b
Compare
Note
Currently, we do not run e2e tests as a check on
opencrvs-countryconfig-repo PRs. Please ensure your PR doesn't break any e2e tests.One method for doing this is to open a PR with these changes to
opencrvs-farajalandas well, and see if the PR check passes there.Description
Issue addressed: opencrvs/opencrvs-core#10672
This PR aims to actualise Tiltfile after 6 months of development.
Related PRs:
Testing
Note
Apple Silicon users need to build ARM compatible OpenCRVS Core images, see github workflow: https://github.com/opencrvs/opencrvs-core/actions/runs/18721862548
Core image tag
developwas built with ARM support for this particular test. Docker desktop on apple silicon is able to runamd64images, but performance is significantly degraded.We are not building images locally, but pulling from GitHub registry, first start may take up to 30 minutes. On my machine it took 15 minutes, internet connection speed 300Mb/s
Prerequisites
Hardware:

Software:
minikube

docker desktop

Note
In this test infrastructure repository is cloned by running
tilt upcommandBuilt-in docker desktop kubernetes cluster was disabled
Steps to test
Example output:
Use following command to start minikube:
tilt upExample output:
Example output:

Note
Use
watch kubectl get po -n opencrvs-devto get real time pods statusChecklist