Skip to content

Commit

Permalink
Moved dockerfile to a separate folder folder for Dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantinos Livieratos committed May 19, 2022
1 parent 54d0adf commit 8540901
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 18 deletions.
21 changes: 3 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
FROM alpine:3.13
# For contributors: in case someone would like to contribute a change in the base docker image,
# please open a PR for the `dockerhub/Dockerfile` in the same project.

ARG AWSCLI_VERSION="1.23.13"
ARG HELM_VERSION="3.8.0"
ARG KUBECTL_VERSION="1.24.0"

RUN apk add py-pip curl wget ca-certificates git bash jq gcc alpine-sdk
RUN pip install "awscli==${AWSCLI_VERSION}"
RUN curl -L -o /usr/bin/kubectl https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl
RUN chmod +x /usr/bin/kubectl

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

RUN wget https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm
RUN chmod +x /usr/local/bin/helm

COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]:
FROM koslib/ga-helm-eks:1.0
19 changes: 19 additions & 0 deletions dockerhub/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM alpine:3.13

ARG AWSCLI_VERSION="1.23.13"
ARG HELM_VERSION="3.8.0"
ARG KUBECTL_VERSION="1.24.0"

RUN apk add py-pip curl wget ca-certificates git bash jq gcc alpine-sdk
RUN pip install "awscli==${AWSCLI_VERSION}"
RUN curl -L -o /usr/bin/kubectl https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl
RUN chmod +x /usr/bin/kubectl

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

RUN wget https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm
RUN chmod +x /usr/local/bin/helm

COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]:
3 changes: 3 additions & 0 deletions dockerhub/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Dockerhub Dockerfile

This `Dockerfile` is the source of the Dockerhub-hosted `koslib/ga-helm-eks` image, which is used in this action's local Dockerfile.

0 comments on commit 8540901

Please sign in to comment.