Skip to content

Commit

Permalink
Separate build.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AlienKevin committed Oct 10, 2023
1 parent 52d6c3a commit c5b9b09
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 30 deletions.
50 changes: 20 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,24 @@ make main
python plot.py
```

4. Export the plots to host machine
4. Export results to host machine

a. First get the name of the container running under the NAMES column:
```
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e705b63f2247 arborist "/bin/bash" 37 minutes ago Up 37 minutes peaceful_hertz
```
Here the name is `peaceful_hertz`.

b. Then, copy the generated figures from the container to your host machine.
Here, we show how to copy the figures to the Downloads folder.
```
docker cp peaceful_hertz:/workspace/figures ~/Downloads/figures
```

c. You can also copy the generated result spread sheets to your host machine for inspection.
```
docker cp peaceful_hertz:/workspace/benchmark_summary.csv ~/Downloads/benchmark_summary.csv
```

First get the name of the container running under the NAMES column:
```
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e705b63f2247 arborist "/bin/bash" 37 minutes ago Up 37 minutes peaceful_hertz
```
Here the name is `peaceful_hertz`.

Then, copy the generated figures from the container to your host machine.
Here, we show how to copy the figures to the Downloads folder.
```
docker cp peaceful_hertz:/workspace/figures ~/Downloads/figures
```

# Zip benchmarks for Docker
```
tar -c --use-compress-program=pigz -f test.tar.gz tests
```

# Building Docker for Multi-Platform

```
docker buildx build --load --platform linux/amd64,linux/arm64 -t arborist .
```

# Build for mac
```
docker buildx build --load --platform linux/arm64 -t arborist .
```
15 changes: 15 additions & 0 deletions build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Zip benchmarks for Docker
```
tar -c --use-compress-program=pigz -f test.tar.gz tests
```

# Building Docker for Multi-Platform

```
docker buildx build --load --platform linux/amd64,linux/arm64 -t arborist .
```

# Build for mac
```
docker buildx build --load --platform linux/arm64 -t arborist .
```

0 comments on commit c5b9b09

Please sign in to comment.