]> git.proxmox.com Git - ceph.git/blob - ceph/src/cephadm/box/Dockerfile
import ceph quincy 17.2.6
[ceph.git] / ceph / src / cephadm / box / Dockerfile
1 # https://developers.redhat.com/blog/2014/05/05/running-systemd-within-docker-container/
2 FROM centos:8 as centos-systemd
3 ENV container docker
4 ENV CEPHADM_PATH=/usr/local/sbin/cephadm
5
6 # Centos met EOL and the content of the CentOS 8 repos has been moved to vault.centos.org
7 RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
8 RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=https://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*
9
10 RUN dnf -y install chrony firewalld lvm2 \
11 openssh-server openssh-clients python3 \
12 yum-utils sudo which && dnf clean all
13
14 RUN systemctl enable chronyd firewalld sshd
15
16
17 FROM centos-systemd as centos-systemd-docker
18 # To cache cephadm images
19 RUN yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
20 RUN dnf -y install docker-ce && \
21 dnf clean all && systemctl enable docker
22
23 # ssh utilities
24 RUN dnf install epel-release -y && dnf makecache && dnf install sshpass -y
25
26 EXPOSE 8443
27 EXPOSE 22
28
29 FROM centos-systemd-docker
30 WORKDIR /root
31
32 CMD [ "/usr/sbin/init" ]