k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/images/git-custom-k8s-auth/Dockerfile (about)

     1  # Copyright 2022 The Kubernetes Authors.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  FROM google/cloud-sdk:461.0.0 as builder
    16  # https://github.com/GoogleCloudPlatform/cloud-sdk-docker/blob/master/Dockerfile
    17  
    18  ARG AWS_IAM_AUTHENTICATOR_VERSION
    19  RUN curl -fsSL \
    20      https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v${AWS_IAM_AUTHENTICATOR_VERSION}/aws-iam-authenticator_${AWS_IAM_AUTHENTICATOR_VERSION}_linux_amd64 -o /aws-iam-authenticator && \
    21      chmod +x /aws-iam-authenticator
    22  
    23  
    24  # Update the date below (check https://hub.docker.com/_/alpine/tags) to get the
    25  # alpine edge base image, which has a faster release cadence than alpine:latest
    26  # (which tracks alpine stable), to pick up security patches more quickly.
    27  FROM alpine:20231219
    28  
    29  ARG IMAGE_ARG
    30  ENV IMAGE=${IMAGE_ARG}
    31  
    32  RUN apk add --no-cache ca-certificates git git-daemon openssh && update-ca-certificates
    33  COPY --from=builder /aws-iam-authenticator /usr/local/bin/aws-iam-authenticator
    34  COPY --from=builder /usr/bin/gke-gcloud-auth-plugin /usr/local/bin/gke-gcloud-auth-plugin
    35  COPY github-known-hosts /github_known_hosts
    36  COPY ssh-config /etc/ssh/ssh_config
    37  RUN aws-iam-authenticator version && gke-gcloud-auth-plugin --version