Skip to content

Commit 569c04c

Browse files
committed
Fix tilt error creating process.txt
1 parent b084e15 commit 569c04c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tiltfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,14 @@ FROM golang:1.19 as tilt-helper
112112
# Support live reloading with Tilt
113113
RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh && \
114114
wget --output-document /start.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/start.sh && \
115-
chmod +x /start.sh && chmod +x /restart.sh
115+
chmod +x /start.sh && chmod +x /restart.sh && \
116+
touch /process.txt && chmod 0777 /process.txt `# pre-create PID file to allow even non-root users to run the image`
116117
"""
117118

118119
tilt_dockerfile_header = """
119120
FROM gcr.io/distroless/base:debug as tilt
120121
WORKDIR /
122+
COPY --from=tilt-helper /process.txt .
121123
COPY --from=tilt-helper /start.sh .
122124
COPY --from=tilt-helper /restart.sh .
123125
COPY manager .

0 commit comments

Comments
 (0)