Skip to content

Commit

Permalink
bugfix: build compressor
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-facko committed Jul 17, 2024
1 parent de20a91 commit eb2d544
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 2 additions & 0 deletions examples/project/compressor/build-in-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit eb2d544

Please sign in to comment.