Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Adjust per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlumi committed Mar 2, 2023
1 parent a62d1f2 commit 398e7d6
Showing 1 changed file with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ date: 2023-02-28T09:00:00-05:00
# of the content of the post, which is useful for targeting search results or social-media
# previews. This field is required or the build will fail the linter test.
# Max length is 160 characters.
meta_desc: Announcing the Pulumi Docker Provider 4.0, with improved image build efficiency, Docker BuildKit support, and availability by Pulumi Yaml and Pulumi Java programs.
meta_desc: Announcing the Pulumi Docker Provider 4.0, with significantly improved performance, Docker BuildKit support, and support for Pulumi Yaml and Pulumi Java programs.

# The meta_image appears in social-media previews and on the blog home page.
# A placeholder image representing the recommended format, dimensions and aspect
Expand All @@ -36,29 +36,32 @@ The Pulumi Docker Provider has been a top Pulumi provider since it launched in 2

One of the most heavily used features of this provider is the `docker.Image` resource, which enables Pulumi users to build and (optionally) push a local Docker context (like an application folder), to a registry as part of a Pulumi deployment. Today we are excited to announce a set of improvements to the Pulumi Docker Provider Image Resource driven by the feedback we have received from our community. This set of improvements includes:

* Improved image build efficiency
* BuildKit support with cross-platform builds
* Significantly improved performance (including reduced need for rebuilds)
* BuildKit support (including cross-platform builds)
* Rich Docker build logs inside Pulumi IaC
* Pulumi YAML and Pulumi Java support

<!-- add more in why docker provider is a top provider and what can be done with it-->

<!--more-->

### Improved image build efficiency
### Significantly improved performance

In order to improve efficiency we have changed the default behavior to rebuild only on context change. This reduces build time and overall runtime in your Pulumi program. This functionality as well as other improvements we are announcing today is a [highly requested feature](https://github.com/pulumi/pulumi-docker/issues/132) from our community.
To improve the efficiency of the Docker Provider, we have changed the default behavior to rebuild only on context change. In addition, the `cacheFrom` option now offers the ability to use a registry as the image cache. These improvements reduce build time and overall runtime in your Pulumi program. This functionality and other improvements we are announcing today are a [Docker Provider highly requested feature](https://github.com/pulumi/pulumi-docker/issues/132) from our community.

<!-- Add image/gif showing output during build -->
<!-- Add image/gif showing output during build, side by side comparison of old vs new?-->

### BuildKit support

The enhanced functionality and performance provided by the [Docker BuildKit](https://docs.docker.com/build/buildkit/) is now fully available to be leveraged in your Pulumi programs. BuildKit comes with functionality for improving your builds’ performance and the reusability of your Dockerfiles. Cross-platform builds are now supported so that images can be built to target a container runtime that is different from the build environment.
The enhanced functionality and performance provided by the [Docker BuildKit](https://docs.docker.com/build/buildkit/) is now fully available to be leveraged in your Pulumi programs. BuildKit comes with functionality to improve your builds’ performance and the reusability of your Dockerfiles. Cross-platform builds are now supported, enabling image building for a target container runtime that is different from the build environment. BuildKit is now the default builder version mode. The V1 builder can still be accessed by specifying `Build.BuilderVersion=V1`.

<!-- Add image or code snippet for buildkit options or cross platform builds-->

## Rich Docker build logs inside Pulumi IaC

<!-- Add para about docker build logs and a small gif of output -->

### Pulumi YAML and Pulumi Java support

We announced [Pulumi YAML and Pulumi Java](https://www.pulumi.com/blog/pulumi-universal-iac/) last year and are excited to have extended support to the Pulumi Docker Provider. Previously the Pulumi Docker Provider Image Resource was a [Component Resource](https://www.pulumi.com/docs/intro/concepts/resources/components/), a logical grouping of resources, and now we have made it a [Custom Resource](https://www.pulumi.com/docs/intro/concepts/resources/#resources), a provider managed resource. This change enabled auto-support of all Pulumi languages. In addition, as a Custom Resource the resource can participate in the CRUD (create, replace, update, delete) lifecycle.
We announced [Pulumi YAML and Pulumi Java](https://www.pulumi.com/blog/pulumi-universal-iac/) last year and are excited to have extended support to the Pulumi Docker Provider. This release schematizes all Docker resources, which enables auto-support of all Pulumi languages. In addition, this means the Docker image resource can now participate in the CRUD (create, replace, update, delete) lifecycle.

### Migrating to 4.0

Expand Down Expand Up @@ -112,4 +115,4 @@ DockerBuild → DockerBuildArgs
ImageRegistry → RegistryArgs
```

The Docker Provider Image Resource has everything you need to build, run, and push Docker images for any container registry. Try it out today!
The Docker Provider Image Resource has everything you need to build, run, and push Docker images for any container registry. Build your next image now!

0 comments on commit 398e7d6

Please sign in to comment.