Last active
January 13, 2021 13:24
-
-
Save xcash/1fc16134b0bbd1ce779abd3a7191835e to your computer and use it in GitHub Desktop.
Dockerfile for Docker Powered Terminal
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
# vim:set ft=dockerfile: | |
FROM ubuntu:latest | |
RUN apt update && \ | |
apt install -y unzip curl vim-tiny bash-completion groff-base | |
WORKDIR /tmp | |
# AWS CLI | |
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" | |
RUN unzip awscliv2.zip | |
RUN ./aws/install | |
RUN aws --version | |
# EKS CTL CLI | |
RUN curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | \ | |
tar xz -C /tmp | |
RUN mv /tmp/eksctl /usr/local/bin | |
RUN eksctl version | |
# KUBECTL | |
RUN curl -o /usr/local/bin/kubectl "https://amazon-eks.s3.us-west-2.amazonaws.com/1.18.9/2020-11-02/bin/linux/amd64/kubectl" | |
RUN chmod +x /usr/local/bin/kubectl | |
RUN kubectl version --short --client | |
RUN mkdir -vp /console | |
WORKDIR /console | |
# BASH COMPLETION | |
RUN echo ". /etc/bash_completion" >> /root/.bashrc | |
RUN echo ". <(eksctl completion bash)" >> /root/.bashrc | |
RUN echo ". <(kubectl completion bash)" >> /root/.bashrc | |
CMD ["bash"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment