Skip to content

Commit b5aef54

Browse files
committed
1.25.3 release info
1 parent f12ed11 commit b5aef54

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 1.25.3 (8/4/2019)
2+
3+
### New Features
4+
5+
* Build minified images from `source` using the new `--from-dockerfile` build flag (see `README.md` for details).
6+
7+
### Improvements
8+
9+
* Custom HTTP POST probes support request bodies
10+
111
## 1.25.2 (7/21/2019)
212

313
### New Features

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,16 @@ Note: The examples are in a separate repository: [https://github.com/docker-slim
127127

128128
## RECENT UPDATES
129129

130-
Latest version: 1.25.2 (7/21/2019)
130+
Latest version: 1.25.3 (8/4/2019)
131131

132-
Now you can generate enhanced build reports with additional container image metadata and rewrite some of the generated Docker image instructions! For more info about the latest release see the [`CHANGELOG`](CHANGELOG.md).
132+
Now you can build minified images from the original Dockerfile (no need to create a separate fat container first). For more info about the latest release see the [`CHANGELOG`](CHANGELOG.md).
133133

134134
## INSTALLATION
135135

136136
1. Download the zip package for your platform.
137-
- [Latest Mac binaries](https://downloads.dockerslim.com/releases/1.25.2/dist_mac.zip)
138-
- [Latest Linux binaries](https://downloads.dockerslim.com/releases/1.25.2/dist_linux.tar.gz)
139-
- [Latest Linux ARM binaries](https://downloads.dockerslim.com/releases/1.25.2/dist_linux_arm.tar.gz)
137+
- [Latest Mac binaries](https://downloads.dockerslim.com/releases/1.25.3/dist_mac.zip)
138+
- [Latest Linux binaries](https://downloads.dockerslim.com/releases/1.25.3/dist_linux.tar.gz)
139+
- [Latest Linux ARM binaries](https://downloads.dockerslim.com/releases/1.25.3/dist_linux_arm.tar.gz)
140140
2. Unzip the package.
141141
3. Add the location where you unzipped the package to your PATH environment variable (optional).
142142

@@ -182,7 +182,7 @@ You can use the generated profile with your original image or with the minified
182182

183183
The demo run on Mac OS X, but you can build a linux version. Note that these steps are different from the steps in the demo video.
184184

185-
1. Get the docker-slim [Mac](https://downloads.dockerslim.com/releases/1.25.2/dist_mac.zip), [Linux](https://downloads.dockerslim.com/releases/1.25.2/dist_linux.tar.gz) or [Linux ARM](https://downloads.dockerslim.com/releases/1.25.2/dist_linux_arm.tar.gz) binaries. Unzip them and optionally add their directory to your PATH environment variable if you want to use the app from other locations.
185+
1. Get the docker-slim [Mac](https://downloads.dockerslim.com/releases/1.25.3/dist_mac.zip), [Linux](https://downloads.dockerslim.com/releases/1.25.3/dist_linux.tar.gz) or [Linux ARM](https://downloads.dockerslim.com/releases/1.25.3/dist_linux_arm.tar.gz) binaries. Unzip them and optionally add their directory to your PATH environment variable if you want to use the app from other locations.
186186

187187
The extracted directory contains two binaries:
188188

@@ -294,13 +294,16 @@ To disable the version checks set the global `--check-version` flag to `false` (
294294
* `--container-dns` - add a dns server analyzing image [zero or more]
295295
* `--container-dns-search` - add a dns search domain for unqualified hostnames analyzing image [zero or more]
296296
* `--continue-after` - Select continue mode: enter | signal | probe | timeout or numberInSeconds (default: enter)
297+
* `--from-dockerfile` - The source Dockerfile name to build the fat image before it's minified.
297298

298299
The `--include-path` option is useful if you want to customize your minified image adding extra files and directories. The `--include-path-file` option allows you to load multiple includes from a newline delimited file. Use this option if you have a lot of includes. The includes from `--include-path` and `--include-path-file` are combined together. Future versions will also include the `--exclude-path` option to have even more control.
299300

300301
The `--continue-after` option is useful if you need to script `docker-slim`. If you pick the `probe` option then `docker-slim` will continue executing the build command after the HTTP probe is done executing. If you pick the `timeout` option `docker-slim` will allow the target container to run for 60 seconds before it will attempt to collect the artifacts. You can specify a custom timeout value by passing a number of seconds you need instead of the `timeout` string. If you pick the `signal` option you'll need to send a USR1 signal to the `docker-slim` process.
301302

302303
The `--include-shell` option provides a simple way to keep a basic shell in the minified container. Not all shell commands are included. To get additional shell commands or other command line utilities use the `--include-exe' and/or `--include-bin' options. Note that the extra apps and binaries might missed some of the non-binary dependencies (which don't get picked up during static analysis). For those additional dependencies use the `--include-path` and `--include-path-file` options.
303304

305+
The `--from-dockerfile` option makes it possible to build a new minified image directly from source Dockerfile. Pass the Dockerfile name as the value for this flag and pass the build context directory or URL instead of the docker image name as the last parameter for the `docker-slim` build command: `docker-slim build --from-dockerfile Dockerfile --tag my/custom_minified_image_name .` If you want to see the console output from the build stages (when the fat and slim images are built) add the `--show-blogs` build flag. Note that the build console output is not interactive and it's printed only after the corresponding build step is done. The fat image created during the build process has the `.fat` suffix in its name. If you specify a custom image tag (with the `--tag` flag) the `.fat` suffix is added to the name part of the tag. If you don't provide a custom tag the generated fat image name will have the following format: `docker-slim-tmp-fat-image.<pid_of_docker-slim>.<current_timestamp>`. The minified image name will have the `.slim` suffix added to that auto-generated container image name (`docker-slim-tmp-fat-image.<pid_of_docker-slim>.<current_timestamp>.slim`). Take a look at this [python examples](https://github.com/docker-slim/examples/tree/master/python_ubuntu_18_py27_from_dockerfile) to see how it's using the `--from-dockerfile` flag.
306+
304307
## DOCKER CONNECT OPTIONS
305308

306309
If you don't specify any Docker connect options `docker-slim` expects to find the following environment variables: `DOCKER_HOST`, `DOCKER_TLS_VERIFY` (optional), `DOCKER_CERT_PATH` (required if `DOCKER_TLS_VERIFY` is set to `"1"`)

internal/app/master/commands/build.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ func OnBuild(
9797
os.Getpid(), time.Now().UTC().Format("20060102150405"))
9898
}
9999

100+
fmt.Printf("docker-slim[build]: info=basic.image.name value=%s\n", fatImageRepoNameTag)
101+
100102
fatBuilder, err := builder.NewBasicImageBuilder(client,
101103
fatImageRepoNameTag,
102104
buildFromDockerfile,

0 commit comments

Comments
 (0)