@reventlessdev/rescript-pulumi-docker-build
v0.1.0-alpha.3
Published
ReScript bindings for @pulumi/docker-build
Readme
@reventlessdev/rescript-pulumi-docker-build
⚠️ Alpha. APIs can change without notice between releases. Pin exact versions and expect breaking changes.
ReScript bindings for @pulumi/docker-build,
the BuildKit-based Docker image builder for Pulumi.
Thin @module/@new externals over the single Image resource, mirroring the
style of rescript-pulumi-aws.
Usage
- Add
@reventlessdev/rescript-pulumi-docker-buildto your dependencies inpackage.json. - Add it to your
dependenciesinrescript.json.
Example
open PulumiDockerBuild
let image = DockerBuild.Image.make(
~name="app",
~args={
push: Pulumi.Input.make(true),
context: Pulumi.Input.make({location: "./app"}),
tags: Pulumi.Input.make(["registry.example.com/app:latest"]),
platforms: Pulumi.Input.make([DockerBuild.Image.LinuxAmd64, DockerBuild.Image.LinuxArm64]),
},
(),
)Only push is required. Each args field takes a Pulumi.Input.t<_>, so wrap
plain values with Pulumi.Input.make, and terminate the call with ().
Links
- 📚 Documentation — docs.reventless.dev
- 📦 Repository — ReventlessDev/reventless-core
- 📋 Changelog
