From 433ac0ba08d3d1f08e51de74960a854da3652b48 Mon Sep 17 00:00:00 2001 From: vishal Date: Thu, 17 Jun 2021 21:57:45 -0400 Subject: [PATCH 1/3] Use cortexlabs's version kubexit --- images/kubexit/Dockerfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/images/kubexit/Dockerfile b/images/kubexit/Dockerfile index 387a3f0265..ba77644143 100644 --- a/images/kubexit/Dockerfile +++ b/images/kubexit/Dockerfile @@ -1 +1,14 @@ -FROM miguelvr/kubexit:0.3.2-patch +FROM golang:1.14.1-alpine3.11 AS builder +RUN apk update && apk upgrade && \ + apk add bash git openssh + +RUN mkdir /tmp/kubexit +RUN git clone -b v0.1.0-cortex --depth 1 https://github.com/cortexlabs/kubexit.git /tmp/kubexit + +WORKDIR /tmp/kubexit +RUN CGO_ENABLED=0 GOOS=linux go build -o kubexit ./cmd/kubexit + +FROM alpine:3.11 +RUN apk --no-cache add ca-certificates tzdata +COPY --from=builder /tmp/kubexit/kubexit /bin/ +ENTRYPOINT ["kubexit"] \ No newline at end of file From a30641bad1ee0a5908274db42a00df528654ab3d Mon Sep 17 00:00:00 2001 From: vishal Date: Thu, 17 Jun 2021 22:14:59 -0400 Subject: [PATCH 2/3] Add newline --- images/kubexit/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/kubexit/Dockerfile b/images/kubexit/Dockerfile index ba77644143..57feb01e25 100644 --- a/images/kubexit/Dockerfile +++ b/images/kubexit/Dockerfile @@ -11,4 +11,4 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o kubexit ./cmd/kubexit FROM alpine:3.11 RUN apk --no-cache add ca-certificates tzdata COPY --from=builder /tmp/kubexit/kubexit /bin/ -ENTRYPOINT ["kubexit"] \ No newline at end of file +ENTRYPOINT ["kubexit"] From 3c754a975768554ed31161523cbea773220ee331 Mon Sep 17 00:00:00 2001 From: vishal Date: Fri, 18 Jun 2021 09:19:34 -0400 Subject: [PATCH 3/3] Add comment describing where the dockerfile is from --- images/kubexit/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/images/kubexit/Dockerfile b/images/kubexit/Dockerfile index 57feb01e25..9851d0d2fc 100644 --- a/images/kubexit/Dockerfile +++ b/images/kubexit/Dockerfile @@ -1,3 +1,4 @@ +# This file has been adapted from https://github.com/cortexlabs/kubexit FROM golang:1.14.1-alpine3.11 AS builder RUN apk update && apk upgrade && \ apk add bash git openssh