feat: kubesphere 4.0 (#6115)
* feat: kubesphere 4.0 Signed-off-by: ci-bot <ci-bot@kubesphere.io> * feat: kubesphere 4.0 Signed-off-by: ci-bot <ci-bot@kubesphere.io> --------- Signed-off-by: ci-bot <ci-bot@kubesphere.io> Co-authored-by: ks-ci-bot <ks-ci-bot@example.com> Co-authored-by: joyceliu <joyceliu@yunify.com>
This commit is contained in:
committed by
GitHub
parent
b5015ec7b9
commit
447a51f08b
@@ -1,9 +1,5 @@
|
||||
# Copyright 2020 The KubeSphere Authors. All rights reserved.
|
||||
# Use of this source code is governed by an Apache license
|
||||
# that can be found in the LICENSE file.
|
||||
|
||||
# Build
|
||||
FROM golang:1.19.4 as build_context
|
||||
FROM golang:1.20.7 AS build_context
|
||||
|
||||
ENV OUTDIR=/out
|
||||
RUN mkdir -p ${OUTDIR}/usr/local/bin/
|
||||
|
||||
@@ -1,32 +1,25 @@
|
||||
# Copyright 2020 The KubeSphere Authors. All rights reserved.
|
||||
# Use of this source code is governed by an Apache license
|
||||
# that can be found in the LICENSE file.
|
||||
|
||||
# Download dependencies
|
||||
FROM alpine:3.18.3 as base_os_context
|
||||
|
||||
ARG INGRESS_NGINX_VERSION=4.2.5
|
||||
|
||||
ENV OUTDIR=/out
|
||||
RUN mkdir -p ${OUTDIR}/var/helm-charts
|
||||
|
||||
WORKDIR /tmp
|
||||
|
||||
RUN apk add --no-cache ca-certificates
|
||||
|
||||
|
||||
# Install Nginx Ingress Helm Chart
|
||||
ADD https://github.com/kubernetes/ingress-nginx/releases/download/helm-chart-${INGRESS_NGINX_VERSION}/ingress-nginx-${INGRESS_NGINX_VERSION}.tgz /tmp
|
||||
RUN tar xvzf /tmp/ingress-nginx-${INGRESS_NGINX_VERSION}.tgz -C /tmp
|
||||
RUN mv /tmp/ingress-nginx ${OUTDIR}/var/helm-charts/
|
||||
|
||||
# Build
|
||||
|
||||
FROM golang:1.19.4 as build_context
|
||||
FROM alpine:3.18.3 AS base_os_context
|
||||
|
||||
ENV OUTDIR=/out
|
||||
RUN mkdir -p ${OUTDIR}/usr/local/bin/
|
||||
RUN apk add --no-cache ca-certificates curl
|
||||
|
||||
ARG TARGETARCH
|
||||
|
||||
ENV ARCH=$TARGETARCH
|
||||
|
||||
RUN curl -LO https://github.com/kubesphere/telemetry/releases/download/v1.0.0/telemetry_1.0.0_linux_${ARCH}.tar.gz && \
|
||||
tar -zxvf telemetry_1.0.0_linux_${ARCH}.tar.gz -C ${OUTDIR}/usr/local/bin/ telemetry
|
||||
|
||||
# Add KS Core Helm Chart
|
||||
COPY config/ks-core ${OUTDIR}/var/helm-charts/ks-core
|
||||
|
||||
# Build
|
||||
FROM golang:1.20.7 AS build_context
|
||||
|
||||
ENV OUTDIR=/out
|
||||
RUN mkdir -p ${OUTDIR}/usr/local/bin/
|
||||
RUN mkdir -p ${OUTDIR}/var/helm-charts
|
||||
|
||||
WORKDIR /workspace
|
||||
ADD . /workspace/
|
||||
@@ -34,12 +27,7 @@ ADD . /workspace/
|
||||
RUN make ks-controller-manager
|
||||
RUN mv /workspace/bin/cmd/controller-manager ${OUTDIR}/usr/local/bin/
|
||||
|
||||
# Copy gateway config and helm chart
|
||||
RUN mv /workspace/config/gateway ${OUTDIR}/var/helm-charts/
|
||||
RUN mv /workspace/config/watches.yaml ${OUTDIR}/var/helm-charts/
|
||||
|
||||
# Final Image
|
||||
|
||||
FROM alpine:3.18.3
|
||||
|
||||
COPY --from=base_os_context /out/ /
|
||||
@@ -47,6 +35,5 @@ COPY --from=build_context /out/ /
|
||||
|
||||
WORKDIR /
|
||||
|
||||
EXPOSE 8443 8080
|
||||
|
||||
EXPOSE 8443
|
||||
CMD ["sh"]
|
||||
|
||||
Reference in New Issue
Block a user