2024-04-18 20:51:09 +00:00
|
|
|
# start Tilt with no enabled resources
|
|
|
|
config.clear_enabled_resources()
|
2024-03-16 03:48:24 +00:00
|
|
|
|
|
|
|
k8s_yaml(helm(
|
|
|
|
'./charts/fp',
|
|
|
|
values=['./charts/fp/values-dev.yaml'],
|
|
|
|
))
|
|
|
|
|
2024-04-18 20:51:09 +00:00
|
|
|
docker_build('fp/link2cid', './packages/link2cid')
|
2024-03-21 05:29:45 +00:00
|
|
|
docker_build(
|
|
|
|
'fp/strapi',
|
2024-04-02 14:49:33 +00:00
|
|
|
'.',
|
|
|
|
dockerfile='strapi.dockerfile',
|
2024-04-12 19:25:44 +00:00
|
|
|
target='release',
|
2024-03-29 07:28:02 +00:00
|
|
|
live_update=[
|
|
|
|
sync('./packages/strapi', '/app')
|
|
|
|
]
|
2024-03-21 05:29:45 +00:00
|
|
|
)
|
|
|
|
|
2024-04-18 20:51:09 +00:00
|
|
|
load('ext://uibutton', 'cmd_button')
|
|
|
|
cmd_button('postgres:restore',
|
|
|
|
argv=['sh', '-c', 'cd letters && yarn install'],
|
|
|
|
resource='postgres',
|
|
|
|
icon_name='cloud_download',
|
|
|
|
text='restore db from backup',
|
|
|
|
)
|
2024-03-21 05:29:45 +00:00
|
|
|
|
2024-04-11 08:17:51 +00:00
|
|
|
|
2024-03-21 05:29:45 +00:00
|
|
|
## Uncomment the following for fp/next in dev mode
|
|
|
|
## this is useful for changing the UI and seeing results
|
2024-04-18 20:51:09 +00:00
|
|
|
docker_build(
|
|
|
|
'fp/next',
|
|
|
|
'.',
|
|
|
|
dockerfile='next.dockerfile',
|
|
|
|
target='dev',
|
|
|
|
live_update=[
|
|
|
|
sync('./packages/next', '/app')
|
|
|
|
]
|
|
|
|
)
|
2024-03-21 05:29:45 +00:00
|
|
|
|
|
|
|
## Uncomment the following for fp/next in production mode
|
|
|
|
## this is useful to test how fp/next will behave in production environment
|
|
|
|
## note: there is no live_update here. expect slow rebuilds in response to code changes
|
2024-03-30 06:26:26 +00:00
|
|
|
# docker_build('fp/next', '.', dockerfile='next.dockerfile')
|
2024-03-16 03:48:24 +00:00
|
|
|
|
|
|
|
|
2024-04-18 20:51:09 +00:00
|
|
|
k8s_resource(
|
|
|
|
workload='link2cid',
|
|
|
|
port_forwards=3939,
|
|
|
|
links=[
|
|
|
|
link('http://localhost:3939/health', 'link2cid Health')
|
|
|
|
]
|
|
|
|
)
|
2024-03-21 05:29:45 +00:00
|
|
|
|
2024-04-18 20:51:09 +00:00
|
|
|
k8s_resource(
|
|
|
|
workload='ipfs-pod',
|
|
|
|
port_forwards=['5001'],
|
|
|
|
links=[
|
|
|
|
link('http://localhost:5001/webui', 'IPFS Web UI')
|
|
|
|
]
|
|
|
|
)
|
2024-03-21 05:29:45 +00:00
|
|
|
|
2024-04-18 20:51:09 +00:00
|
|
|
k8s_resource(
|
|
|
|
workload='next-pod',
|
|
|
|
port_forwards=['3000'],
|
|
|
|
)
|
2024-04-02 14:49:33 +00:00
|
|
|
k8s_resource(
|
|
|
|
workload='strapi-pod',
|
|
|
|
port_forwards=['1337'],
|
|
|
|
links=[
|
|
|
|
link('http://localhost:1337/admin', 'Strapi Admin UI')
|
|
|
|
]
|
|
|
|
)
|
2024-03-21 05:29:45 +00:00
|
|
|
|
2024-04-11 08:17:51 +00:00
|
|
|
k8s_resource(
|
|
|
|
workload='postgres-pod',
|
|
|
|
)
|
|
|
|
k8s_resource(
|
|
|
|
workload='pgadmin-pod',
|
|
|
|
port_forwards=['5050']
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2024-03-16 03:48:24 +00:00
|
|
|
# v1alpha1.extension_repo(name='default', url='https://github.com/tilt-dev/tilt-extensions')
|
|
|
|
# v1alpha1.extension(name='ngrok', repo_name='default', repo_path='ngrok')
|
|
|
|
|
|
|
|
# settings = read_json('tilt_option.json', default={})
|
|
|
|
# default_registry(settings.get('default_registry', 'sjc.vultrcr.com/fpcontainers'))
|
2024-04-18 20:51:09 +00:00
|
|
|
|
|
|
|
config.set_enabled_resources([
|
|
|
|
'pgadmin-pod',
|
|
|
|
'postgres-pod',
|
|
|
|
'strapi-pod',
|
|
|
|
'next-pod',
|
|
|
|
'ipfs-pod',
|
|
|
|
'link2cid',
|
|
|
|
])
|