commit 37a5bba5cf401cce7ade61dcfcc808ae6269d829 Author: Stefan Reimer Date: Wed Dec 13 20:35:57 2023 +0000 first commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d8b2773 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +ARG DISTRO_VERSION="3.18" + +FROM alpine:${DISTRO_VERSION} +ARG DISTRO_VERSION +ARG TAG + +RUN adduser -D -u 10000 aws-iam-authenticator +RUN apk add --update ca-certificates + +RUN echo "@kubezero https://cdn.zero-downtime.net/alpine/v${DISTRO_VERSION}/kubezero" >> "/etc/apk/repositories" +RUN wget -q -O /etc/apk/keys/stefan@zero-downtime.net-61bb6bfb.rsa.pub https://cdn.zero-downtime.net/alpine/stefan@zero-downtime.net-61bb6bfb.rsa.pub + +RUN apk -U --no-cache add \ + aws-iam-authenticator@kubezero=~$TAG + +FROM scratch + +COPY --from=0 /etc/passwd /etc/passwd +COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ +COPY --from=0 /lib/ld-musl-*.so.1 /lib/ +COPY --from=0 /usr/bin/aws-iam-authenticator /aws-iam-authenticator + +USER aws-iam-authenticator +ENTRYPOINT ["/aws-iam-authenticator"] diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..da76749 --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +REGISTRY := public.ecr.aws/zero-downtime +IMAGE := aws-iam-authenticator +REGION := us-east-1 +TAG := v0.6.11 + +include .ci/podman.mk diff --git a/README.md b/README.md new file mode 100644 index 0000000..9803e8b --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# aws-iam-authenticator + +Public ECR repo: https://gallery.ecr.aws/zero-downtime/aws-iam-authenticator + +# Resources +- https://github.com/kubernetes-sigs/aws-iam-authenticator/blob/master/Dockerfile.scratch