2020-05-07 18:06:25 +00:00
|
|
|
FROM ubuntu:19.10
|
|
|
|
|
2020-06-07 13:38:15 +00:00
|
|
|
RUN apt-get update -y
|
|
|
|
RUN apt-get install -y software-properties-common && \
|
2020-05-07 18:06:25 +00:00
|
|
|
add-apt-repository ppa:longsleep/golang-backports && \
|
|
|
|
apt-get update -y
|
|
|
|
|
|
|
|
RUN apt-get install -y \
|
|
|
|
curl \
|
|
|
|
build-essential \
|
|
|
|
git \
|
2020-06-07 13:38:15 +00:00
|
|
|
golang-go \
|
|
|
|
unzip
|
2020-05-07 18:06:25 +00:00
|
|
|
|
|
|
|
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
|
|
|
|
RUN curl -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh | bash
|
|
|
|
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.24.0
|
|
|
|
RUN go get -u golang.org/x/lint/golint
|
|
|
|
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl \
|
|
|
|
&& chmod +x ./kubectl \
|
|
|
|
&& mv ./kubectl /usr/local/bin/kubectl
|
2020-06-07 13:38:15 +00:00
|
|
|
RUN curl -LO https://releases.hashicorp.com/terraform/0.12.26/terraform_0.12.26_linux_amd64.zip && unzip terraform_0.12.26_linux_amd64.zip -d /usr/local/bin && chmod +x /usr/local/bin/terraform && rm terraform_0.12.26_linux_amd64.zip
|
2020-05-07 18:06:25 +00:00
|
|
|
|
|
|
|
ENTRYPOINT [ "make" ]
|