Skip to content

Commit

Permalink
Improve Tiltfile with Process Management
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Rantil committed Jan 30, 2024
1 parent 1c662f1 commit 3a8e6c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,16 @@ FROM golang:1.20 as tilt-helper
# Support live reloading with Tilt
RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh && \
wget --output-document /start.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/start.sh && \
chmod +x /start.sh && chmod +x /restart.sh
chmod +x /start.sh && chmod +x /restart.sh && \
touch /process.txt && chmod 0777 /process.txt
"""

tilt_dockerfile_header = """
FROM gcr.io/distroless/base:debug as tilt
WORKDIR /
COPY --from=tilt-helper /start.sh .
COPY --from=tilt-helper /restart.sh .
COPY --from=tilt-helper /process.txt .
COPY manager .
"""

Expand Down

0 comments on commit 3a8e6c4

Please sign in to comment.