FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /root

RUN apt-get update -qq
RUN apt-get install -y \
    apt-transport-https \
    ca-certificates \
    software-properties-common \
    man \
    manpages-posix \
    man-db \
    curl \
    atop \
    htop \
    jq \
    dnsutils \
    tcpdump \
    traceroute \
    iputils-ping \
    net-tools \
    netcat \
    iproute2 \
    strace \
    telnet \
    conntrack \
    mosh \
    fzf \
    git mysql-client


RUN apt-get install zsh -y
RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

RUN git config --global url.https://github.com/.insteadOf git@github.com:
RUN curl -L https://dl.google.com/go/go1.18.linux-amd64.tar.gz | tar -xz -C /usr/local

RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" 
RUN install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

RUN apt-get install build-essential -y
RUN echo 'export PATH=$PATH:/usr/local/go/bin' >> /root/.zshrc
RUN /usr/local/go/bin/go install github.com/go-delve/delve/cmd/dlv@latest

RUN curl -o aws-iam-authenticator https://s3.us-west-2.amazonaws.com/amazon-eks/1.21.2/2021-07-05/bin/linux/amd64/aws-iam-authenticator
RUN chmod +x ./aws-iam-authenticator
RUN mv ./aws-iam-authenticator /usr/local/bin/aws-iam-authenticator

CMD [ "/usr/bin/zsh" ]
