mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-27 16:50:23 +00:00
dfe91bd00f
The CentOS 8 repository for Apache Arrow has been removed. This causes
container-image builds fail with the following error:
Errors during downloading metadata for repository 'apache-arrow-centos':
- Status code: 404 for https://apache.jfrog.io/artifactory/arrow/centos/8/x86_64/repodata/repomd.xml (IP: 54.190.66.70)
Error: Failed to download metadata for repo 'apache-arrow-centos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
The Ceph base image has `arrow/centos/8` configured, maybe Apache Arrow
offers a CentOS Stream 8 repository now? Once the Ceph container-image
has been updated, the repository can be enabled again.
Ceph-CSI does not depend on Apache Arrow, so there is no functional
change by disabling the repository.
Signed-off-by: Niels de Vos <ndevos@redhat.com>
(cherry picked from commit cbec296543
)
35 lines
1010 B
Docker
35 lines
1010 B
Docker
ARG BASE_IMAGE
|
|
FROM ${BASE_IMAGE}
|
|
|
|
ARG GOROOT=/usr/local/go
|
|
ARG GOARCH
|
|
|
|
ENV GOPATH=/go \
|
|
GOROOT=${GOROOT} \
|
|
GO111MODULE=on \
|
|
PATH="${GOROOT}/bin:${GOPATH}/bin:${PATH}"
|
|
|
|
COPY build.env /
|
|
|
|
RUN source /build.env \
|
|
&& \
|
|
( test -n "${GOARCH}" && exit 0; echo -e "\n\nMissing GOARCH argument for building image, install Golang or run: make containerized-build GOARCH=amd64\n\n"; exit 1 ) \
|
|
&& mkdir -p /usr/local/go \
|
|
&& curl https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${GOARCH}.tar.gz | tar xzf - -C ${GOROOT} --strip-components=1
|
|
|
|
# FIXME: Ceph does not need Apache Arrow anymore, some container images may
|
|
# still have the repository enabled. Disabling the repository can be removed in
|
|
# the future, see https://github.com/ceph/ceph-container/pull/1990 .
|
|
RUN dnf config-manager --disable apache-arrow-centos || true
|
|
|
|
RUN dnf -y install \
|
|
git \
|
|
make \
|
|
gcc \
|
|
librados-devel \
|
|
librbd-devel \
|
|
&& dnf -y update \
|
|
&& true
|
|
|
|
WORKDIR "/go/src/github.com/ceph/ceph-csi"
|