File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,14 +23,27 @@ RUN if [ "$TARGETPLATFORM" != "linux/amd64" ] && [ "$TARGETPLATFORM" != "linux/a
2323ENV ARCH ${TARGETPLATFORM#linux/}
2424
2525RUN zypper -n addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Factory/system:snappy.repo && \
26- zypper -n addrepo --refresh https://download.opensuse.org/repositories/network:utilities/16.0/network:utilities.repo && \
2726 zypper --gpg-auto-import-keys ref && \
2827 zypper -n ref && \
2928 zypper update -y
3029
3130RUN zypper -n install kmod curl wget nfs-client nfs4-acl-tools fuse \
3231 librdmacm1 librdmacm-utils libibverbs perl-Config-General libaio-devel sg3_utils \
33- iputils telnet iperf qemu-tools iproute2 e2fsprogs e2fsprogs-devel xfsprogs xfsprogs-devel
32+ iputils telnet qemu-tools iproute2 e2fsprogs e2fsprogs-devel xfsprogs xfsprogs-devel
33+
34+ RUN if [ "$ARCH" = "amd64" ]; then \
35+ REPO_URL="https://download.opensuse.org/repositories/network:utilities/openSUSE_Factory/network:utilities.repo" ; \
36+ elif [ "$ARCH" = "arm64" ]; then \
37+ REPO_URL="https://download.opensuse.org/repositories/network:utilities/openSUSE_Factory_ARM/network:utilities.repo" ; \
38+ else \
39+ echo "Unsupported architecture: $ARCH" && exit 1; \
40+ fi && \
41+ zypper -n addrepo --refresh "$REPO_URL" && \
42+ zypper --gpg-auto-import-keys ref && \
43+ zypper -n ref && \
44+ zypper update -y
45+
46+ RUN zypper -n install iperf
3447
3548COPY --from=builder /app/bin/backing-image-manager-${ARCH} /usr/local/bin/backing-image-manager
3649RUN chmod +x /usr/local/bin/backing-image-manager
You can’t perform that action at this time.
0 commit comments