Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OCI Image diagram #938

Open
abitrolly opened this issue Aug 19, 2022 · 2 comments
Open

Add OCI Image diagram #938

abitrolly opened this issue Aug 19, 2022 · 2 comments

Comments

@abitrolly
Copy link

abitrolly commented Aug 19, 2022

Diagrams are awesome. My attempt at drawing OCI image structure hit the bug that it is impossible to set node order in mermaid mermaid-js/mermaid#3253 Otherwise it looks like this.

flowchart LR
  subgraph image.tar
    direction LR
    subgraph /
      direction LR
      OL["fa:fa-file oci-layout"]
      OX["fa:fa-file index.json"]
      BL["blobs/"]
    end
    sha256/358...
    BL --> sha256/358...
    BL --> sha256/4b0...
    BL --> sha256/796...
  end
Loading

mermaid.live for enhancements.

@vbatts
Copy link
Member

vbatts commented Feb 1, 2023

oh wait. You did this in markdown and it renders like that on Github?
I wonder if that can also export to *.png?

@sudo-bmitch
Copy link
Contributor

We've got some pictures in the img directory. The current method for building with code uses the dot file. There's a makefile entry for applying these.

https://github.com/opencontainers/image-spec/blob/main/Makefile#L98

I'm fine with changing methods to generate pictures from code/text, but we should consolidate on a single method for maintainability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants