forked from osism-archive/container-image-ceph-daemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (21 loc) · 1.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ARG VERSION
FROM ceph/daemon:$VERSION
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Change the UID and GID of the Ceph user/group from 167 to 64045.
RUN usermod -u 64045 ceph
RUN groupmod -g 64045 ceph
# Adjust the permissions of all files and directories accordingly.
RUN find / -path /proc -prune -o -group 167 -exec chgrp -h ceph {} \;
RUN find / -path /proc -prune -o -user 167 -exec chown -h ceph {} \;
RUN yum update -y \
&& yum clean all
# Install zabbix-sender package to be able to use /usr/bin/zabbix_sender
RUN centos_version="$(tr -dc '0-9.' < /etc/centos-release | cut -d \. -f1)" \
&& rpm -Uvh "https://repo.zabbix.com/zabbix/5.1/rhel/${centos_version}/x86_64/zabbix-release-5.1-1.el${centos_version}.noarch.rpm" \
&& yum install -y zabbix-sender \
&& yum clean all
LABEL "org.opencontainers.image.documentation"="https://docs.osism.de" \
"org.opencontainers.image.licenses"="ASL 2.0" \
"org.opencontainers.image.source"="https://github.com/osism/docker-image-ceph-daemon" \
"org.opencontainers.image.url"="https://www.osism.de" \
"org.opencontainers.image.vendor"="Betacloud Solutions GmbH"