@@ -7,61 +7,49 @@ ENV RHSM_PASS="${RHSM_PASS}"
77ENV RHSM_USER="${RHSM_USER}"
88
99ADD register-sys.sh /usr/bin/
10-
1110RUN microdnf update --setopt=tsflags=nodocs && \
12- microdnf install -y --nodocs hostname subscription-manager findutils xz && \
13- microdnf clean all -y
14-
15- RUN echo "Skipping RHSM registration in public CI" && hostname
16-
11+ microdnf install -y --nodocs hostname subscription-manager
12+ RUN hostname; chmod 755 /usr/bin/register-sys.sh && /usr/bin/register-sys.sh
1713RUN microdnf update --setopt=tsflags=nodocs && \
18- microdnf install -y --nodocs iputils nmap-ncat udev findutils && \
14+ microdnf install -y --nodocs iputils nfs-utils rpcbind xfsprogs udev nc e2fsprogs e4fsprogs && \
1915 microdnf clean all -y
20-
2116RUN microdnf update --setopt=tsflags=nodocs && \
2217 microdnf install -y gcc libstdc++-devel \
2318 gcc-c++ fuse curl-devel \
2419 libxml2-devel openssl-devel mailcap \
25- git automake make && \
26- microdnf clean all -y
20+ git automake make
21+ RUN microdnf -y install fuse-devel
22+ RUN rm /usr/bin/register-sys.sh && subscription-manager unregister && subscription-manager clean
2723
28- RUN microdnf -y install fuse-devel && microdnf clean all -y
24+ RUN git clone https://github.com/s3fs-fuse/s3fs-fuse.git && cd s3fs-fuse && \
25+ git checkout v1.94 && \
26+ ./autogen.sh && ./configure --prefix=/usr/local --with-openssl && make && make install && \
27+ rm -rf /var/lib/apt/lists/*
2928
30- RUN rm /usr/bin/register-sys.sh && subscription-manager unregister && subscription-manager clean || true
29+ FROM registry.access.redhat.com/ubi8/ubi AS rclone-builder
30+ RUN yum install wget git gcc -y
3131
32- RUN git clone https://github.com/s3fs-fuse/s3fs-fuse.git && \
33- cd s3fs-fuse && \
34- git checkout v1.94 && \
35- ./autogen.sh && ./configure --prefix=/usr/local --with-openssl && \
36- make && make install && \
37- rm -rf /var/lib/apt/lists/*
32+ ENV ARCH=amd64
33+ ENV GO_VERSION=1.25.0
3834
35+ RUN echo $ARCH $GO_VERSION
3936
40- FROM registry.access.redhat.com/ubi8/ubi AS rclone-builder
41- RUN yum install wget git gcc -y
37+ RUN wget -q https://dl.google.com/go/go$GO_VERSION.linux-$ARCH.tar.gz && \
38+ tar -xf go$GO_VERSION.linux-$ARCH.tar.gz && \
39+ rm go$GO_VERSION.linux-$ARCH.tar.gz && \
40+ mv go /usr/local
4241
43- ENV ARCH=amd64
44- ENV GO_VERSION=1.25.0
45-
46- RUN echo $ARCH $GO_VERSION
47-
48- RUN wget -q https://dl.google.com/go/go$GO_VERSION.linux-$ARCH.tar.gz && \
49- tar -xf go$GO_VERSION.linux-$ARCH.tar.gz && \
50- rm go$GO_VERSION.linux-$ARCH.tar.gz && \
51- mv go /usr/local
52-
53- ENV GOROOT=/usr/local/go
54- ENV GOPATH=/go
55- ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH
56- ENV GOARCH=$ARCH
57- ENV GO111MODULE=on
42+ ENV GOROOT=/usr/local/go
43+ ENV GOPATH=/go
44+ ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH
45+ ENV GOARCH=$ARCH
46+ ENV GO111MODULE=on
5847
5948RUN git clone https://github.com/rclone/rclone.git && \
6049 cd rclone && git checkout tags/v1.69.0 && \
6150 go build && ./rclone version && \
6251 cp rclone /usr/local/bin/rclone
6352
64-
6553FROM registry.access.redhat.com/ubi8/ubi:latest
6654
6755# Default values
@@ -72,11 +60,8 @@ ARG build_date=unknown
7260LABEL description="IBM CSI Object Storage Plugin"
7361LABEL build-date=${build_date}
7462LABEL git-commit-id=${git_commit_id}
75-
76- RUN yum update -y && \
77- yum install -y fuse fuse-libs fuse3 fuse3-libs && \
78- yum clean all -y
63+ RUN yum update -y && yum install fuse fuse-libs fuse3 fuse3-libs -y
7964COPY --from=s3fs-builder /usr/local/bin/s3fs /usr/bin/s3fs
8065COPY --from=rclone-builder /usr/local/bin/rclone /usr/bin/rclone
8166COPY ibm-object-csi-driver ibm-object-csi-driver
82- ENTRYPOINT ["/ibm-object-csi-driver" ]
67+ ENTRYPOINT ["/ibm-object-csi-driver" ]
0 commit comments