mirror of
https://github.com/containous/traefik.git
synced 2024-12-22 13:34:03 +03:00
d5cb9b50f4
Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com>
23 lines
825 B
Docker
23 lines
825 B
Docker
FROM golang:1.22
|
|
|
|
ARG USER=$USER
|
|
ARG UID=$UID
|
|
ARG GID=$GID
|
|
RUN useradd -l -m ${USER} --uid=${UID} && echo "${USER}:" chpasswd
|
|
USER ${UID}:${GID}
|
|
|
|
ARG KUBE_VERSION
|
|
|
|
RUN go install k8s.io/code-generator/cmd/defaulter-gen@$KUBE_VERSION
|
|
RUN go install k8s.io/code-generator/cmd/client-gen@$KUBE_VERSION
|
|
RUN go install k8s.io/code-generator/cmd/lister-gen@$KUBE_VERSION
|
|
RUN go install k8s.io/code-generator/cmd/informer-gen@$KUBE_VERSION
|
|
RUN go install k8s.io/code-generator/cmd/deepcopy-gen@$KUBE_VERSION
|
|
RUN go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0
|
|
|
|
RUN mkdir -p $GOPATH/src/k8s.io/code-generator
|
|
RUN cp -R $GOPATH/pkg/mod/k8s.io/code-generator@$KUBE_VERSION/* $GOPATH/src/k8s.io/code-generator/
|
|
RUN chmod +x $GOPATH/src/k8s.io/code-generator/kube_codegen.sh
|
|
|
|
WORKDIR $GOPATH/src/k8s.io/code-generator
|