Skip to content

Commit

Permalink
Update README with multi platform feature
Browse files Browse the repository at this point in the history
Signed-off-by: alexandreh2ag <[email protected]>
  • Loading branch information
alexandreh2ag committed May 8, 2024
1 parent ee4f9ac commit ae83a4c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ Flags:
sudo apt install -y qemu-user-static binfmt-support
```

### Docker multiple platform

For build an image for a different platform or multiples platform you must enable feature [containerd-snapshotter](https://docs.docker.com/storage/containerd/).

## Development

* Generate mock:
Expand Down
7 changes: 7 additions & 0 deletions assets/data/tmpl/image-readme.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
- No children available
{{- end}}

## Platforms
{{- range $index, $platform := .Platforms }}
- {{ $platform }}
{{- else}}
- No platform defined
{{- end}}

## Env Var
{{- if .GetAllEnvVar }}
| Var Name | Value |
Expand Down
4 changes: 4 additions & 0 deletions doc/examples/mib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ packages:
php: 7.0
mysql: 5.6
nginx: ''

platforms:
- linux/arm64/v8
- linux/amd64

0 comments on commit ae83a4c

Please sign in to comment.