From 4abf420546aacae7cd4a15d13cb55fcc30a384a1 Mon Sep 17 00:00:00 2001 From: Neha Agarwal Date: Wed, 30 Aug 2023 21:46:22 -0700 Subject: [PATCH 1/2] Add cleanup example in README --- build-in-container/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-in-container/README.md b/build-in-container/README.md index b2a879b..f534d0c 100644 --- a/build-in-container/README.md +++ b/build-in-container/README.md @@ -41,6 +41,9 @@ ls out/RPMS/x86_64/ # Run the tools manually make build-packages SRPM_PACK_LIST="hello_world_demo" -j$(nproc) +# Clean up Mariner workspace, and docker image and container +./CBL-MarinerTutorials/mariner-docker-builder.sh --mariner_dir /path/to/CBL-Mariner -c + # Use optional arguments ## Provide path to Mariner directory. If this option is not used, the current directory is treated as Mariner directory ./CBL-MarinerTutorials/mariner-docker-builder.sh -i --mariner_dir /path/to/CBL-Mariner/ From 05e0eb24220f1c335e97fedad7d1a95a7185fb30 Mon Sep 17 00:00:00 2001 From: Neha Agarwal Date: Wed, 30 Aug 2023 22:00:31 -0700 Subject: [PATCH 2/2] Add sudo to example --- build-in-container/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-in-container/README.md b/build-in-container/README.md index f534d0c..181158f 100644 --- a/build-in-container/README.md +++ b/build-in-container/README.md @@ -41,8 +41,8 @@ ls out/RPMS/x86_64/ # Run the tools manually make build-packages SRPM_PACK_LIST="hello_world_demo" -j$(nproc) -# Clean up Mariner workspace, and docker image and container -./CBL-MarinerTutorials/mariner-docker-builder.sh --mariner_dir /path/to/CBL-Mariner -c +# Clean up Mariner workspace, and docker image and container. This requires root privileges +sudo ./CBL-MarinerTutorials/mariner-docker-builder.sh --mariner_dir /path/to/CBL-Mariner -c # Use optional arguments ## Provide path to Mariner directory. If this option is not used, the current directory is treated as Mariner directory