Skip to content

Commit 4a40057

Browse files
authored
Use cortexlabs's version kubexit to address death dependencies (#2260)
1 parent 03a661c commit 4a40057

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

images/kubexit/Dockerfile

+15-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
FROM miguelvr/kubexit:0.3.2-patch
1+
# This file has been adapted from https://github.com/cortexlabs/kubexit
2+
FROM golang:1.14.1-alpine3.11 AS builder
3+
RUN apk update && apk upgrade && \
4+
apk add bash git openssh
5+
6+
RUN mkdir /tmp/kubexit
7+
RUN git clone -b v0.1.0-cortex --depth 1 https://github.com/cortexlabs/kubexit.git /tmp/kubexit
8+
9+
WORKDIR /tmp/kubexit
10+
RUN CGO_ENABLED=0 GOOS=linux go build -o kubexit ./cmd/kubexit
11+
12+
FROM alpine:3.11
13+
RUN apk --no-cache add ca-certificates tzdata
14+
COPY --from=builder /tmp/kubexit/kubexit /bin/
15+
ENTRYPOINT ["kubexit"]

0 commit comments

Comments
 (0)