3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 ADD centos-7-docker.tar.xz /
18 MAINTAINER Krisztian Lengyel <krisztian.lengyel@nokia.com>
22 # These packages explicitly needed to install specified ceph-common version
23 ARG ceph_packages="ceph-common-$ceph_version librados2-$ceph_version libradosstriper1-$ceph_version"
25 COPY kube-apiserver /kube-apiserver
26 COPY kube-controller-manager /kube-controller-manager
27 COPY kube-proxy /kube-proxy
28 COPY kube-scheduler /kube-scheduler
30 RUN useradd -u 144 -M -s /sbin/nologin kube \
31 && yum install -y https://download.ceph.com/rpm-luminous/el7/noarch/ceph-release-1-1.el7.noarch.rpm \
32 && yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
33 && yum install -y --setopt=skip_missing_names_on_install=False \
39 && chmod a+x /kube-apiserver \
40 && chmod a+x /kube-controller-manager \
41 && chmod a+x /kube-proxy \
42 && chmod a+x /kube-scheduler \
44 && yum erase -y ceph-release \
45 && yum autoremove -y \
46 && yum erase -y grubby \