-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
executable file
·80 lines (71 loc) · 2.86 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
FROM redhat/ubi9:latest
# Note: See "linux_host" note the IBox Ansible vars yaml
# file in git.infinidat.com:PSUS/webinar-automate-sla.git.
# This is affected by the base image choice.
# Base image is specified in Makefile and must match.
MAINTAINER [email protected]
ARG BLAME_MACHINE
ARG BLAME_USER
ARG BLAME_BUILD_TIME
ARG IMAGE_TAG
ARG VCS_REF
ENV BLAME_MACHINE=$BLAME_MACHINE
ENV BLAME_USER=$BLAME_USER
ENV BLAME_BUILD_TIME=$BLAME_BUILD_TIME
ENV IMAGE_TAG=$IMAGE_TAG
ENV VCS_REF=$VCS_REF
LABEL BLAME_MACHINE=$BLAME_MACHINE
LABEL BLAME_USER=$BLAME_USER
LABEL BLAME_BUILD_TIME=$BLAME_BUILD_TIME
LABEL IMAGE_TAG=$IMAGE_TAG
LABEL VCS_REF=$VCS_REF
LABEL description="A CSI Driver image for InfiniBox"
LABEL name="infinibox-csi-driver"
LABEL org.opencontainers.image.authors="[email protected]"
LABEL summary="Infinidat CSI-Plugin"
LABEL vendor="Infinidat"
COPY licenses /licenses
COPY setenv.sh /setenv.sh
RUN chmod +x /setenv.sh
COPY bin/iboxreplica-controller /iboxreplica-controller
COPY infinibox-csi-driver /infinibox-csi-driver
RUN chmod +x /infinibox-csi-driver /iboxreplica-controller
RUN yum -y install file lsof hostname && \
yum -y update && \
yum -y clean all && rm -rf /var/cache
RUN mkdir /ibox
ADD host-chroot.sh /ibox
RUN chmod 777 /ibox/host-chroot.sh
RUN \
ln -s /ibox/host-chroot.sh /ibox/blkid \
&& ln -s /ibox/host-chroot.sh /ibox/blockdev \
&& ln -s /ibox/host-chroot.sh /ibox/cat \
&& ln -s /ibox/host-chroot.sh /ibox/chown \
&& ln -s /ibox/host-chroot.sh /ibox/chmod \
&& ln -s /ibox/host-chroot.sh /ibox/dmsetup \
&& ln -s /ibox/host-chroot.sh /ibox/file \
&& ln -s /ibox/host-chroot.sh /ibox/find \
&& ln -s /ibox/host-chroot.sh /ibox/findmnt \
&& ln -s /ibox/host-chroot.sh /ibox/fsck \
&& ln -s /ibox/host-chroot.sh /ibox/hostnamectl \
&& ln -s /ibox/host-chroot.sh /ibox/iscsiadm \
&& ln -s /ibox/host-chroot.sh /ibox/lsblk \
&& ln -s /ibox/host-chroot.sh /ibox/lsof \
&& ln -s /ibox/host-chroot.sh /ibox/lsscsi \
&& ln -s /ibox/host-chroot.sh /ibox/mkdir \
&& ln -s /ibox/host-chroot.sh /ibox/mkfs.ext3 \
&& ln -s /ibox/host-chroot.sh /ibox/mkfs.ext4 \
&& ln -s /ibox/host-chroot.sh /ibox/mkfs.xfs \
&& ln -s /ibox/host-chroot.sh /ibox/mount \
&& ln -s /ibox/host-chroot.sh /ibox/multipath \
&& ln -s /ibox/host-chroot.sh /ibox/multipathd \
&& ln -s /ibox/host-chroot.sh /ibox/rescan-scsi-bus.sh \
&& ln -s /ibox/host-chroot.sh /ibox/rmdir \
&& ln -s /ibox/host-chroot.sh /ibox/rpcbind \
&& ln -s /ibox/host-chroot.sh /ibox/umount \
&& ln -s /ibox/host-chroot.sh /ibox/whoami \
&& ln -s /ibox/host-chroot.sh /ibox/resize2fs \
&& ln -s /ibox/host-chroot.sh /ibox/xfs_admin \
&& ln -s /ibox/host-chroot.sh /ibox/xfs_db
ENV PATH="/ibox:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
ENTRYPOINT ["/setenv.sh"]