Custom Plugins with Docker?

291 views
Skip to first unread message

rachel....@senioradvisor.com

unread,
Aug 7, 2015, 2:38:56 PM8/7/15
to Kill Bill users mailing-list
I was curious if there are any instructions or tutorials related to installing custom plugins into the kill bill docker image. I am new to docker. What would be the best approach?

Thanks,
Rachel

Pierre-Alexandre Meyer

unread,
Aug 7, 2015, 4:29:08 PM8/7/15
to Rachel Switzer, Kill Bill users mailing-list
Hello Rachel,

On Fri, Aug 7, 2015 at 2:38 PM, <rachel....@senioradvisor.com> wrote:
I was curious if there are any instructions or tutorials related to installing custom plugins into the kill bill docker image. I am new to docker. What would be the best approach?

There are different ways to do it.

Either you log-in to the container and install the plugin manually:

docker start killbill
docker exec -ti killbill /bin/bash
kpm pull_ruby_plugin <plugin>
exit
docker restart killbill

or you simply update your kpm.yml with the new plugin entry and re-run kpm install.

Alternatively, you could also create your own Docker image. We do something similar for our Docker testing image (see https://github.com/killbill/killbill-cloud/blob/master/docker/templates/killbill/testing/kpm.yml.erb.overlay).

Let us know if that helps.

Cheers,

--
Pierre

rachel....@senioradvisor.com

unread,
Aug 7, 2015, 4:31:18 PM8/7/15
to Kill Bill users mailing-list, rachel....@senioradvisor.com
Yes, this helps!

Thanks,
Rache;

rachel....@senioradvisor.com

unread,
Aug 13, 2015, 5:49:46 PM8/13/15
to Kill Bill users mailing-list, rachel....@senioradvisor.com
So, I'm trying to pull down my source code from a private git repository (it's a custom plugin I wrote) onto my killbill container. My thought was I pull the source code onto my container and build and deploy it.

I'm trying to running sudo apt-get install git to install git so I can pull the source code down. I keep getting a prompt to enter the password for tomcat user. What is the sudo password?

Am I even on the right track to do this? Or is there a better way? KPM does not have my custom plugins so that's not an option. I will have to manually install them.

As I said, I'm new to docker.

Pierre-Alexandre Meyer

unread,
Aug 19, 2015, 8:29:38 AM8/19/15
to Rachel Switzer, Kill Bill users mailing-list
Hello Rachel,

On Thu, Aug 13, 2015 at 5:49 PM, <rachel....@senioradvisor.com> wrote:
I'm trying to running sudo apt-get install git to install git so I can pull the source code down. I keep getting a prompt to enter the password for tomcat user. What is the sudo password?

It's tomcat7. 

Am I even on the right track to do this? Or is there a better way? KPM does not have my custom plugins so that's not an option. I will have to manually install them.

The easiest way would be to publish your private plugin to a Nexus instance if you have one (KPM could then pull it down). Alternatively, you can mount a volume pointing to your source code (check https://docs.docker.com/userguide/dockervolumes/).

--
Pierre
Reply all
Reply to author
Forward
0 new messages