Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallECRCredentialsHelper ¶
func InstallECRCredentialsHelper(n namer.Namer, host *remoteComp.Host, opts ...pulumi.ResourceOption) (command.Command, error)
InstallECRCredentialsHelper installs the Amazon ECR credential helper and jq on the host, then merges credsStore=ecr-login into ~/.docker/config.json (preserving existing keys). This enables automatic authentication against ECR registries (including pull-through caches).
Types ¶
type ComposeInlineManifest ¶
type ComposeInlineManifest struct {
Name string
Content pulumi.StringInput
}
type ComposeManifest ¶
type ComposeManifest struct {
Version string `yaml:"version"`
Services map[string]ComposeManifestService `yaml:"services"`
}
type ComposeManifestService ¶
type ComposeManifestService struct {
Pid string `yaml:"pid,omitempty"`
Privileged bool `yaml:"privileged,omitempty"`
Ports []string `yaml:"ports,omitempty"`
Image string `yaml:"image"`
ContainerName string `yaml:"container_name"`
Volumes []string `yaml:"volumes"`
Environment map[string]any `yaml:"environment"`
}
type Manager ¶
type Manager struct {
pulumi.ResourceState
components.Component
Host *remoteComp.Host `pulumi:"host"`
// contains filtered or unexported fields
}
func NewAWSManager ¶
func NewAWSManager(e config.Env, host *remoteComp.Host, opts ...pulumi.ResourceOption) (*Manager, error)
NewAWSManager creates a docker Manager with the Amazon ECR credentials helper pre-installed. The ECR credentials helper enables automatic authentication against ECR registries, including our pull-through cache. Use this instead of NewManager when the host is on AWS.
When ImagePullRegistry is configured, DD_REGISTRY is automatically injected into every ComposeStrUp call so that compose files using ${DD_REGISTRY:-docker.io} pull from the ECR pull-through cache for Docker Hub images. Callers may still override DD_REGISTRY by passing it explicitly in their envVars map.
func NewManager ¶
func NewManager(e config.Env, host *remoteComp.Host, opts ...pulumi.ResourceOption) (*Manager, error)
func (*Manager) ComposeFileUp ¶
func (*Manager) ComposeStrUp ¶
func (d *Manager) ComposeStrUp(name string, composeManifests []ComposeInlineManifest, envVars pulumi.StringMap, opts ...pulumi.ResourceOption) (command.Command, error)
type ManagerOutput ¶
type ManagerOutput struct {
components.JSONImporter
Host remoteComp.HostOutput `json:"host"`
}