Skip to content

Commit

Permalink
fixes kubectl env passing in container image
Browse files Browse the repository at this point in the history
  • Loading branch information
mhausenblas committed Oct 21, 2018
1 parent fe741fd commit df08eb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion online/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ RUN apk add --no-cache curl

USER 1001

ENV KUBECTL_BINARY=/tmp/ko/kubectl

# install ttyd and kubed-sh
RUN mkdir /tmp/ko && curl -s -L -k https://github.com/tsl0922/ttyd/releases/download/1.4.2/ttyd_linux.x86_64 -o /tmp/ko/ttyd && \
chmod 750 /tmp/ko/ttyd && \
Expand All @@ -14,4 +16,4 @@ RUN mkdir /tmp/ko && curl -s -L -k https://github.com/tsl0922/ttyd/releases/down
chmod 750 /tmp/ko/kubectl

EXPOSE 8080
ENTRYPOINT [ "/tmp/ko/ttyd", "-p 8080", "KUBECTL_BINARY=/tmp/ko/kubectl /tmp/ko/kubed-sh" ]
ENTRYPOINT [ "/tmp/ko/ttyd", "-p 8080", "/tmp/ko/kubed-sh" ]

0 comments on commit df08eb5

Please sign in to comment.