Skip to content

Commit

Permalink
Merge pull request #73 from vbatts/base64-images
Browse files Browse the repository at this point in the history
inline images: media-types.png is inline
  • Loading branch information
vbatts committed May 23, 2016
2 parents 995ae0b + ec271e8 commit ab86716
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ DOC_FILES := \
code-of-conduct.md \
project.md \
media-types.md \
inline-png-media-types.md \
manifest.md \
serialization.md

Expand Down Expand Up @@ -79,11 +80,12 @@ lint:
test:
go test -race ./...

media-types.png: media-types.dot

%.png: %.dot
dot -Tpng $^ > $@

inline-png-%.md: %.png
@printf '<img src="data:image/png;base64,%s" alt="$*"/>\n' "$(shell base64 $^)" > $@

.PHONY: \
validate-examples \
oci-image-tool \
Expand Down
2 changes: 0 additions & 2 deletions media-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,4 @@ This section shows where the OCI Image Specification is compatible with formats

The following figure shows how the above media types reference each other:

![Media Types](media-types.png)

A reference is defined as the target content digest, as defined by the [Registry V2 HTTP API Specificiation](https://docs.docker.com/registry/spec/api/#digest-parameter). The manifest list being a "fat manifest" references one or more image manifests per target platform. An image manifest references exactly one target configuration and possibly many layers.

0 comments on commit ab86716

Please sign in to comment.