-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile-tool
More file actions
51 lines (41 loc) · 2.28 KB
/
Dockerfile-tool
File metadata and controls
51 lines (41 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:latest as builder
WORKDIR /workspace
ARG TARGETARCH
RUN apt-get update && \
apt-get install -y --no-install-recommends curl && \
case "${TARGETARCH}" in \
arm64) ARCH='arm64' ;; \
amd64) ARCH='x86_64' ;; \
esac; \
curl -L -k https://github.com/google/go-containerregistry/releases/download/v0.15.2/go-containerregistry_Linux_$ARCH.tar.gz | tar -xzf - && \
curl -L -k https://github.com/containerd/containerd/releases/download/v1.7.2/cri-containerd-1.7.2-linux-$TARGETARCH.tar.gz | tar -xzf - && \
curl -L -k https://github.com/mikefarah/yq/releases/download/v4.34.1/yq_linux_$TARGETARCH -o yq && chmod +x yq && \
curl -L -k https://dl.min.io/client/mc/release/linux-$TARGETARCH/mc -o mc && chmod +x mc && \
curl -L -k https://github.com/hairyhenderson/gomplate/releases/download/v3.11.5/gomplate_linux-$TARGETARCH -o gomplate && chmod +x gomplate
FROM annupadhdhyay/helm2:2.12.3 as helm
FROM bitnami/kubectl:1.31 as kube
FROM gcr.io/etcd-development/etcd:v3.5.19 as etcd
# FROM debian:stable-slim
# RUN apt-get update && \
# apt-get install -y --no-install-recommends curl jq git bash etcat-openbsd wrk && \
# rm -rf /var/lib/apt/lists/*
FROM alpine:edge
ARG TARGETARCH
# COPY ./entrypoint/kubernetes-entrypoint_$TARGETARCH /usr/bin/kubernetes-entrypoint
# COPY ./gotpl/gotpl_$TARGETARCH /usr/bin/gotpl
# COPY --from=helm /usr/bin/helm /usr/bin/
COPY --from=kube /opt/bitnami/kubectl/bin/kubectl /usr/bin/
#COPY --from=etcd /usr/local/bin/etcd /usr/bin/
COPY --from=etcd /usr/local/bin/etcdctl /usr/bin/
RUN apk -U --no-cache add curl bash dumb-init && \
apk -U --no-cache add -X http://dl-cdn.alpinelinux.org/alpine/edge/testing cfssl
RUN apk -U --no-cache add curl jq git bash netcat-openbsd wrk buildah python3 openssh py3-pip buildah podman skopeo && \
pip3 install --break-system-packages requests && \
apk -U --no-cache add -X http://dl-cdn.alpinelinux.org/alpine/edge/testing cfssl
# RUN pip3 install --no-cache-dir s3cmd
# COPY --from=builder /workspace/usr/local/bin/ctr /usr/bin/
# COPY --from=builder /workspace/usr/local/bin/crictl /usr/bin/
# COPY --from=builder /workspace/gomplate /usr/bin/
COPY --from=builder /workspace/crane /usr/bin/
COPY --from=builder /workspace/yq /usr/bin/
COPY --from=builder /workspace/mc /usr/bin/