mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
Add script to build and push multi arch images
with the help of qemu-user-static we can run different architecute contains. more info at https://github.com/multiarch/qemu-user-static Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
4b540ffecc
commit
697ed32778
@ -11,13 +11,13 @@ ARG GO_ARCH
|
||||
ARG SRC_DIR
|
||||
ARG GIT_COMMIT
|
||||
ARG GOROOT=/usr/local/go
|
||||
RUN dnf install libcephfs-devel librados-devel librbd-devel /usr/bin/cc make -y
|
||||
|
||||
RUN mkdir -p ${GOROOT} && \
|
||||
curl https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${GO_ARCH}.tar.gz | tar xzf - -C ${GOROOT} --strip-components=1
|
||||
|
||||
RUN dnf install libcephfs-devel librados-devel librbd-devel /usr/bin/cc make -y
|
||||
|
||||
ENV GOROOT=$GOROOT \
|
||||
ENV GOROOT=${GOROOT} \
|
||||
GOPATH=/go \
|
||||
CGO_ENABLED=1 \
|
||||
GIT_COMMIT="${GIT_COMMIT}" \
|
||||
@ -40,8 +40,8 @@ FROM ceph/ceph:v15
|
||||
ARG SRC_DIR
|
||||
|
||||
LABEL maintainers="Ceph-CSI Authors" \
|
||||
version=$CSI_IMAGE_VERSION \
|
||||
architecture=$GO_ARCH \
|
||||
version=${CSI_IMAGE_VERSION} \
|
||||
architecture=${GO_ARCH} \
|
||||
description="Ceph-CSI Plugin"
|
||||
|
||||
COPY --from=0 ${SRC_DIR}/_output/cephcsi /usr/local/bin/cephcsi
|
||||
|
Reference in New Issue
Block a user