Skip to content

Commit

Permalink
Fix examples for debug (GoogleContainerTools#3969)
Browse files Browse the repository at this point in the history
* make debug work for examples/getting-started

* make debug work for examples/compose

* make debug work for examples/gcb-kaniko

* make debug work for examples/generate-pipeline

* make debug work for examples/google-cloud-build

* make debug work for examples/kaniko

* make debug work for examples/microservices

* make debug work for examples/profile-patches

* make debug work for examples/profiles

* make debug work for examples/structure-tests

* make debug work for examples/tagging-with-environment-variables
  • Loading branch information
briandealwis authored Apr 21, 2020
1 parent f16bafa commit 5e330f0
Show file tree
Hide file tree
Showing 30 changed files with 90 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/compose/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions examples/gcb-kaniko/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions examples/generate-pipeline/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions examples/getting-started/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions examples/google-cloud-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions examples/kaniko/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions examples/microservices/leeroy-app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY app.go .
RUN go build -o /app .

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions examples/microservices/leeroy-web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY web.go .
RUN go build -o /web .

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./web"]
COPY --from=builder /web .
3 changes: 3 additions & 0 deletions examples/profile-patches/base-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions examples/profile-patches/hello-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions examples/profile-patches/world-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions examples/profiles/hello-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions examples/profiles/world-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions examples/structure-tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions examples/tagging-with-environment-variables/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions integration/examples/compose/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions integration/examples/gcb-kaniko/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions integration/examples/generate-pipeline/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions integration/examples/getting-started/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions integration/examples/google-cloud-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions integration/examples/kaniko/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions integration/examples/microservices/leeroy-app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY app.go .
RUN go build -o /app .

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions integration/examples/microservices/leeroy-web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY web.go .
RUN go build -o /web .

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./web"]
COPY --from=builder /web .
3 changes: 3 additions & 0 deletions integration/examples/profile-patches/base-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions integration/examples/profile-patches/hello-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions integration/examples/profile-patches/world-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions integration/examples/profiles/hello-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions integration/examples/profiles/world-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
3 changes: 3 additions & 0 deletions integration/examples/structure-tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ COPY main.go .
RUN go build -o /app main.go

FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./app"]
COPY --from=builder /app .

0 comments on commit 5e330f0

Please sign in to comment.