Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@materializeinc/pulumi-docker-buildkit
Advanced tools
A Pulumi provider that builds and pushes a Docker image to a registry using Buildkit.
A Pulumi provider that builds and pushes a Docker image to a registry using Buildkit.
Why use this provider over the official pulumi-docker provider? This provider fixes many of the bugs with the official Docker provider:
pulumi preview
does not silently block while waiting for the Docker image
to build.docker build
streams to the terminal during pulumi up
.docker build
is not invoked if nothing in the build context has changed.pulumi preview
.It also provides several new features:
linux/arm64
image on
a linux/amd64
host.)There are a few limitations though. The Image
resource is much less
configurable than the
Image
resource in
the official Docker provider. And there is no support whatsoever for the other
resource types, like Container
or Secret
.
To build and push an image to an AWS ECR repository:
import base64
import pulumi
import pulumi_aws as aws
import pulumi_docker_buildkit as docker_buildkit
def get_registry_info(registry_id):
credentials = aws.ecr.get_credentials(registry_id)
username, password = base64.b64decode(credentials.authorization_token).decode().split(":")
return docker_buildkit.RegistryArgs(
server=credentials.proxy_endpoint,
username=username,
password=password,
)
repo = aws.ecr.Repository("repo")
image = docker_buildkit.Image(
"image",
name=repo.repository_url,
registry=repo.registry_id.apply(get_registry_info),
)
Warning: Be sure to aggressively exclude files in your .dockerignore
. The
Image
resource hashes all files in the build context before determining
whether to invoke docker build
. This is fast, unless you have tens of
thousands of files in your build context. The .git
directory and
node_modules
are the usual culprits.
FAQs
A Pulumi provider that builds and pushes a Docker image to a registry using Buildkit.
The npm package @materializeinc/pulumi-docker-buildkit receives a total of 0 weekly downloads. As such, @materializeinc/pulumi-docker-buildkit popularity was classified as not popular.
We found that @materializeinc/pulumi-docker-buildkit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.