Skip to content

Commit e5cf279

Browse files
author
Konstantinos Livieratos
authored
Merge pull request #32 from koslib/features/dockerhub-img
Moved dockerfile to a separate folder folder for Dockerhub - Closes #31
2 parents 54d0adf + 8540901 commit e5cf279

3 files changed

Lines changed: 25 additions & 18 deletions

File tree

Dockerfile

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
1-
FROM alpine:3.13
1+
# For contributors: in case someone would like to contribute a change in the base docker image,
2+
# please open a PR for the `dockerhub/Dockerfile` in the same project.
23

3-
ARG AWSCLI_VERSION="1.23.13"
4-
ARG HELM_VERSION="3.8.0"
5-
ARG KUBECTL_VERSION="1.24.0"
6-
7-
RUN apk add py-pip curl wget ca-certificates git bash jq gcc alpine-sdk
8-
RUN pip install "awscli==${AWSCLI_VERSION}"
9-
RUN curl -L -o /usr/bin/kubectl https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl
10-
RUN chmod +x /usr/bin/kubectl
11-
12-
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
13-
RUN chmod +x /usr/bin/aws-iam-authenticator
14-
15-
RUN wget https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm
16-
RUN chmod +x /usr/local/bin/helm
17-
18-
COPY entrypoint.sh /entrypoint.sh
19-
ENTRYPOINT ["/entrypoint.sh"]:
4+
FROM koslib/ga-helm-eks:1.0

dockerhub/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM alpine:3.13
2+
3+
ARG AWSCLI_VERSION="1.23.13"
4+
ARG HELM_VERSION="3.8.0"
5+
ARG KUBECTL_VERSION="1.24.0"
6+
7+
RUN apk add py-pip curl wget ca-certificates git bash jq gcc alpine-sdk
8+
RUN pip install "awscli==${AWSCLI_VERSION}"
9+
RUN curl -L -o /usr/bin/kubectl https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl
10+
RUN chmod +x /usr/bin/kubectl
11+
12+
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
13+
RUN chmod +x /usr/bin/aws-iam-authenticator
14+
15+
RUN wget https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm
16+
RUN chmod +x /usr/local/bin/helm
17+
18+
COPY entrypoint.sh /entrypoint.sh
19+
ENTRYPOINT ["/entrypoint.sh"]:

dockerhub/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Dockerhub Dockerfile
2+
3+
This `Dockerfile` is the source of the Dockerhub-hosted `koslib/ga-helm-eks` image, which is used in this action's local Dockerfile.

0 commit comments

Comments
 (0)