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