feature: reduce telemetry dependence (#6390)

feature: reduce telemetry dependence. (#6276)

Signed-off-by: peng wu <2030047311@qq.com>
This commit is contained in:
smartcat999
2025-03-05 10:34:42 +08:00
committed by GitHub
parent ddddbbe500
commit db7a21e754
30 changed files with 1960 additions and 115 deletions

View File

@@ -1,16 +1,15 @@
# Download dependencies
FROM alpine:3.18.3 AS base_os_context
FROM alpine:3.20.3 AS base_os_context
RUN apk add --no-cache ca-certificates curl
ENV OUTDIR=/out
RUN mkdir -p ${OUTDIR}/usr/local/bin/
RUN apk add --no-cache ca-certificates curl
ARG TELEMETRY_VERSION=1.0.1
ARG TARGETARCH
ENV ARCH=$TARGETARCH
RUN curl -LO https://github.com/kubesphere/telemetry/releases/download/v1.0.2/telemetry_1.0.2_linux_${ARCH}.tar.gz && \
tar -zxvf telemetry_1.0.2_linux_${ARCH}.tar.gz -C ${OUTDIR}/usr/local/bin/ telemetry
RUN curl -LO https://github.com/kubesphere/telemetry/releases/download/v${TELEMETRY_VERSION}/telemetry_${TELEMETRY_VERSION}_linux_${TARGETARCH}.tar.gz && \
tar -zxvf telemetry_${TELEMETRY_VERSION}_linux_${TARGETARCH}.tar.gz -C ${OUTDIR}/usr/local/bin/ telemetry
# Add KS Core Helm Chart
COPY config/ks-core ${OUTDIR}/var/helm-charts/ks-core
@@ -28,7 +27,7 @@ RUN make ks-controller-manager
RUN mv /workspace/bin/cmd/controller-manager ${OUTDIR}/usr/local/bin/
# Final Image
FROM alpine:3.18.3
FROM alpine:3.20.3
COPY --from=base_os_context /out/ /
COPY --from=build_context /out/ /
@@ -36,4 +35,5 @@ COPY --from=build_context /out/ /
WORKDIR /
EXPOSE 8443
CMD ["sh"]
CMD ["sh"]