2017-06-02 13:38:04 -07:00
|
|
|
# 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.
|
|
|
|
|
|
2019-04-10 11:53:24 -06:00
|
|
|
# see Makefile for the BASEIMAGE definition
|
2018-12-31 07:44:59 -08:00
|
|
|
FROM BASEIMAGE
|
2018-05-11 16:40:28 -06:00
|
|
|
|
2021-11-09 11:15:05 +01:00
|
|
|
# env vars for s5cmd
|
|
|
|
|
ARG S5CMD_VERSION
|
|
|
|
|
ARG S5CMD_ARCH
|
|
|
|
|
|
2024-06-03 13:57:08 -06:00
|
|
|
# 'ip' tool must be installed for Multus. It's present in the base image today, but it will likely
|
|
|
|
|
# be removed in the future. Doing a 'dnf install' sometimes breaks CI when centos repos go down or
|
|
|
|
|
# have other package build errors. In order to make sure Rook CI catches the eventual removal and
|
|
|
|
|
# also limit Rook CI breakage due to centos breakage, simply check that 'ip' is present.
|
|
|
|
|
# Eventually: dnf install -y --repo baseos --setopt=install_weak_deps=False iproute && dnf clean all
|
|
|
|
|
RUN which ip
|
2023-10-31 11:36:22 -06:00
|
|
|
|
2021-11-09 11:15:05 +01:00
|
|
|
# Install the s5cmd package to interact with s3 gateway
|
|
|
|
|
RUN curl --fail -sSL -o /s5cmd.tar.gz https://github.com/peak/s5cmd/releases/download/v${S5CMD_VERSION}/s5cmd_${S5CMD_VERSION}_${S5CMD_ARCH}.tar.gz && \
|
|
|
|
|
mkdir /s5cmd && \
|
|
|
|
|
tar xf /s5cmd.tar.gz -C /s5cmd && \
|
|
|
|
|
install /s5cmd/s5cmd /usr/local/bin/s5cmd && \
|
|
|
|
|
rm -rf /s5cmd.tar.gz /s5cmd
|
|
|
|
|
|
2021-09-22 16:39:09 -06:00
|
|
|
COPY rook toolbox.sh set-ceph-debug-level /usr/local/bin/
|
2019-06-17 15:26:28 +05:30
|
|
|
COPY ceph-monitoring /etc/ceph-monitoring
|
2020-11-17 12:06:27 +01:00
|
|
|
COPY rook-external /etc/rook-external/
|
2021-11-05 16:16:27 +01:00
|
|
|
RUN useradd rook -u 2016 # 2016 is the UID of the rook user and also the year of the first commit in the project
|
|
|
|
|
USER 2016
|
2021-09-23 15:28:46 +02:00
|
|
|
ENTRYPOINT ["/usr/local/bin/rook"]
|
2017-06-14 10:03:01 -07:00
|
|
|
CMD [""]
|