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: README.md
+54-15Lines changed: 54 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -174,6 +174,7 @@ Elixir application images:
174
174
-[What if my Docker images uses the USER command?](#what-if-my-docker-images-uses-the-user-command)
175
175
-[Nginx fails in my minified image](#nginx-fails-in-my-minified-image)
176
176
-[Mint fails with a 'no permission to read from' error](#mint-fails-with-a-no-permission-to-read-from-error)
177
+
-[EXPLORE SOURCE CODE WITH AI](#explore-source-code-with-ai)
177
178
-[BUILD PROCESS](#build-process)
178
179
-[Build Steps](#build-steps)
179
180
-[CONTRIBUTING](#contributing)
@@ -190,9 +191,9 @@ Elixir application images:
190
191
191
192
## RECENT UPDATES
192
193
193
-
Latest version: `1.41.6` (`8/24/2024`)
194
+
Latest version: `1.41.7` (`9/24/2024`)
194
195
195
-
The 1.41.6 version adds support for the Podman runtime in `xray`and a number of improvements with HTTP probing.
196
+
The 1.41.7 version adds the `imagebuild` command to build container images using different build engines and it also adds a number of improvements with HTTP probing.
196
197
197
198
For more info about the latest release see the [`CHANGELOG`](CHANGELOG.md).
198
199
@@ -209,15 +210,15 @@ mint update
209
210
210
211
1. Download the zip package for your platform.
211
212
212
-
-[Latest Mac binaries](https://github.com/mintoolkit/mint/releases/download/1.41.6/dist_mac.zip) (`curl -L -o ds.zip https://github.com/mintoolkit/mint/releases/download/1.41.6/dist_mac.zip`)
213
+
-[Latest Mac binaries](https://github.com/mintoolkit/mint/releases/download/1.41.7/dist_mac.zip) (`curl -L -o ds.zip https://github.com/mintoolkit/mint/releases/download/1.41.7/dist_mac.zip`)
213
214
214
-
-[Latest Mac M1 binaries](https://github.com/mintoolkit/mint/releases/download/1.41.6/dist_mac_m1.zip) (`curl -L -o ds.zip https://github.com/mintoolkit/mint/releases/download/1.41.6/dist_mac_m1.zip)`)
215
+
-[Latest Mac M1 binaries](https://github.com/mintoolkit/mint/releases/download/1.41.7/dist_mac_m1.zip) (`curl -L -o ds.zip https://github.com/mintoolkit/mint/releases/download/1.41.7/dist_mac_m1.zip)`)
215
216
216
-
-[Latest Linux binaries](https://github.com/mintoolkit/mint/releases/download/1.41.6/dist_linux.tar.gz) (`curl -L -o ds.tar.gz https://github.com/mintoolkit/mint/releases/download/1.41.6/dist_linux.tar.gz`)
217
+
-[Latest Linux binaries](https://github.com/mintoolkit/mint/releases/download/1.41.7/dist_linux.tar.gz) (`curl -L -o ds.tar.gz https://github.com/mintoolkit/mint/releases/download/1.41.7/dist_linux.tar.gz`)
217
218
218
-
-[Latest Linux ARM binaries](https://github.com/mintoolkit/mint/releases/download/1.41.6/dist_linux_arm.tar.gz) (`curl -L -o ds.tar.gz https://github.com/mintoolkit/mint/releases/download/1.41.6/dist_linux_arm.tar.gz`)
219
+
-[Latest Linux ARM binaries](https://github.com/mintoolkit/mint/releases/download/1.41.7/dist_linux_arm.tar.gz) (`curl -L -o ds.tar.gz https://github.com/mintoolkit/mint/releases/download/1.41.7/dist_linux_arm.tar.gz`)
219
220
220
-
-[Latest Linux ARM64 binaries](https://github.com/mintoolkit/mint/releases/download/1.41.6/dist_linux_arm64.tar.gz) (`curl -L -o ds.tar.gz https://github.com/mintoolkit/mint/releases/download/1.41.6/dist_linux_arm64.tar.gz`)
221
+
-[Latest Linux ARM64 binaries](https://github.com/mintoolkit/mint/releases/download/1.41.7/dist_linux_arm64.tar.gz) (`curl -L -o ds.tar.gz https://github.com/mintoolkit/mint/releases/download/1.41.7/dist_linux_arm64.tar.gz`)
221
222
222
223
2. Unzip the package and optionally move it to your bin directory.
223
224
@@ -609,7 +610,7 @@ See the "Debugging Using the `debug` Command" section for more information about
609
610
610
611
### `IMAGEBUILD` COMMAND OPTIONS
611
612
612
-
Build container image using selected build engine
613
+
Build container image using selected build engine. The created image will be saved as a tar file. You can also load the new image into one of the supported runtimes.
With this `BuildKit` example the new image name is set to `imagebuild-buildkit-app:latest`. Make sure to use the `--image-name` flag if you don't want to use the default container image name.
655
+
656
+
Note that the `--dockerfile` flag is a path to the Dockerfile you want to use and it's not related to the context directory path provided with the `--context-dir`. This works for the `depot` and `buildkit` engines, but not for the `docker` or `podman` engines where the `--dockerfile` flag value is relative to the context directory.
657
+
658
+
A `Podman` engine example:
659
+
660
+
```bash
661
+
mint imagebuild --engine podman --image-name imagebuild-podman-app:latest --build-arg BA=1 --label LONE=value --label LTWO="label two value" --dockerfile Dockerfile --context-dir node_app
662
+
```
663
+
664
+
Note that this example also building the same image in the `node_app` directory, but here the `--dockerfile` flag value is set to `Dockerfile`. In this case, setting the `--dockerfile` flag was not necessary, because `Dockerfile` is the default `--dockerfile` flag value.
630
665
631
666
### `RUN` COMMAND OPTIONS
632
667
@@ -1286,15 +1321,15 @@ The demo runs on Mac OS X, but you can build a linux version. Note that these st
Unzip them and optionally add their directory to your `PATH` environment variable if you want to use the app from other locations.
1296
1331
1297
-
The extracted directory contains two binaries (and now it also contains a symlink for the old name):
1332
+
The extracted directory contains two binaries (and now it also contains a symlink for the old n ame):
1298
1333
1299
1334
-`mint` <- the main **Mint** application binary
1300
1335
-`mint-sensor` <- the sensor application used to collect information from running containers
@@ -1413,6 +1448,10 @@ If you run older versions of **Mint** you can get around this problem by running
1413
1448
1414
1449
**Mint** copies the relevant image artifacts trying to preserve their permissions. If the permissions are too restrictive the master app might not have sufficient priviledge to access these files when it's building the new minified image.
1415
1450
1451
+
## EXPLORE SOURCE CODE WITH AI
1452
+
1453
+
You can explore the project code and ask questions about the code using a Perplexity-like [`Code Sage`](https://sage.storia.ai/) portal created by [`Storia AI`](https://storia.ai/): https://sage.storia.ai/mintoolkit
0 commit comments