From 71cd38b1a87b346941403c842e96008c704ba1f7 Mon Sep 17 00:00:00 2001 From: Huamin Chen Date: Tue, 19 Dec 2023 10:16:29 -0500 Subject: [PATCH] update rpmbuild container build path (#1135) Signed-off-by: Huamin Chen --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b2c077d2fe..c54cf5b18a 100644 --- a/Makefile +++ b/Makefile @@ -147,7 +147,7 @@ build_container_rpm: containerized_build_rpm: @mkdir -p $(base_dir)/$(OUTPUT_DIR)/rpmbuild $(CTR_CMD) run --rm \ - -v $(base_dir):/kepler:Z -w /kepler -v $(base_dir)/$(OUTPUT_DIR)/rpmbuild:/root/rpmbuild \ + -v $(base_dir):/kepler:Z -w /kepler -v $(base_dir)/$(OUTPUT_DIR)/rpmbuild:/opt/app-root/src/rpmbuild \ -e _VERSION_=${_VERSION_} -e _RELEASE_=${_RELEASE_} -e _ARCH_=${_ARCH_} \ -e _TIMESTAMP_="$(shell date +"%a %b %d %Y")" -e _COMMITTER_=${_COMMITTER_} -e _CHANGELOG_=${_CHANGELOG_} \ -e PATH=$(PATH):/usr/local/go/bin \ @@ -157,7 +157,7 @@ containerized_build_rpm: containerized_build_container_rpm: @mkdir -p $(base_dir)/$(OUTPUT_DIR)/rpmbuild $(CTR_CMD) run --rm \ - -v $(base_dir):/kepler:Z -w /kepler -v $(base_dir)/$(OUTPUT_DIR)/rpmbuild:/root/rpmbuild \ + -v $(base_dir):/kepler:Z -w /kepler -v $(base_dir)/$(OUTPUT_DIR)/rpmbuild:/opt/app-root/src/rpmbuild \ -e _VERSION_=${_VERSION_} -e _RELEASE_=${_RELEASE_} \ $(BUILDER_IMAGE) \ make build_container_rpm