Skip to content

Commit

Permalink
ci: unittest container
Browse files Browse the repository at this point in the history
Add gtest/gmock to the runtime container for executing the unittests.
If the unittests are built with system gtest/gmock instead of linking it
in statically, those libraries need to be supplied in the runtime
container image for executing the unittests

Signed-off-by: Moritz Röhrich <[email protected]>
  • Loading branch information
m-ildefons committed Aug 2, 2023
1 parent 37d2c90 commit 0a3b9b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ RUN /srv/ceph/qa/rgw/store/sfs/build-radosgw.sh

FROM s3gw-base as s3gw-unittests

RUN zypper -n install --no-recommends \
gtest \
gmock \
&& zypper clean --all

COPY --from=buildenv /srv/ceph/build/bin/unittest_rgw_* /radosgw/bin/
COPY --from=buildenv [ \
"/srv/ceph/build/lib/librados.so", \
Expand Down

0 comments on commit 0a3b9b5

Please sign in to comment.