Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions docker/Dockerfile.alluxioruntime
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,25 @@ COPY . .
RUN make alluxioruntime-controller-build && \
cp bin/alluxioruntime-controller /go/bin/alluxioruntime-controller

WORKDIR /go/src/github.com/fluid-cloudnative/
RUN git clone https://github.com/fluid-cloudnative/helm.git
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use git clone -b release-3.17-for-fluid instead?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

helm in branch release-3.17-for-fluid is using go 1.24.0 in the go.mod file. Is that ok we build helm in a golang 1.23.10 environment?

WORKDIR /go/src/github.com/fluid-cloudnative/helm
RUN git checkout release-3.17-for-fluid && \
make build && \
cp bin/helm /go/bin/ddc-helm

# alpine:3.20.6
FROM alpine:3.20.6@sha256:de4fe7064d8f98419ea6b49190df1abbf43450c1702eeb864fe9ced453c1cc5f
RUN apk add --update bash curl iproute2 libc6-compat tzdata vim && \
rm -rf /var/cache/apk/* && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone

ARG TARGETARCH
ARG HELM_VERSION
RUN curl -o ${HELM_VERSION}-linux-${TARGETARCH}.tar.gz https://get.helm.sh/${HELM_VERSION}-linux-${TARGETARCH}.tar.gz && \
tar -xvf ${HELM_VERSION}-linux-${TARGETARCH}.tar.gz && \
mv linux-${TARGETARCH}/helm /usr/local/bin/ddc-helm && \
chmod u+x /usr/local/bin/ddc-helm && \
rm -f ${HELM_VERSION}-linux-${TARGETARCH}.tar.gz

COPY charts/ /charts

COPY --from=builder /go/bin/alluxioruntime-controller /usr/local/bin/alluxioruntime-controller
COPY --from=builder /go/bin/ddc-helm /usr/local/bin/ddc-helm

RUN chmod -R u+x /usr/local/bin/

CMD ["alluxioruntime-controller", "start"]
Expand Down
16 changes: 8 additions & 8 deletions docker/Dockerfile.efcruntime
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ COPY . .
RUN make efcruntime-controller-build && \
cp bin/efcruntime-controller /go/bin/efcruntime-controller

WORKDIR /go/src/github.com/fluid-cloudnative/
RUN git clone https://github.com/fluid-cloudnative/helm.git
WORKDIR /go/src/github.com/fluid-cloudnative/helm
RUN git checkout release-3.17-for-fluid && \
make build && \
cp bin/helm /go/bin/ddc-helm

# Debug
#RUN go install github.com/go-delve/delve/cmd/dlv@v1.8.2

Expand All @@ -18,17 +25,10 @@ RUN apk add --update bash curl iproute2 libc6-compat tzdata vim && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone

ARG TARGETARCH
ARG HELM_VERSION
RUN curl -o ${HELM_VERSION}-linux-${TARGETARCH}.tar.gz https://get.helm.sh/${HELM_VERSION}-linux-${TARGETARCH}.tar.gz && \
tar -xvf ${HELM_VERSION}-linux-${TARGETARCH}.tar.gz && \
mv linux-${TARGETARCH}/helm /usr/local/bin/ddc-helm && \
chmod u+x /usr/local/bin/ddc-helm && \
rm -f ${HELM_VERSION}-linux-${TARGETARCH}.tar.gz

COPY charts/ /charts

COPY --from=builder /go/bin/efcruntime-controller /usr/local/bin/efcruntime-controller
COPY --from=builder /go/bin/ddc-helm /usr/local/bin/ddc-helm
#COPY --from=builder /go/bin/dlv /usr/local/bin/dlv
RUN chmod -R u+x /usr/local/bin/

Expand Down
16 changes: 8 additions & 8 deletions docker/Dockerfile.goosefsruntime
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ COPY . .
RUN make goosefsruntime-controller-build && \
cp bin/goosefsruntime-controller /go/bin/goosefsruntime-controller

WORKDIR /go/src/github.com/fluid-cloudnative/
RUN git clone https://github.com/fluid-cloudnative/helm.git
WORKDIR /go/src/github.com/fluid-cloudnative/helm
RUN git checkout release-3.17-for-fluid && \
make build && \
cp bin/helm /go/bin/ddc-helm

# Debug
RUN go install github.com/go-delve/delve/cmd/dlv@v1.8.2

Expand All @@ -18,17 +25,10 @@ RUN apk add --update bash curl iproute2 libc6-compat tzdata vim && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone

ARG TARGETARCH
ARG HELM_VERSION
RUN curl -o ${HELM_VERSION}-linux-${TARGETARCH}.tar.gz https://get.helm.sh/${HELM_VERSION}-linux-${TARGETARCH}.tar.gz && \
tar -xvf ${HELM_VERSION}-linux-${TARGETARCH}.tar.gz && \
mv linux-${TARGETARCH}/helm /usr/local/bin/ddc-helm && \
chmod u+x /usr/local/bin/ddc-helm && \
rm -f ${HELM_VERSION}-linux-${TARGETARCH}.tar.gz

COPY charts/ /charts

COPY --from=builder /go/bin/goosefsruntime-controller /usr/local/bin/goosefsruntime-controller
COPY --from=builder /go/bin/ddc-helm /usr/local/bin/ddc-helm
COPY --from=builder /go/bin/dlv /usr/local/bin/dlv
RUN chmod -R u+x /usr/local/bin/

Expand Down
8 changes: 8 additions & 0 deletions docker/Dockerfile.jindoruntime
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ COPY . .
RUN make jindoruntime-controller-build && \
cp bin/jindoruntime-controller /go/bin/jindoruntime-controller

WORKDIR /go/src/github.com/fluid-cloudnative/
RUN git clone https://github.com/fluid-cloudnative/helm.git
WORKDIR /go/src/github.com/fluid-cloudnative/helm
RUN git checkout release-3.17-for-fluid && \
make build && \
cp bin/helm /go/bin/ddc-helm

# alpine:3.20.6
FROM alpine:3.20.6@sha256:de4fe7064d8f98419ea6b49190df1abbf43450c1702eeb864fe9ced453c1cc5f
RUN apk add --update bash curl iproute2 libc6-compat tzdata vim && \
Expand All @@ -29,6 +36,7 @@ COPY charts/jindofsx /charts/jindofsx
COPY charts/jindocache /charts/jindocache

COPY --from=builder /go/bin/jindoruntime-controller /usr/local/bin/jindoruntime-controller
COPY --from=builder /go/bin/ddc-helm /usr/local/bin/ddc-helm
#COPY --from=builder /go/bin/dlv /usr/local/bin/dlv
RUN chmod -R u+x /usr/local/bin/

Expand Down
8 changes: 8 additions & 0 deletions docker/Dockerfile.juicefsruntime
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ COPY . .
RUN make juicefsruntime-controller-build && \
cp bin/juicefsruntime-controller /go/bin/juicefsruntime-controller

WORKDIR /go/src/github.com/fluid-cloudnative/
RUN git clone https://github.com/fluid-cloudnative/helm.git
WORKDIR /go/src/github.com/fluid-cloudnative/helm
RUN git checkout release-3.17-for-fluid && \
make build && \
cp bin/helm /go/bin/ddc-helm

# Debug
#RUN go install github.com/go-delve/delve/cmd/dlv@v1.8.2

Expand All @@ -29,6 +36,7 @@ RUN curl -o ${HELM_VERSION}-linux-${TARGETARCH}.tar.gz https://get.helm.sh/${HEL
COPY charts/ /charts

COPY --from=builder /go/bin/juicefsruntime-controller /usr/local/bin/juicefsruntime-controller
COPY --from=builder /go/bin/ddc-helm /usr/local/bin/ddc-helm
#COPY --from=builder /go/bin/dlv /usr/local/bin/dlv
RUN chmod -R u+x /usr/local/bin/

Expand Down
8 changes: 8 additions & 0 deletions docker/Dockerfile.thinruntime
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ COPY . .
RUN make thinruntime-controller-build && \
cp bin/thinruntime-controller /go/bin/thinruntime-controller

WORKDIR /go/src/github.com/fluid-cloudnative/
RUN git clone https://github.com/fluid-cloudnative/helm.git
WORKDIR /go/src/github.com/fluid-cloudnative/helm
RUN git checkout release-3.17-for-fluid && \
make build && \
cp bin/helm /go/bin/ddc-helm

# Debug
#RUN go install github.com/go-delve/delve/cmd/dlv@v1.8.2

Expand All @@ -29,6 +36,7 @@ RUN curl -o ${HELM_VERSION}-linux-${TARGETARCH}.tar.gz https://get.helm.sh/${HEL
COPY charts/ /charts

COPY --from=builder /go/bin/thinruntime-controller /usr/local/bin/thinruntime-controller
COPY --from=builder /go/bin/ddc-helm /usr/local/bin/ddc-helm
#COPY --from=builder /go/bin/dlv /usr/local/bin/dlv
RUN chmod -R u+x /usr/local/bin/

Expand Down
8 changes: 8 additions & 0 deletions docker/Dockerfile.vineyardruntime
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ COPY . .
RUN make vineyardruntime-controller-build && \
cp bin/vineyardruntime-controller /go/bin/vineyardruntime-controller

WORKDIR /go/src/github.com/fluid-cloudnative/
RUN git clone https://github.com/fluid-cloudnative/helm.git
WORKDIR /go/src/github.com/fluid-cloudnative/helm
RUN git checkout release-3.17-for-fluid && \
make build && \
cp bin/helm /go/bin/ddc-helm

# alpine:3.20.6
FROM alpine:3.20.6@sha256:de4fe7064d8f98419ea6b49190df1abbf43450c1702eeb864fe9ced453c1cc5f
RUN apk add --update bash curl iproute2 libc6-compat tzdata vim && \
Expand All @@ -26,6 +33,7 @@ RUN curl -o ${HELM_VERSION}-linux-${TARGETARCH}.tar.gz https://get.helm.sh/${HEL
COPY charts/ /charts

COPY --from=builder /go/bin/vineyardruntime-controller /usr/local/bin/vineyardruntime-controller
COPY --from=builder /go/bin/ddc-helm /usr/local/bin/ddc-helm
#COPY --from=builder /go/bin/dlv /usr/local/bin/dlv
RUN chmod -R u+x /usr/local/bin/

Expand Down
Loading