[LU-14189] docker example to build lustre Created: 07/Dec/20  Updated: 26/Apr/23  Resolved: 26/Apr/23

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0

Type: Improvement Priority: Trivial
Reporter: Alex Zhuravlev Assignee: Alex Zhuravlev
Resolution: Fixed Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   

new distros can be a headache to build Lustre on, like Fedora/gcc10.
sometimes it's just much simpler to build using specific (old) gcc than trying to fix all the warnings and false errors new gcc complains about.
and docker/podman is a trivial way to do so:


  1. to build the image
    $podman build -t centos8-build .
  2. to build Lustre:
    $ podman run -it
    --mount type=bind,source=<path-to-kernel>,target=/tmp/kernel \
    --mount type=bind,source=<path-to-lustre>,target=/tmp/lustre \
    centos8-build /bin/bash -c "cd /tmp/lustre; sh autogen.sh; \
    ./configure --with-linux=/tmp/kernel/ \
    --with-linux-obj=/tmp/kernel/ && make"


 Comments   
Comment by Gerrit Updater [ 08/Dec/20 ]

Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/40900
Subject: LU-14189 contrib: docker example to build Lustre
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 82168c737282afda27444a9bcff7061f8a13f1df

Comment by Gerrit Updater [ 26/Apr/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/40900/
Subject: LU-14189 contrib: docker example to build Lustre
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 07a303c971f2e2891173bd5bf1beba923428f550

Comment by Peter Jones [ 26/Apr/23 ]

Landed for 2.16

Generated at Sat Feb 10 03:07:36 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.