-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compile on host and copy the release-with-debug to container during b…
…uild This is so as to avoid OOM during builds on MacOS.
- Loading branch information
Showing
3 changed files
with
21 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
build-bytehound: | ||
docker build --target bytehound -f Dockerfile.profile -t splitgraph/bytehound . | ||
DOCKER_BUILDKIT=1 docker build --target bytehound -f Dockerfile.profile -t splitgraph/bytehound . | ||
|
||
# TODO: generailze to support amd64 | ||
build-profiler: | ||
docker build -f Dockerfile.profile -t splitgraph/seafowl:profile .. | ||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc | ||
cargo build --target aarch64-unknown-linux-gnu --profile release-with-debug | ||
DOCKER_BUILDKIT=1 docker build -f Dockerfile.profile -t splitgraph/seafowl:profile .. | ||
|
||
profile: | ||
docker run \ | ||
-p 8080:8080 -p 47470:47470 \ | ||
-v .:/seafowl/profiles \ | ||
-v .:/profiles \ | ||
-v `realpath ../seafowl.toml`:/seafowl.toml \ | ||
-v `realpath ../../seafowl-data`:/seafowl-data \ | ||
splitgraph/seafowl:profile -c /seafowl.toml | ||
|
||
view: | ||
docker run -p 8888:8888 -v .:/profiles -w /profiles splitgraph/bytehound \ | ||
/bytehound/target/release/bytehound server -i 0.0.0.0 -p 8888 memory-profiling_* | ||
view *files='memory-profiling_*': | ||
docker run -p 9999:9999 -v .:/profiles -w /profiles \splitgraph/bytehound \ | ||
/bytehound/target/release/bytehound server -i 0.0.0.0 -p 9999 {{files}} | ||
|
||
clean: | ||
rm -rf memory-profiling_* |