ckan-cloud-operator icon indicating copy to clipboard operation
ckan-cloud-operator copied to clipboard

should support external plugins

Open OriHoch opened this issue 5 years ago • 3 comments

Similar to the changes in #113 - but to allow multiple plugins, installed via pip

e.g.:

build a ckan-cloud-operator image with a list of plugins, each line is pip installed:

export CCO_PLUGINS="
cco-provider-jenkins
cco-provider-nfs
cco-provider-postgres
https://github.com/OriHoch/cco-provider-kamatera/archive/v0.0.4.tar.gz
"
docker build -t my-special-ckan-cloud-operator --build-arg CCO_PLUGINS --build-arg K8_PROVIDER=custom-kamatera .

OriHoch avatar Jan 21 '20 12:01 OriHoch

For local development - mount the plugin directory you are working on into a ckan-cloud-operator container:

docker run -it -v $PWD/.cco:/root/ -v ../cco-provider-jenkins:/usr/local/src/cco-provider-jenkins my-special-ckan-cloud-operator

Install editable from the mounted volume:

pip install -e /usr/local/src/cco-provider-jenkins

OriHoch avatar Jan 21 '20 13:01 OriHoch

on pip install, the plugin should install any required OS dependencies / tools

OriHoch avatar Jan 21 '20 13:01 OriHoch

nice idea.

pwalsh avatar Jan 22 '20 15:01 pwalsh