You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: static/README.md
+15-22Lines changed: 15 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,14 @@
3
3
Static packages can be built from root directory with the following syntax
4
4
5
5
```console
6
-
make TARGETPLATFORM=${TARGETOS}/${TARGETARCH}/${TARGETVARIANT} static
6
+
make STATICOS=${STATICOS} STATICOS=${STATICARCH} static
7
7
```
8
8
9
-
Format of `TARGETOS`, `TARGETARCH`, `TARGETVARIANT` is the same as the [platform ARGs in the global scope](https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope)
10
-
for a Dockerfile like `linux/arm/v7`.
9
+
Format of `STATICOS`, `STATICARCH` should respect the current folder structure on
10
+
[download.docker.com](https://download-stage.docker.com/linux/static/stable/) like
11
+
`STATICOS=linux STATICARCH=armhf`.
11
12
12
-
Artifacts will be located in `build` under the following directory structure:
13
-
`build/$os/$arch/$variant/` or `build/$os/$arch/` if there is no variant being
14
-
used.
13
+
Artifacts will be located in `build` under `build/$STATICOS/$STATICARCH/`.
15
14
16
15
### Building from local source
17
16
@@ -22,34 +21,28 @@ building packages
22
21
*`CLI_DIR` -> Specifies the directory where the cli code is located, eg: `$GOPATH/src/github.com/docker/cli`
23
22
24
23
```shell
25
-
make ENGINE_DIR=/path/to/engine CLI_DIR=/path/to/cli TARGETPLATFORM=linux/amd64 static
24
+
make ENGINE_DIR=/path/to/engine CLI_DIR=/path/to/cli STATICOS=linux STATICARCH=x86_64 static
26
25
```
27
26
28
27
## Supported platforms
29
28
30
29
Here is a list of platforms that are currently supported:
31
30
32
31
```console
33
-
make TARGETPLATFORM=linux/amd64 static
34
-
make TARGETPLATFORM=linux/arm/v6 static
35
-
make TARGETPLATFORM=linux/arm/v7 static
36
-
make TARGETPLATFORM=linux/arm64 static
37
-
make TARGETPLATFORM=darwin/amd64 static
38
-
make TARGETPLATFORM=darwin/arm64 static
39
-
make TARGETPLATFORM=windows/amd64 static
32
+
make STATICOS=linux STATICARCH=x86_64 static
33
+
make STATICOS=linux STATICARCH=armel static
34
+
make STATICOS=linux STATICARCH=armhf static
35
+
make STATICOS=linux STATICARCH=aarch64 static
36
+
make STATICOS=darwin STATICARCH=x86_64 static
37
+
make STATICOS=darwin STATICARCH=aarch64 static
38
+
make STATICOS=windows STATICARCH=x86_64 static
40
39
```
41
40
42
41
> note: `darwin` only packages the docker cli and plugins.
43
42
44
43
But you can test building against whatever platform you want like:
45
44
46
45
```console
47
-
make TARGETPLATFORM=linux/riscv64 static
48
-
make TARGETPLATFORM=linux/s390x static
49
-
```
50
-
51
-
Or the current one matching your host if not defined:
0 commit comments