diff --git a/Dockerfile b/Dockerfile index cf629f1..7394a4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,39 +5,39 @@ FROM registry.suse.com/bci/bci-base:15.5 as s3gw-base ADD https://download.opensuse.org/repositories/filesystems:/ceph:/s3gw/15.5/repodata/repomd.xml /tmp/repodata-s3gw.xml # Add OBS repository for additional dependencies necessary on Leap 15.5 RUN zypper ar \ - https://download.opensuse.org/repositories/filesystems:/ceph:/s3gw/15.5/ \ - s3gw-deps \ - && zypper --gpg-auto-import-keys ref + https://download.opensuse.org/repositories/filesystems:/ceph:/s3gw/15.5/ \ + s3gw-deps \ + && zypper --gpg-auto-import-keys ref # Try `zypper install` up to three times to workaround mirror timeouts RUN for i in {1..3} ; do zypper -n install \ - libsqlite3-0=3.43.1 \ - libblkid1 \ - libexpat1 \ - libtcmalloc4 \ - libfmt9 \ - liboath0 \ - libicu-suse65_1 \ - libthrift-0_16_0 \ - libboost_atomic1_80_0 \ - libboost_chrono1_80_0 \ - libboost_context1_80_0 \ - libboost_coroutine1_80_0 \ - libboost_date_time1_80_0 \ - libboost_filesystem1_80_0 \ - libboost_iostreams1_80_0 \ - libboost_program_options1_80_0 \ - libboost_random1_80_0 \ - libboost_regex1_80_0 \ - libboost_serialization1_80_0 \ - libboost_system1_80_0 \ - libboost_thread1_80_0 \ - && break ; done \ - && zypper clean --all \ - && mkdir -p \ - /radosgw/bin \ - /radosgw/lib \ - /data + libsqlite3-0=3.43.1 \ + libblkid1 \ + libexpat1 \ + libtcmalloc4 \ + libfmt9 \ + liboath0 \ + libicu-suse65_1 \ + libthrift-0_16_0 \ + libboost_atomic1_80_0 \ + libboost_chrono1_80_0 \ + libboost_context1_80_0 \ + libboost_coroutine1_80_0 \ + libboost_date_time1_80_0 \ + libboost_filesystem1_80_0 \ + libboost_iostreams1_80_0 \ + libboost_program_options1_80_0 \ + libboost_random1_80_0 \ + libboost_regex1_80_0 \ + libboost_serialization1_80_0 \ + libboost_system1_80_0 \ + libboost_thread1_80_0 \ + && break ; done \ + && zypper clean --all \ + && mkdir -p \ + /radosgw/bin \ + /radosgw/lib \ + /data ENV PATH=/radosgw/bin:$PATH ENV LD_LIBRARY_PATH=/radosgw/lib:$LD_LIBRARY_PATH @@ -54,106 +54,106 @@ ADD https://download.opensuse.org/update/leap/15.5/oss/repodata/repomd.xml /tmp/ ADD https://download.opensuse.org/update/leap/15.5/backports/repodata/repomd.xml /tmp/repodata-backports-update.xml ADD https://download.opensuse.org/update/leap/15.5/sle/repodata/repomd.xml /tmp/repodata-sle-update.xml RUN zypper ar \ - http://download.opensuse.org/distribution/leap/15.5/repo/oss/ repo-oss \ - && zypper ar http://download.opensuse.org/update/leap/15.5/oss/ repo-update \ - && zypper ar http://download.opensuse.org/update/leap/15.5/backports/ repo-backports-update \ - && zypper ar http://download.opensuse.org/update/leap/15.5/sle/ repo-sle-update \ - && zypper --gpg-auto-import-keys ref + http://download.opensuse.org/distribution/leap/15.5/repo/oss/ repo-oss \ + && zypper ar http://download.opensuse.org/update/leap/15.5/oss/ repo-update \ + && zypper ar http://download.opensuse.org/update/leap/15.5/backports/ repo-backports-update \ + && zypper ar http://download.opensuse.org/update/leap/15.5/sle/ repo-sle-update \ + && zypper --gpg-auto-import-keys ref # Try `zypper install` up to three times to workaround mirror timeouts RUN for i in {1..3} ; do zypper -n install --no-recommends \ - 'cmake>3.5' \ - 'fmt-devel>=6.2.1' \ - 'gperftools-devel>=2.4' \ - 'libblkid-devel>=2.17' \ - 'liblz4-devel>=1.7' \ - 'libthrift-devel>=0.13.0' \ - 'pkgconfig(libudev)' \ - 'pkgconfig(systemd)' \ - 'pkgconfig(udev)' \ - babeltrace-devel \ - binutils \ - ccache \ - cmake \ - cpp12 \ - cryptsetup-devel \ - cunit-devel \ - fdupes \ - fuse-devel \ - gcc-c++ \ - gcc12 \ - gcc12-c++ \ - git \ - gperf \ - gtest \ - gmock \ - jq \ - keyutils-devel \ - libaio-devel \ - libasan6 \ - libboost_atomic1_80_0-devel \ - libboost_context1_80_0-devel \ - libboost_coroutine1_80_0-devel \ - libboost_filesystem1_80_0-devel \ - libboost_iostreams1_80_0-devel \ - libboost_program_options1_80_0-devel \ - libboost_python-py3-1_80_0-devel \ - libboost_random1_80_0-devel \ - libboost_regex1_80_0-devel \ - libboost_system1_80_0-devel \ - libboost_thread1_80_0-devel \ - libbz2-devel \ - libcap-devel \ - libcap-ng-devel \ - libcurl-devel \ - libexpat-devel \ - libicu-devel \ - libnl3-devel \ - liboath-devel \ - libopenssl-devel \ - libpmem-devel \ - libpmemobj-devel \ - librabbitmq-devel \ - librdkafka-devel \ - libstdc++6-devel-gcc12 \ - libtool \ - libtsan0 \ - libxml2-devel \ - lttng-ust-devel \ - lua53-devel \ - lua53-luarocks \ - make \ - memory-constraints \ - mozilla-nss-devel \ - nasm \ - ncurses-devel \ - net-tools \ - ninja \ - ninja \ - openldap2-devel \ - patch \ - perl \ - pkgconfig \ - procps \ - python3 \ - python3-Cython \ - python3-PrettyTable \ - python3-PyYAML \ - python3-Sphinx \ - python3-devel \ - python3-setuptools \ - rdma-core-devel \ - re2-devel \ - rpm-build \ - snappy-devel \ - sqlite-devel \ - systemd-rpm-macros \ - systemd-rpm-macros \ - valgrind-devel \ - xfsprogs-devel \ - xmlstarlet \ - && break ; done \ - && zypper clean --all + 'cmake>3.5' \ + 'fmt-devel>=6.2.1' \ + 'gperftools-devel>=2.4' \ + 'libblkid-devel>=2.17' \ + 'liblz4-devel>=1.7' \ + 'libthrift-devel>=0.13.0' \ + 'pkgconfig(libudev)' \ + 'pkgconfig(systemd)' \ + 'pkgconfig(udev)' \ + babeltrace-devel \ + binutils \ + ccache \ + cmake \ + cpp12 \ + cryptsetup-devel \ + cunit-devel \ + fdupes \ + fuse-devel \ + gcc-c++ \ + gcc12 \ + gcc12-c++ \ + git \ + gperf \ + gtest \ + gmock \ + jq \ + keyutils-devel \ + libaio-devel \ + libasan6 \ + libboost_atomic1_80_0-devel \ + libboost_context1_80_0-devel \ + libboost_coroutine1_80_0-devel \ + libboost_filesystem1_80_0-devel \ + libboost_iostreams1_80_0-devel \ + libboost_program_options1_80_0-devel \ + libboost_python-py3-1_80_0-devel \ + libboost_random1_80_0-devel \ + libboost_regex1_80_0-devel \ + libboost_system1_80_0-devel \ + libboost_thread1_80_0-devel \ + libbz2-devel \ + libcap-devel \ + libcap-ng-devel \ + libcurl-devel \ + libexpat-devel \ + libicu-devel \ + libnl3-devel \ + liboath-devel \ + libopenssl-devel \ + libpmem-devel \ + libpmemobj-devel \ + librabbitmq-devel \ + librdkafka-devel \ + libstdc++6-devel-gcc12 \ + libtool \ + libtsan0 \ + libxml2-devel \ + lttng-ust-devel \ + lua53-devel \ + lua53-luarocks \ + make \ + memory-constraints \ + mozilla-nss-devel \ + nasm \ + ncurses-devel \ + net-tools \ + ninja \ + ninja \ + openldap2-devel \ + patch \ + perl \ + pkgconfig \ + procps \ + python3 \ + python3-Cython \ + python3-PrettyTable \ + python3-PyYAML \ + python3-Sphinx \ + python3-devel \ + python3-setuptools \ + rdma-core-devel \ + re2-devel \ + rpm-build \ + snappy-devel \ + sqlite-devel \ + systemd-rpm-macros \ + systemd-rpm-macros \ + valgrind-devel \ + xfsprogs-devel \ + xmlstarlet \ + && break ; done \ + && zypper clean --all COPY $SRC_CEPH_DIR /srv/ceph @@ -166,19 +166,19 @@ FROM s3gw-base as s3gw-unittests # Try `zypper install` up to three times to workaround mirror timeouts RUN for i in {1..3} ; do zypper -n install --no-recommends \ - gtest \ - gmock \ - && break ; done \ - && zypper clean --all + gtest \ + gmock \ + && break ; done \ + && zypper clean --all COPY --from=buildenv /srv/ceph/build/bin/unittest_rgw_* /radosgw/bin/ COPY --from=buildenv [ \ - "/srv/ceph/build/lib/librados.so", \ - "/srv/ceph/build/lib/librados.so.2", \ - "/srv/ceph/build/lib/librados.so.2.0.0", \ - "/srv/ceph/build/lib/libceph-common.so", \ - "/srv/ceph/build/lib/libceph-common.so.2", \ - "/radosgw/lib/" ] + "/srv/ceph/build/lib/librados.so", \ + "/srv/ceph/build/lib/librados.so.2", \ + "/srv/ceph/build/lib/librados.so.2.0.0", \ + "/srv/ceph/build/lib/libceph-common.so", \ + "/srv/ceph/build/lib/libceph-common.so.2", \ + "/radosgw/lib/" ] ENTRYPOINT [ "bin/bash", "-x", "-c" ] CMD [ "find /radosgw/bin -name \"unittest_rgw_*\" -print0 | xargs -0 -n1 bash -ec"] @@ -199,20 +199,20 @@ VOLUME ["/data"] COPY --from=buildenv /srv/ceph/build/bin/radosgw /radosgw/bin COPY --from=buildenv [ \ - "/srv/ceph/build/lib/librados.so", \ - "/srv/ceph/build/lib/librados.so.2", \ - "/srv/ceph/build/lib/librados.so.2.0.0", \ - "/srv/ceph/build/lib/libceph-common.so", \ - "/srv/ceph/build/lib/libceph-common.so.2", \ - "/radosgw/lib/" ] + "/srv/ceph/build/lib/librados.so", \ + "/srv/ceph/build/lib/librados.so.2", \ + "/srv/ceph/build/lib/librados.so.2.0.0", \ + "/srv/ceph/build/lib/libceph-common.so", \ + "/srv/ceph/build/lib/libceph-common.so.2", \ + "/radosgw/lib/" ] EXPOSE 7480 EXPOSE 7481 ENTRYPOINT [ "radosgw", "-d", \ - "--no-mon-config", \ - "--id", "${ID}", \ - "--rgw-data", "/data/", \ - "--run-dir", "/run/", \ - "--rgw-sfs-data-path", "/data" ] + "--no-mon-config", \ + "--id", "${ID}", \ + "--rgw-data", "/data/", \ + "--run-dir", "/run/", \ + "--rgw-sfs-data-path", "/data" ] CMD [ "--rgw-backend-store", "sfs", "--debug-rgw", "1" ]