Files
loci/Dockerfile.base
Vladimir Kozhukalov 304d131aa6 Remove Centos related code
We have not been testing this code for quite a some time and
there has been little interest in maintaining it.

The change removes all Centos related code to reduce
the maintenance burden.

See the related discussion [1].

[1] https://lists.openstack.org/archives/list/openstack-discuss@lists.openstack.org/thread/GWRYBFSYE3ZLW64WK2ECIOGN3QZYYLTD/

Change-Id: Id1c6bb5c9c486c62f28feb7ba429f7af84e88db0
2025-05-30 23:00:42 -05:00

27 lines
868 B
Docker

ARG FROM=ubuntu:jammy
FROM ${FROM}
ARG CEPH_REPO
ARG CEPH_KEY="https://download.ceph.com/keys/release.asc"
ARG ALLOW_UNAUTHENTICATED=false
RUN echo "APT::Get::AllowUnauthenticated \"${ALLOW_UNAUTHENTICATED}\";\n\
Acquire::AllowInsecureRepositories \"${ALLOW_UNAUTHENTICATED}\";\n\
Acquire::AllowDowngradeToInsecureRepositories \"${ALLOW_UNAUTHENTICATED}\";" \
>> /etc/apt/apt.conf.d/allow-unathenticated
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
gnupg2 \
lsb-release \
wget && \
wget -q -O- ${CEPH_KEY} | apt-key add - && \
if [ -n "${CEPH_REPO}" ]; then \
echo "${CEPH_REPO}" | tee /etc/apt/sources.list.d/ceph.list; \
fi && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*