forked from Infinidat/infinibox-csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-ubi
executable file
·41 lines (33 loc) · 1.42 KB
/
Dockerfile-ubi
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
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
COPY setenv.sh /setenv.sh
RUN chmod +x /setenv.sh
COPY infinibox-csi-driver /infinibox-csi-driver
MAINTAINER [email protected]
LABEL name="infinibox-csi-driver" \
vendor="Infinidat" \
summary="Infinidat CSI-Plugin" \
description="Install a CSI-Plugin for infinibox"
COPY licenses /licenses
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/iscsiadm \
&& ln -s /ibox/host-chroot.sh /ibox/rpcbind \
&& ln -s /ibox/host-chroot.sh /ibox/lsblk \
&& ln -s /ibox/host-chroot.sh /ibox/hostnamectl \
&& ln -s /ibox/host-chroot.sh /ibox/lsscsi \
&& 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/fsck \
&& 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/cat \
&& ln -s /ibox/host-chroot.sh /ibox/mkdir \
&& ln -s /ibox/host-chroot.sh /ibox/rmdir \
&& ln -s /ibox/host-chroot.sh /ibox/umount
ENV PATH="/ibox:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
ENTRYPOINT ["/setenv.sh"]