Docker resource and Docker image particle
Can you put together an example particle definition? That should be helpful to get this conversation started.
from pcf.particle.cross_cloud.docker.docker_image import DockerImage
image_def = {
"pcf_name": "pcf-example",
"flavor": "docker_image",
"docker_resource": {
"image":"anovis10/test:latest"
}
}
p = DockerImage(image_def)
p.set_desired_state("running")
print(p.apply())
print(p.state)
print(p.current_state_definition)
after discussion with @bb1314 will add in docker build actions to get_status and allow users to specify docker build params
Discussed with Austen on the next step on this. We will bake a Docker Repository info into the config. And desired vs current comparison will do a diff between what's built locally versus what's in the Docker repo. Also will bake tag/version auto increment logic, or static tag option into it.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 4 committers have signed the CLA.
:white_check_mark: anovis
:white_check_mark: ethanwlo
:x: jacoblearned
:x: eloucks
You have signed the CLA already but the status is still pending? Let us recheck it.