Last active
January 27, 2020 10:09
-
-
Save Piotr1215/13e8a87177914bb2c6523222727f0811 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.10 | |
WORKDIR /root | |
COPY bootstrap.sh ./ | |
RUN apt-get update && apt-get -y install --no-install-recommends \ | |
gnupg \ | |
curl \ | |
wget \ | |
git \ | |
apt-transport-https \ | |
ca-certificates \ | |
zsh \ | |
&& rm -rf /var/lib/apt/lists/* | |
ENV SHELL /usr/bin/zsh | |
# Install kubectl | |
RUN curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \ | |
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list && \ | |
apt-get update && apt-get -y install --no-install-recommends kubectl | |
# Bootstrap kubectl | |
RUN chmod +x bootstrap.sh && ./bootstrap.sh | |
COPY .zshrc ./ | |
RUN exec zsh | |
ENTRYPOINT ["/bin/zsh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment