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: build.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
## Introduction
10
10
11
11
Compose specification is a platform-neutral way to define multi-container applications. A Compose implementation
12
-
focussing on development use-case to run application on local machine will obviously also support (re)building
12
+
focusing on development use-case to run application on local machine will obviously also support (re)building
13
13
application from sources. The Compose Build specification allows to define the build process within a Compose file
14
14
in a portable way.
15
15
@@ -73,9 +73,9 @@ services:
73
73
74
74
When used to build service images from source, such a Compose file will create three docker images:
75
75
76
-
* `awesome/webapp` docker image is build using `webapp` sub-directory within Compose file parent folder as docker build context. Lack of a `Dockerfile` within this folder will throw an error.
77
-
* `awesome/database` docker image is build using `backend` sub-directory within Compose file parent folder. `backend.Dockerfile` file is used to define build steps, this file is searched relative to context path, which means for this sample `..` will resolve to Compose file parent folder, so `backend.Dockerfile` is a sibling file.
78
-
* a docker image is build using `custom` directory within user's HOME as docker context. Compose implementation warn user about non-portable path used to build image.
76
+
* `awesome/webapp` docker image is built using `webapp` sub-directory within Compose file parent folder as docker build context. Lack of a `Dockerfile` within this folder will throw an error.
77
+
* `awesome/database` docker image is built using `backend` sub-directory within Compose file parent folder. `backend.Dockerfile` file is used to define build steps, this file is searched relative to context path, which means for this sample `..` will resolve to Compose file parent folder, so `backend.Dockerfile` is a sibling file.
78
+
* a docker image is built using `custom` directory within user's HOME as docker context. Compose implementation warn user about non-portable path used to build image.
79
79
80
80
On push, both `awesome/webapp` and `awesome/database` docker images are pushed to (default) registry. `custom` service image is skipped as no `Image` attribute is set and user is warned about this missing attribute.
81
81
@@ -101,7 +101,7 @@ Alternatively `build` can be an object with fields defined as follow
101
101
102
102
When the value supplied is a relative path, it MUST be interpreted as relative to the location of the Compose file.
103
103
Compose implementations MUST warn user about absolute path used to define build context as those prevent Compose file
104
-
for being portable.
104
+
from being portable.
105
105
106
106
```yml
107
107
build:
@@ -112,7 +112,7 @@ build:
112
112
113
113
`dockerfile`allows to set an alternate Dockerfile. A relative path MUST be resolved from the build context.
114
114
Compose implementations MUST warn user about absolute path used to define Dockerfile as those prevent Compose file
115
-
for being portable.
115
+
from being portable.
116
116
117
117
```yml
118
118
build:
@@ -313,11 +313,11 @@ build:
313
313
```
314
314
315
315
### secrets
316
-
`secrets`grants access to sensitive data defined by [secrets](secrets) on a per-service build basis. Two
316
+
`secrets`grants access to sensitive data defined by [secrets](spec.md#secrets) on a per-service build basis. Two
317
317
different syntax variants are supported: the short syntax and the long syntax.
318
318
319
319
Compose implementations MUST report an error if the secret isn't defined in the
320
-
[`secrets`](#secrets-top-level-element) section of this Compose file.
320
+
[`secrets`](spec.md#secrets-top-level-element) section of this Compose file.
0 commit comments