Particle-Cloud-Framework icon indicating copy to clipboard operation
Particle-Cloud-Framework copied to clipboard

Docker resource and Docker image particle

Open anovis opened this issue 6 years ago • 5 comments

anovis avatar May 02 '19 16:05 anovis

Can you put together an example particle definition? That should be helpful to get this conversation started.

ethanwlo avatar May 08 '19 20:05 ethanwlo

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)

anovis avatar May 09 '19 19:05 anovis

after discussion with @bb1314 will add in docker build actions to get_status and allow users to specify docker build params

anovis avatar May 13 '19 20:05 anovis

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.

ethanwlo avatar May 14 '19 02:05 ethanwlo

CLA assistant check
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.

CLAassistant avatar Jul 21 '20 01:07 CLAassistant