Instead of adding Ceph packages to Rook's base image, use ceph-container's base image, which has Ceph packages preinstalled. Rook now benefits from the testing the ceph-container project does, and the scope of the Rook project no longer has to maintain builds of base images containing Ceph packages. The only ARM builds of ceph-container are CentOS, and as switching to CentOS was already a thought, that is easily done at the same time as this change. Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
56 lines
1.5 KiB
Docker
56 lines
1.5 KiB
Docker
# Copyright 2016 The Rook Authors. All rights reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
FROM BASEIMAGE
|
|
|
|
SHELL ["/bin/bash","-c"]
|
|
|
|
RUN yum --assumeyes update && \
|
|
yum --assumeyes install epel-release && \
|
|
yum --assumeyes update && \
|
|
yum --assumeyes install \
|
|
binutils \
|
|
curl \
|
|
fio \
|
|
gdb \
|
|
iperf3 \
|
|
jq \
|
|
kmod \
|
|
less \
|
|
man-db \
|
|
net-tools \
|
|
nmap-ncat \
|
|
s3cmd \
|
|
sudo \
|
|
vim && \
|
|
yum clean all && \
|
|
rm -rf \
|
|
/etc/{selinux,systemd,udev} \
|
|
/lib/{lsb,udev} \
|
|
/tmp/* \
|
|
/usr/lib/{locale,systemd,udev} \
|
|
/usr/share/{doc,info,man} \
|
|
/var/log/* \
|
|
/var/tmp/*
|
|
|
|
ARG ARCH
|
|
ARG TINI_VERSION
|
|
|
|
# Run tini as PID 1 and avoid signal handling issues
|
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${ARCH} /tini
|
|
RUN chmod +x /tini
|
|
|
|
ENTRYPOINT ["/tini", "-g", "--"]
|
|
CMD ["/bin/bash"]
|