Does pulumi-docker for python not support image cr...
# python
c
Does pulumi-docker for python not support image creation and push?
f
Since this was just added and a new version hasn’t been cut, you could use the alpha build off this
Silly question, but I have to double check given the error above… is
docker
on your path?
c
I think I got it working now, it was the
env
f
awesome
c
@faint-table-42725 I am working with the Alpha Image() class and having a hard time tieing the image_name for the Task Definition. Meaning within the
container_definition
it needs to be a supplied json string, which I build using
json.dumps()
, when referencing
image.image_name
I do not think the actual string value of
image_name
is being passed as ecr provides
Container.Image has invalid characters
, however locally the image was build successfully.
If I build it dynamically such as this, it works:
'image': '%s.dkr.ecr.%<http://s.amazonaws.com/%s/%s-ui:latest|s.amazonaws.com/%s/%s-ui:latest>' % (account.account_id, current.name, p_env, p_application )
however I dont want to use a static tag, rather use the dynamic tag generated from pulumi.
f
I’m not sure I quite understand — can you please show me how you construct the JSON you’re trying to pass in?
Oh, I see you asked in the channel itself