Skip to content

Commit ae34504

Browse files
authored
Cleanup after pylustrequota build (#123)
Cleanup lustre source code after pylustrequota build since it's not needed and just consumes space in the image.
2 parents 25abb72 + 0430226 commit ae34504

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile.rocky8

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,8 @@ RUN if [ "${ENABLE_QUOTA}" = "True" ] \
17041704
&& cd ${MIG_ROOT}/mig/src/pylustrequota/lustre-release/lustre/utils \
17051705
&& make liblustreapi.la \
17061706
&& cd ${MIG_ROOT}/mig/src/pylustrequota \
1707-
&& python3 setup.py install; \
1707+
&& python3 -m pip install --use-pep517 . \
1708+
&& rm -rf ${MIG_ROOT}/mig/src/pylustrequota/lustre-release; \
17081709
fi; \
17091710
fi;
17101711
#------------------------- next stage -----------------------------#

Dockerfile.rocky9

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,8 @@ RUN if [ "${ENABLE_QUOTA}" = "True" ] \
15911591
&& cd ${MIG_ROOT}/mig/src/pylustrequota/lustre-release/lustre/utils \
15921592
&& make liblustreapi.la \
15931593
&& cd ${MIG_ROOT}/mig/src/pylustrequota \
1594-
&& python3 setup.py install; \
1594+
&& python3 -m pip install --use-pep517 . \
1595+
&& rm -rf ${MIG_ROOT}/mig/src/pylustrequota/lustre-release; \
15951596
fi; \
15961597
fi;
15971598
#------------------------- next stage -----------------------------#

0 commit comments

Comments
 (0)