Dockerfile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 2016 The Rook Authors. All rights reserved.
  2. #
  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
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  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.
  14. # see Makefile for the BASEIMAGE definition
  15. FROM BASEIMAGE
  16. # env vars for s5cmd
  17. ARG S5CMD_VERSION
  18. ARG S5CMD_ARCH
  19. # install 'ip' tool for Multus
  20. RUN dnf install -y --setopt=install_weak_deps=False iproute && dnf clean all
  21. # Install the s5cmd package to interact with s3 gateway
  22. 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 && \
  23. mkdir /s5cmd && \
  24. tar xf /s5cmd.tar.gz -C /s5cmd && \
  25. install /s5cmd/s5cmd /usr/local/bin/s5cmd && \
  26. rm -rf /s5cmd.tar.gz /s5cmd
  27. COPY rook toolbox.sh set-ceph-debug-level /usr/local/bin/
  28. COPY ceph-monitoring /etc/ceph-monitoring
  29. COPY rook-external /etc/rook-external/
  30. COPY ceph-csv-templates /etc/ceph-csv-templates
  31. RUN useradd rook -u 2016 # 2016 is the UID of the rook user and also the year of the first commit in the project
  32. USER 2016
  33. ENTRYPOINT ["/usr/local/bin/rook"]
  34. CMD [""]