-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
61 lines (50 loc) · 1.85 KB
/
Dockerfile
File metadata and controls
61 lines (50 loc) · 1.85 KB
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
#FROM centos:centos6
#FROM ubuntu:18.10
FROM alpine:3.2
LABEL name="edgefs-csi-driver"
LABEL maintainer="Nexenta Systems, Inc."
LABEL description="Edgefs NFS/ISCSI CSI Driver"
LABEL io.k8s.description="Edgefs NFS/ISCSI CSI Driver"
#CentOS installation section
#RUN yum update -y
#RUN yum install -y lsscsi iscsi-initiator-utils device-mapper-multipath
#RUN yum install -y nfs-utils
#RUN apk update
#Debian installation version
#RUN apt-get update -y
#RUN apt-get install nfs-common -y
#RUN apt-get install open-iscsi -y
RUN apk update || true && \
apk add coreutils util-linux blkid nfs-utils \
lsscsi \
e2fsprogs \
bash \
kmod \
curl \
jq \
ca-certificates
RUN mkdir /edgefs
ADD chroot-host-wrapper.sh /edgefs
RUN mkdir -p /etc/ && mkdir -p /config/
COPY ./bin/edgefs-csi /
COPY ./csc /
RUN chmod 777 /edgefs/chroot-host-wrapper.sh
RUN ln -s /edgefs/chroot-host-wrapper.sh /edgefs/blkid \
&& ln -s /edgefs/chroot-host-wrapper.sh /edgefs/blockdev \
&& ln -s /edgefs/chroot-host-wrapper.sh /edgefs/df \
&& ln -s /edgefs/chroot-host-wrapper.sh /edgefs/iscsiadm \
&& ln -s /edgefs/chroot-host-wrapper.sh /edgefs/lsscsi \
&& ln -s /edgefs/chroot-host-wrapper.sh /edgefs/mkfs.ext3 \
&& ln -s /edgefs/chroot-host-wrapper.sh /edgefs/mkfs.ext4 \
&& ln -s /edgefs/chroot-host-wrapper.sh /edgefs/mkfs.xfs \
&& ln -s /edgefs/chroot-host-wrapper.sh /edgefs/multipath \
&& ln -s /edgefs/chroot-host-wrapper.sh /edgefs/multipathd
# && ln -s /netapp/chroot-host-wrapper.sh /edgefs/ls \
# && ln -s /netapp/chroot-host-wrapper.sh /edgefs/mkdir \
# && ln -s /netapp/chroot-host-wrapper.sh /edgefs/mount \
# && ln -s /netapp/chroot-host-wrapper.sh /edgefs/stat \
# && ln -s /netapp/chroot-host-wrapper.sh /edgefs/umount \
# && ln -s /netapp/chroot-host-wrapper.sh /edgefs/rmdir
#
ENV PATH="/edgefs:${PATH}"
ENTRYPOINT ["/edgefs-csi"]