victorious-exabyte-70545
09/22/2021, 10:14 PMcrooked-pillow-11944
09/23/2021, 3:38 AMpurple-architect-30534
09/23/2021, 1:41 PMbillions-mechanic-26704
09/24/2021, 12:54 PMdocker.Image
resource they use is not useful since build
parameter is required.
I am seeing this docker.RemoteImage
resource from docker pulumi api, but not sure how to indicate it that the image should be pulled from my container registry I got previously.
The code for getting my container registry is:
container_image = "wmlab"
# GETTING MY CONTAINER REGISTRY
rhdhv_container_registry = azure_native.containerregistry.Registry(
"rhdhvContainerRegistry",
admin_user_enabled=True,
location="westeurope",
network_rule_set=azure_native.containerregistry.NetworkRuleSetArgs(
default_action="Allow",
),
registry_name="rhdhvContainerRegistry",
resource_group_name="genericRG1",
sku=azure_native.containerregistry.SkuArgs(
name="Premium",
),
opts=pulumi.ResourceOptions(protect=True))
# OUTPUT THE CREDENTIALS TO GET THEM
acr_credentials = pulumi.Output.all("genericRG1", rhdhv_container_registry.name).apply(
lambda args: azure_native.containerregistry.list_registry_credentials(
resource_group_name=args[0],
registry_name=args[1]
)
)
admin_username = acr_credentials.username
admin_password = acr_credentials.passwords[0]["value"]
Not sure if perhaps I have to use azure_native.containerregistry.Registry
(here it is) since it has a get
method when an instance of a container registry is gotten, such as is shown at the attached picture.
The point is I don’t know how to use that get method
I am a bit confused about how to pull an image from the existing container registry I got.
Or perhaps does it need to be build and pushed from the same project? I would say should be possible to get an existing one. I need this because the build process is taking place in another repository projecthallowed-teacher-48474
09/28/2021, 4:38 PMwonderful-action-5267
09/29/2021, 1:08 AMpublish
argument? Or is this a use case for creating lambda aliases with that SEMVER value instead?able-doctor-68496
09/30/2021, 5:15 PMprops
argument to the ComponentResource
constructor: https://www.pulumi.com/docs/reference/pkg/python/pulumi/#the-pulumi-python-resource-model-1
My main questions about it are:
• When would I want to pass something to this props
argument?
• What would I pass to that argument?able-doctor-68496
09/30/2021, 5:19 PMComponentResource
that I’ve created. I’m passing it like so:
def __init__(..., namespace: Namespace, ...):
super().__init__(
...,
props={'namespace': namespace},
...
)
Is that the correct way to use props
? My thinking was that this would let the Pulumi “engine” know that there is an ordering requirement between the namespace and my ComponentResource
. Is that how it works? If not, then what are props
for?billowy-church-13349
09/30/2021, 7:40 PMvsphere.VirtualMachine
exists network_interfaces, and disk params, bug vsphere.get_content_library_item
does not provide those info.crooked-pillow-11944
10/01/2021, 1:30 PMable-doctor-68496
10/01/2021, 4:13 PMprops
argument to the ComponentResource
constructor: https://www.pulumi.com/docs/reference/pkg/python/pulumi/#the-pulumi-python-resource-model-1
My main questions about it are:
• When would I want to pass something to this props
argument?
• What would I pass to that argument?
For example, currently I’m passing a Kubernetes namespace to a “parent” ComponentResource
that I’ve created. I’m passing it like so:
def __init__(..., namespace: Namespace, ...):
super().__init__(
...,
props={'namespace': namespace},
...
)
Is that the correct way to use props
? My thinking was that this would let the Pulumi “engine” know that there is an ordering requirement between the namespace and my ComponentResource
. Is that how it works? If not, then what are props
for?crooked-pillow-11944
10/04/2021, 1:03 AMagreeable-motherboard-1279
10/04/2021, 9:55 AMshy-bird-55689
10/04/2021, 9:28 PMapply
and Output.concat
anyone got any pointers?
package_dash_image = Image('package-dash-image',
build=DockerBuild(args={'BUCKET': "bucket_name",
'ACCESS_KEY_ID': package_dash_user_access_key.id,
'SECRET_ACCESS_KEY': package_dash_user_access_key.secret
},
context='source/services/package-dash/',
),
image_name=package_dash_image_name,
registry=package_dash_repository_info,
)
alert-glass-49407
10/06/2021, 8:22 PMnutritious-shampoo-16116
10/07/2021, 10:20 AMshy-bird-55689
10/07/2021, 8:42 PMup
?
aws:lambda:EventSourceMapping (md5-source-event):
error: connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:45393: connect: connection refused"
Have it for a couple of other resources that were to be updated as wellfresh-actor-58531
10/08/2021, 5:42 AMfresh-actor-58531
10/08/2021, 5:43 AMfresh-actor-58531
10/08/2021, 5:44 AMhallowed-teacher-48474
10/08/2021, 7:04 PMlocal
and in the documentation there is no option for setting that (or at least haven't found one 🙂 )full-artist-27215
10/08/2021, 7:06 PMhallowed-teacher-48474
10/08/2021, 7:07 PMfull-artist-27215
10/08/2021, 7:07 PMfull-artist-27215
10/08/2021, 7:08 PMhallowed-teacher-48474
10/08/2021, 7:08 PMfull-artist-27215
10/08/2021, 7:08 PMfull-artist-27215
10/08/2021, 7:08 PMsparse-state-34229
10/08/2021, 11:15 PM#16 59.67 Install protobuf 3.18.1 failed
#16 59.67
#16 59.67 ERRORS:
#16 59.67 add protobuf failed:
#16 59.67 Traceback (most recent call last):
#16 59.67 File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
#16 59.67 result = self.fn(*self.args, **self.kwargs)
#16 59.67 File "/opt/python/lib/python3.9/site-packages/pdm/installers/synchronizers.py", line 190, in install_candidate
#16 59.67 self.manager.install(can)
#16 59.67 File "/opt/python/lib/python3.9/site-packages/pdm/installers/manager.py", line 38, in install
#16 59.67 installer(candidate.build(), self.environment, candidate.direct_url())
#16 59.67 File "/opt/python/lib/python3.9/site-packages/pdm/installers/installers.py", line 74, in install_wheel
#16 59.67 _install_wheel(
#16 59.67 File "/opt/python/lib/python3.9/site-packages/pdm/installers/installers.py", line 176, in _install_wheel
#16 59.67 for record_elements, stream in source.get_contents():
#16 59.67 File "/opt/python/lib/python3.9/site-packages/installer/sources.py", line 165, in get_contents
#16 59.67 record = record_mapping.pop(item.filename)
#16 59.67 KeyError: 'protobuf.libs/'
#16 59.67
sparse-state-34229
10/08/2021, 11:28 PM3.18.0