forked from tilt-dev/tilt-extensions
-
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.
forward signals in restart wrapper (tilt-dev#586)
* Forward signals in restart wrapper Signed-off-by: Jared A. Scheel <[email protected]> * restart_process: Prevent race, add additional room to buffered channel * restart_process: update image Signed-off-by: Nick Santos <[email protected]> --------- Signed-off-by: Jared A. Scheel <[email protected]> Signed-off-by: Nick Santos <[email protected]> Co-authored-by: Jared A. Scheel <[email protected]> Co-authored-by: Travis Cline <[email protected]>
- Loading branch information
1 parent
96da676
commit e8cb91c
Showing
10 changed files
with
71 additions
and
10 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,7 @@ | ||
# Contributing | ||
|
||
## Releasing | ||
|
||
If you have push access to the `tiltdev` repository on DockerHub, you can release a new version of the binaries used by this extension like so: | ||
1. run `release.sh` (builds `tilt-restart-wrapper` from source, builds and pushes a Docker image with the new binary and a fresh binary of `entr` also installed from source) | ||
2. update the image tag in the [Tiltfile](/restart_process/Tiltfile) with the tag you just pushed (you'll find the image referenced in the Dockerfile contents of the child image--look for "FROM tiltdev/restart-helper") |
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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
load('../Tiltfile', 'docker_build_with_restart') | ||
|
||
k8s_yaml('job.yaml') | ||
k8s_yaml('test-job.yaml') | ||
k8s_yaml('failing-job.yaml') | ||
|
||
docker_build_with_restart('test_job', '.', dockerfile='Dockerfile.test', entrypoint='/start.sh', | ||
live_update=[sync('./start.sh', '/start.sh')]) | ||
|
||
docker_build_with_restart('failing_job', '.', dockerfile='Dockerfile.failing', entrypoint='/fail.sh', | ||
live_update=[sync('./fail.sh', '/fail.sh')]) |
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 |
---|---|---|
@@ -1,9 +1,18 @@ | ||
load('../Tiltfile', 'custom_build_with_restart') | ||
|
||
k8s_yaml('job.yaml') | ||
k8s_yaml('failing-job.yaml') | ||
custom_build_with_restart( | ||
'failing_job', | ||
command='docker build -t $EXPECTED_REF -f Dockerfile.failing .', | ||
deps=['fail.sh'], | ||
entrypoint='/fail.sh', | ||
live_update=[sync('./fail.sh', '/fail.sh')]) | ||
|
||
|
||
k8s_yaml('test-job.yaml') | ||
custom_build_with_restart( | ||
'test_job', | ||
command='docker build -t $EXPECTED_REF -f Dockerfile.test .', | ||
deps=['start.sh'], | ||
entrypoint='/start.sh', | ||
live_update=[sync('./start.sh', '/start.sh')]) |
File renamed without changes.
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,12 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: test-job | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: test-job | ||
image: test_job | ||
restartPolicy: Never | ||
backoffLimit: 4 |
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