<commit_before>FROM redis:7.0.0 as redis

FROM node:12.18.4-buster as node

FROM golang:1.18 as golang

FROM registry:2.8 as registry

FROM ubuntu:21.10

ENV DEBIAN_FRONTEND=noninteractive
RUN  apt-get update && apt-get install --fix-missing -y \
        ca-certificates \
        curl \
        openssh-server \
        nginx \
        fcgiwrap \
        git \
        git-lfs \
        gpg \
        jq \
        make \
        wget \
        gcc \
        g++ \
        sudo \
        tini \
        zip && \
        apt-get clean && \
        rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

COPY --from=golang /usr/local/go /usr/local/go

ENV PATH /dist:/go/bin:/usr/local/go/bin:$PATH
ENV GOROOT /usr/local/go
ENV GOPATH /go

# Install build and test dependencies
COPY hack/install.sh hack/tool-versions.sh go.* ./
COPY hack/installers installers

RUN ./install.sh helm-linux && \
    ./install.sh kubectl-linux && \
    ./install.sh kustomize && \
    ./install.sh codegen-tools && \
    ./install.sh codegen-go-tools && \
    ./install.sh lint-tools && \
    go install github.com/mattn/goreman@latest && \
    go install github.com/kisielk/godepgraph@latest && \
    go install github.com/jstemmer/go-junit-report@latest && \
    rm -rf /tmp/dl && \
    rm -rf /tmp/helm && \
    rm -rf /tmp/ks_*

# These are required for running end-to-end tests
COPY ./test/fixture/testrepos/id_rsa.pub /root/.ssh/authorized_keys
COPY ./test/fixture/testrepos/nginx.conf /etc/nginx/nginx.conf<commit_msg>chore: Pull in recent kubectl to test container (#9316)<commit_after>FROM docker.io/library/redis:7.0.0 as redis

FROM docker.io/library/node:12.18.4-buster as node

FROM docker.io/library/golang:1.18 as golang

FROM docker.io/library/registry:2.8 as registry

FROM docker.io/bitnami/kubectl:1.23.6 as kubectl

FROM ubuntu:21.10

ENV DEBIAN_FRONTEND=noninteractive
RUN  apt-get update && apt-get install --fix-missing -y \
        ca-certificates \
        curl \
        openssh-server \
        nginx \
        fcgiwrap \
        git \
        git-lfs \
        gpg \
        jq \
        make \
        wget \
        gcc \
        g++ \
        sudo \
        tini \
        zip && \
        apt-get clean && \
        rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

COPY --from=golang /usr/local/go /usr/local/go

COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/kubectl

ENV PATH /dist:/go/bin:/usr/local/go/bin:$PATH
ENV GOROOT /usr/local/go
ENV GOPATH /go

# Install build and test dependencies
COPY hack/install.sh hack/tool-versions.sh go.* ./
COPY hack/installers installers

RUN ./install.sh helm-linux && \
    ./install.sh kustomize && \
    ./install.sh codegen-tools && \
    ./install.sh codegen-go-tools && \
    ./install.sh lint-tools && \
    go install github.com/mattn/goreman@latest && \
    go install github.com/kisielk/godepgraph@latest && \
    go install github.com/jstemmer/go-junit-report@latest && \
    rm -rf /tmp/dl && \
    rm -rf /tmp/helm && \
    rm -rf /tmp/ks_*

# These are required for running end-to-end tests
COPY ./test/fixture/testrepos/id_rsa.pub /root/.ssh/authorized_keys
COPY ./test/fixture/testrepos/nginx.conf /etc/nginx/nginx.conf
{'fraction_non_alphanumeric': 0.13723038449515473, 'fraction_numerical': 0.01312910284463895, 'mean_word_length': 2.007518796992481, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6242829', 'n_tokens_mistral': 1229, 'n_tokens_neox': 1149, 'n_words': 251}