fp/Tiltfile

77 lines
1.8 KiB
Plaintext
Raw Normal View History

2024-03-16 03:48:24 +00:00
# load('ext://dotenv', 'dotenv')
# dotenv()
k8s_yaml(helm(
'./charts/fp',
values=['./charts/fp/values-dev.yaml'],
))
docker_build('fp/link2cid', './packages/link2cid')
2024-03-21 05:29:45 +00:00
docker_build(
'fp/strapi',
'./packages/strapi',
2024-03-29 07:28:02 +00:00
live_update=[
sync('./packages/strapi', '/app')
]
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-03-29 11:04:10 +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-29 11:04:10 +00:00
docker_build('fp/next', '.', dockerfile='next.dockerfile')
2024-03-16 03:48:24 +00:00
k8s_resource(
workload='link2cid-pod',
2024-03-21 05:29:45 +00:00
port_forwards=3939,
links=[
link('http://localhost:3939/health', 'link2cid Health')
]
2024-03-16 03:48:24 +00:00
)
2024-03-21 05:29:45 +00:00
k8s_resource(
workload='ipfs-pod',
port_forwards=['5001'],
links=[
link('http://localhost:5001/webui', 'IPFS Web UI')
]
)
k8s_resource(
workload='next-pod',
port_forwards=['3000'],
)
2024-03-29 10:14:18 +00:00
# k8s_resource(
# workload='pgadmin-pod',
# port_forwards=['5050']
# )
2024-03-21 05:29:45 +00:00
2024-03-29 10:14:18 +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-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'))