Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding some stuff the image #148

Merged
merged 1 commit into from
Jul 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ FROM --platform=linux/amd64 golang:1.18
WORKDIR /opt/kubefirst

RUN apt-get update && \
apt-get install -y unzip
apt-get install -y unzip curl jq vim unzip less \
&& rm -rf /var/lib/apt/lists/*


# enable terminal vi mode
RUN set -o vi

# Kubernetes client
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.21.3/bin/linux/amd64/kubectl && \
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.21.3/bin/$(uname -s)/amd64/kubectl && \
chmod +x ./kubectl && \
mv kubectl /usr/local/bin/

Expand All @@ -28,6 +29,11 @@ RUN curl -LO https://s3.us-west-2.amazonaws.com/amazon-eks/1.21.2/2021-07-05/bin
chmod +x aws-iam-authenticator && \
mv aws-iam-authenticator /usr/local/bin/

RUN go install github.com/spf13/cobra-cli@latest
RUN go install golang.org/x/tools/cmd/godoc@latest
RUN go install golang.org/x/lint/golint@latest


# setup user
RUN useradd -ms /bin/bash developer
USER developer
Expand Down