From 97d5cb7f15ea068b296c98ec68dbc4ee129a0ea8 Mon Sep 17 00:00:00 2001 From: Christophe Haen Date: Wed, 18 Oct 2023 03:12:38 +0200 Subject: [PATCH] Hackily clean cs-mount --- run_demo.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run_demo.sh b/run_demo.sh index 44cc56a..ddb927c 100755 --- a/run_demo.sh +++ b/run_demo.sh @@ -228,6 +228,9 @@ if [ ${#pkg_dirs[@]} -gt 0 ]; then done fi # Add the mount for the CS +# hack to cleanup the cs-mount content owned by somebody else +# (long term solution is proper security policy in the cluster) +docker run -v "${demo_dir}/cs-mount":/cs-mount busybox:latest rm -rf /cs-mount/initialRepo rm -rf "${demo_dir}/cs-mount" mkdir -p "${demo_dir}/cs-mount" # Make sure the directory is writable by the container