From eb2d5449068829042f8c59a68579276535424b12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Fa=C4=8Dko?= Date: Wed, 17 Jul 2024 15:16:28 +0200 Subject: [PATCH] bugfix: build compressor --- README.md | 2 +- examples/project/compressor/build-in-container.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index efc41d6..7e6307e 100644 --- a/README.md +++ b/README.md @@ -449,7 +449,7 @@ This creates the image rootfs in the `tmp/root` directory and generators in `tmp ```bash ./examples/project/compressor/build-in-container.sh $containerizer $PWD/tmp/root $PWD/tmp/output/generators -./examples/project/compressor/build/output/compressor +./examples/project/compressor/build/compressor ``` We can also invoke the meta-manager directly without the `run.sh` scripts and then we would not have to move the directories as we could specify the output directories directly. The only problem with this method is that the containerized meta-manager needs to have path translations for the containerizer set for the root directory and that requires changing the config.json file. The native version doesn't have this problem as it resides in the same mount namespace as the containerizer. diff --git a/examples/project/compressor/build-in-container.sh b/examples/project/compressor/build-in-container.sh index bf5c54b..889cb69 100755 --- a/examples/project/compressor/build-in-container.sh +++ b/examples/project/compressor/build-in-container.sh @@ -3,6 +3,8 @@ if [ -z "$1" ] || ([ "$1" != "docker" ] && [ "$1" != "podman" ]); then exit 1 fi +project_root="$PWD/examples/project/compressor" + mkdir -p "$project_root/build" "$1" run --rm \