Skip to content

Commit

Permalink
Add support for bind mounts (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhoefler committed Jun 26, 2023
1 parent 787b3b3 commit fdc61e4
Show file tree
Hide file tree
Showing 11 changed files with 223 additions and 192 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,16 @@ build:

build-linux-amd64:
GOOS=linux GOARCH=amd64 go build $(FLAGS)

example-images:
# Change to the root directory of the project.
cd $(git rev-parse --show-toplevel)

go run . -f examples/dockerfiles/Dockerfile --legend -o svg \
&& mv Dockerfile.svg examples/images/Dockerfile-legend.svg

go run . -f examples/dockerfiles/Dockerfile --layers -o svg \
&& mv Dockerfile.svg examples/images/Dockerfile-layers.svg

go run . -f examples/dockerfiles/Dockerfile.large -c -n 0.3 -o svg -u 4 \
&& mv Dockerfile.svg examples/images/Dockerfile-large.svg
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The edges of the build graph represent:
(with a solid line and a full arrow head)
- `COPY --from=...` dependencies
(with a dashed line and an empty arrow head)
- `RUN --mount=type=cache,from=...` dependencies
- `RUN --mount=(.*)from=...` dependencies
(with a dotted line and an empty diamond arrow head)

You can add an optional legend to the graph and change the output format and resolution.
Expand Down
13 changes: 0 additions & 13 deletions examples/helpers/update_example_images.sh

This file was deleted.

154 changes: 77 additions & 77 deletions examples/images/Dockerfile-large.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 44 additions & 44 deletions examples/images/Dockerfile-layers.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fdc61e4

Please sign in to comment.