f5c29777c5
Currently the ceph image build jobs are failing due to version 16.2.9 not existing in the remote repo. A check there looks like they've updated the pacific version to 16.2.10, so this change bumps the version up to the latest. Change-Id: I56ec9bc170413129f4fded4cae42edcfb6d851a8
33 lines
1.1 KiB
Docker
33 lines
1.1 KiB
Docker
ARG baseimg=docker.io/ubuntu:bionic
|
|
FROM ${baseimg}
|
|
|
|
# Pacific 16.2.10
|
|
ARG CEPH_RELEASE=pacific
|
|
ARG CEPH_RELEASE_TAG=16.2.10-1bionic
|
|
ARG CEPH_REPO=https://mirror.mirantis.com/acicd/ceph-pacific/
|
|
ARG CEPH_KEY=https://mirror.mirantis.com/acicd/ceph-pacific/release.asc
|
|
|
|
ADD ${CEPH_KEY} /etc/apt/ceph-${CEPH_RELEASE}.key
|
|
RUN set -ex ;\
|
|
export DEBIAN_FRONTEND=noninteractive ;\
|
|
apt-get update ;\
|
|
apt-get install --no-install-recommends -y \
|
|
apt-transport-https \
|
|
ca-certificates \
|
|
gnupg2 ;\
|
|
apt-key add /etc/apt/ceph-${CEPH_RELEASE}.key ;\
|
|
rm -f /etc/apt/ceph-${CEPH_RELEASE}.key ;\
|
|
echo "deb ${CEPH_REPO} bionic main" | tee /etc/apt/sources.list.d/ceph.list ;\
|
|
apt-get update ;\
|
|
apt-get dist-upgrade -y ;\
|
|
apt-get install --no-install-recommends -y \
|
|
ceph=${CEPH_RELEASE_TAG} \
|
|
ceph-common=${CEPH_RELEASE_TAG} ;\
|
|
rm -rf /var/lib/apt/lists/* ;\
|
|
rm -rf /usr/share/doc/ ;\
|
|
rm -rf /usr/share/man/ ;\
|
|
rm -rf /usr/share/locale/
|
|
|
|
COPY --from=quay.io/external_storage/cephfs-provisioner:v2.1.0-k8s1.11 /usr/local/bin/cephfs* /usr/local/bin/
|
|
RUN chmod -v o+x /usr/local/bin/cephfs_provisioner
|