
Change-Id: I06fa84b88f3a4828ee5151839c9e216879e56bde Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
27 lines
1.3 KiB
Docker
Executable File
27 lines
1.3 KiB
Docker
Executable File
ARG UBUNTU_RELEASE=xenial
|
|
|
|
FROM docker.io/ubuntu:${UBUNTU_RELEASE}
|
|
LABEL maintainer="sreejith.punnapuzha@outlook.com"
|
|
|
|
ARG CEPH_RELEASE=mimic
|
|
ARG UBUNTU_RELEASE=xenial
|
|
|
|
RUN set -xe \
|
|
&& echo '#!/bin/sh' > /usr/sbin/policy-rc.d \
|
|
&& echo 'exit 101' >> /usr/sbin/policy-rc.d \
|
|
&& chmod +x /usr/sbin/policy-rc.d \
|
|
&& sed -i '/nobody/d' /etc/passwd \
|
|
&& echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \
|
|
&& dpkg-divert --local --rename --add /sbin/initctl \
|
|
&& cp -a /usr/sbin/policy-rc.d /sbin/initctl \
|
|
&& sed -i 's/^exit.*/exit 0/' /sbin/initctl \
|
|
&& apt-get update && apt-get install -y wget curl apt-transport-https gnupg\
|
|
&& wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add - \
|
|
&& echo deb https://download.ceph.com/debian-${CEPH_RELEASE}/ ${UBUNTU_RELEASE} main | tee /etc/apt/sources.list.d/ceph.list \
|
|
&& apt-get update && apt-get install -y bash python-oslo.rootwrap moreutils vim sudo screen ceph-common python-rbd radosgw rsyslog x11-apps jq \
|
|
&& apt-get remove --purge -y wget apt-transport-https && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* \
|
|
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
|
|
&& pip --no-cache-dir install --upgrade crush
|
|
|
|
CMD ["/bin/bash"]
|