diff --git a/Storage/cubefs/3.5.2/24.03-lts-sp1/Dockerfile b/Storage/cubefs/3.5.2/24.03-lts-sp1/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..23b8c157ae01aa5c719cab460c885b7de66ff823 --- /dev/null +++ b/Storage/cubefs/3.5.2/24.03-lts-sp1/Dockerfile @@ -0,0 +1,26 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM ${BASE} AS builder + +ARG TARGETARCH +ARG VERSION=3.5.2 +ARG GO_VERSION=1.17 + +WORKDIR /app +RUN yum install -y git make cmake g++ maven && \ + yum clean all && \ + curl -fSL -o go.tar.gz https://golang.google.cn/dl/go${GO_VERSION}.linux-${TARGETARCH}.tar.gz && \ + tar -xvf go.tar.gz -C /usr/local && \ + rm -rf go.tar.gz +ENV PATH="/usr/local/go/bin:${PATH}" + +RUN git clone -b v${VERSION} https://github.com/cubefs/cubefs.git && \ + cd cubefs && \ + make + + +FROM ${BASE} + +COPY --from=builder /usr/local/go /usr/local/go +COPY --from=builder /app/cubefs/build/bin/* /usr/local/bin/ + +WORKDIR /usr/local/bin \ No newline at end of file diff --git a/Storage/cubefs/meta.yml b/Storage/cubefs/meta.yml index a6810f6be0835f8db6b678043bd32ee8e4e03b49..0c36a0a9df53d97017748f05fba443d2f371bb79 100644 --- a/Storage/cubefs/meta.yml +++ b/Storage/cubefs/meta.yml @@ -1,2 +1,4 @@ 3.5.0-oe2403sp1: - path: 3.5.0/24.03-lts-sp1/Dockerfile \ No newline at end of file + path: 3.5.0/24.03-lts-sp1/Dockerfile +3.5.2-oe2403sp1: + path: 3.5.2/24.03-lts-sp1/Dockerfile \ No newline at end of file