forked from airbytehq/airbyte-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved OSS development environment (#6997)
- Loading branch information
Showing
12 changed files
with
99 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if k8s_context() != 'colima-ab-control-plane': | ||
fail('!!! You are currently configured to use a non-local context. Please run `make k8s.up`') | ||
|
||
load_dynamic('./airbyte-workers/Tiltfile') | ||
load_dynamic('./airbyte-server/Tiltfile') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
update_settings(suppress_unused_image_warnings=["server"]) | ||
|
||
DEBUG = os.environ.get("DEBUG", "false") | ||
IMAGE_TAG = os.environ.get("IMAGE_TAG", "dev") | ||
|
||
watch_file('.') | ||
|
||
custom_build( | ||
'airbyte/server', | ||
'../gradlew :airbyte-server:assemble', | ||
tag=IMAGE_TAG, | ||
deps=['src'], | ||
disable_push=True, | ||
) | ||
|
||
template = helm( | ||
'../charts/airbyte', | ||
name='ab', | ||
namespace='ab', | ||
values=['../charts/airbyte/values.yaml'], | ||
set=[ | ||
'airbyte-bootloader.debug.enabled={}'.format(DEBUG), | ||
'airbyte-bootloader.image.tag={}'.format(IMAGE_TAG), | ||
'billing.debug.enabled={}'.format(DEBUG), | ||
'billing.image.tag={}'.format(IMAGE_TAG), | ||
'connector-builder-server.debug.enabled={}'.format(DEBUG), | ||
'connector-builder-server.image.tag={}'.format(IMAGE_TAG), | ||
'server.debug.enabled={}'.format(DEBUG), | ||
'server.image.tag={}'.format(IMAGE_TAG), | ||
'webapp.image.tag={}'.format(IMAGE_TAG), | ||
'worker.debug.enabled={}'.format(DEBUG), | ||
'worker.env_vars.CONTAINER_ORCHESTRATOR_IMAGE=airbyte/container-orchestrator:{}'.format(IMAGE_TAG), | ||
'worker.image.tag={}'.format(IMAGE_TAG) | ||
] | ||
) | ||
|
||
deployment = filter_yaml( | ||
template, | ||
kind='deployment', | ||
name="ab-server", | ||
) | ||
|
||
k8s_yaml(deployment[0]) | ||
k8s_resource('ab-server', new_name='server', labels='backend') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
update_settings(suppress_unused_image_warnings=["worker"]) | ||
|
||
DEBUG = os.environ.get("DEBUG", "false") | ||
IMAGE_TAG = os.environ.get("IMAGE_TAG", "dev") | ||
|
||
watch_file('.') | ||
|
||
custom_build( | ||
'airbyte/worker', | ||
'../gradlew :airbyte-worker:assemble', | ||
tag=IMAGE_TAG, | ||
deps=['src'], | ||
disable_push=True, | ||
) | ||
template = helm( | ||
'../charts/airbyte', | ||
name='ab', | ||
namespace='ab', | ||
values=['../charts/airbyte/values.yaml'], | ||
set=[ | ||
'airbyte-bootloader.debug.enabled={}'.format(DEBUG), | ||
'airbyte-bootloader.image.tag={}'.format(IMAGE_TAG), | ||
'billing.debug.enabled={}'.format(DEBUG), | ||
'billing.image.tag={}'.format(IMAGE_TAG), | ||
'connector-builder-server.debug.enabled={}'.format(DEBUG), | ||
'connector-builder-server.image.tag={}'.format(IMAGE_TAG), | ||
'server.debug.enabled={}'.format(DEBUG), | ||
'server.image.tag={}'.format(IMAGE_TAG), | ||
'webapp.image.tag={}'.format(IMAGE_TAG), | ||
'worker.debug.enabled={}'.format(DEBUG), | ||
'worker.env_vars.CONTAINER_ORCHESTRATOR_IMAGE=airbyte/container-orchestrator:{}'.format(IMAGE_TAG), | ||
'worker.image.tag={}'.format(IMAGE_TAG) | ||
] | ||
) | ||
|
||
deployment = filter_yaml( | ||
template, | ||
kind='deployment', | ||
name="ab-worker", | ||
) | ||
|
||
k8s_yaml(deployment[0]) | ||
k8s_resource('ab-worker', new_name='worker', labels='backend') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,4 +183,4 @@ env_vars: {} | |
|
||
debug: | ||
enabled: false | ||
remoteDebugPort: 5003 | ||
remoteDebugPort: 5005 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -421,4 +421,4 @@ deploymentStrategyType: Recreate | |
|
||
debug: | ||
enabled: false | ||
remoteDebugPort: 5001 | ||
remoteDebugPort: 5005 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -392,4 +392,4 @@ extraLabels: {} | |
|
||
debug: | ||
enabled: false | ||
remoteDebugPort: 5007 | ||
remoteDebugPort: 5005 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.