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
RUN sudo su -c "cd /usr; curl -L https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION}/${BUILDKIT_FILENAME} | tar xvz" && \
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+14-4
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Here is a list of dependencies and tools:
31
31
32
32
## Locally
33
33
34
-
We ship a shell script [dazzle-up.sh](dazzle-up.sh) that can be used to build the images locally. See the following sub sections for usage.
34
+
We ship a shell script [build-all.sh](build-all.sh) that can be used to build the images locally. See the following sub sections for usage.
35
35
36
36
This script will first build the chunks and run tests followed by creation of container images. It uses `dazzle` to perform these tasks.
37
37
@@ -45,20 +45,30 @@ where `combo` is the name of the combination defined in [dazzle.yaml](dazzle.yam
45
45
46
46
### Build Specific Chunks
47
47
48
-
Often, you would want to test only the chunks that you modify. You can do that by using the `-c` flag.
48
+
Often, you would want to test only the chunks that you modify. You can do that with build-chunk.sh using the `-c` flag and specifying the name for your combination with `-n`.
Above command will build only chunks `lang-c` and `dep-cacert-update` and combine the created chunks (all variants, if any exists) as a combination with name `mychangecombo`.
55
55
56
+
### Build Specific Combination
57
+
58
+
Sometimes you only want to build one specific combination e.g. the `postgresql` or the `go` image. You can do that with
59
+
60
+
```console
61
+
./build-combo.sh <comboName> e.g. ./build-combo.sh postgresql
62
+
```
63
+
64
+
This will build all chunks that are referenced by the `go` combination and then combine them to create the `go` image.
65
+
56
66
### Build All Chunks
57
67
58
68
Execute the following command to build using the default config `dazzle.yaml` shipped in this repo:
59
69
60
70
```bash
61
-
./dazzle-up.sh
71
+
./build-all.sh
62
72
```
63
73
64
74
> **NOTE:** Building images locally consumes a lot of resources and is often slow.
0 commit comments