Skip to content

Commit

Permalink
update readme with new examples
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit b099c9c)
Signed-off-by: Tibor Vass <tibor@docker.com>
  • Loading branch information
tonistiigi authored and Tibor Vass committed Apr 6, 2021
1 parent 4f54a41 commit cccb4a0
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,31 @@ Development

`docker/cli` is developed using Docker.

Build a linux binary:
Build CLI from source:

```
$ make -f docker.Makefile binary
$ docker buildx bake
```

Build binaries for all supported platforms:

```
$ make -f docker.Makefile cross
$ docker buildx bake cross
```

Build for a specific platform:

```
$ docker buildx bake --set binary.platform=linux/arm64
```

Build dynamic binary for glibc or musl:

```
$ USE_GLIBC=1 docker buildx bake dynbinary
```


Run all linting:

```
Expand All @@ -44,12 +57,6 @@ Start an interactive development environment:
$ make -f docker.Makefile shell
```

In the development environment you can run many tasks, including build binaries:

```
$ make binary
```

Legal
=====
*Brought to you courtesy of our legal counsel. For more context,
Expand Down

0 comments on commit cccb4a0

Please sign in to comment.