Skip to content

Commit aae88d3

Browse files
Prachi Shivanand AnurePrachi Shivanand Anure
authored andcommitted
Revert Dockerfile changes
1 parent ec9472f commit aae88d3

File tree

1 file changed

+26
-41
lines changed

1 file changed

+26
-41
lines changed

Dockerfile

Lines changed: 26 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7,61 +7,49 @@ ENV RHSM_PASS="${RHSM_PASS}"
77
ENV RHSM_USER="${RHSM_USER}"
88

99
ADD register-sys.sh /usr/bin/
10-
1110
RUN 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
1713
RUN 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-
2116
RUN 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

5948
RUN 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-
6553
FROM registry.access.redhat.com/ubi8/ubi:latest
6654

6755
# Default values
@@ -72,11 +60,8 @@ ARG build_date=unknown
7260
LABEL description="IBM CSI Object Storage Plugin"
7361
LABEL build-date=${build_date}
7462
LABEL 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
7964
COPY --from=s3fs-builder /usr/local/bin/s3fs /usr/bin/s3fs
8065
COPY --from=rclone-builder /usr/local/bin/rclone /usr/bin/rclone
8166
COPY ibm-object-csi-driver ibm-object-csi-driver
82-
ENTRYPOINT ["/ibm-object-csi-driver"]
67+
ENTRYPOINT ["/ibm-object-csi-driver"]

0 commit comments

Comments
 (0)