Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
16 lines (14 sloc)
599 Bytes
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
k8s_yaml('kubernetes.yaml') | |
k8s_resource('example-html', port_forwards=8000, resource_deps=['deploy']) | |
# Records the time from a code change to a new process. | |
# Normally, you would let Tilt do deploys automatically, but this | |
# shows you how to set up a custom workflow that measures it. | |
local_resource( | |
'deploy', | |
'python now.py > start-time.txt') | |
# Add a live_update rule to our docker_build. | |
docker_build('example-html-image', '.', live_update=[ | |
sync('.', '/app'), | |
run('./report-deployment-time.sh'), | |
run('sed -i "s/Hello cats/Congratulations, you set up live_update/g" index.html'), | |
]) |