Running KAUI in docker

412 views
Skip to first unread message

rachel....@senioradvisor.com

unread,
Sep 14, 2015, 12:35:49 PM9/14/15
to Kill Bill users mailing-list
Are there any instructions on how to run KAUI in docker? Can anyone assist me? I used KPM to install it. I see the KAUI.war in the same folder as the ROOT.war. How do navigate to it? /KAUI doesn't seem to work. Kill bill is running on the same docker container just fine.

Thanks,
Rachel

Pierre-Alexandre Meyer

unread,
Sep 14, 2015, 1:39:51 PM9/14/15
to Rachel Switzer, Kill Bill users mailing-list
Hello Rachel,

Use the Kaui Docker image instead (see https://hub.docker.com/r/killbill/kaui/tags/) and run both containers side-by-side.

Let us know how it goes.


--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To post to this group, send email to killbill...@googlegroups.com.
Visit this group at http://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/394d82fd-d408-49a4-bb79-f3af6ea10ef4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Pierre

rachel....@senioradvisor.com

unread,
Sep 14, 2015, 2:49:16 PM9/14/15
to Kill Bill users mailing-list, rachel....@senioradvisor.com
I pulled down the docker image, but I still can't seem to load it up. I'm assuming I'd do something like this...

docker run -tid \
--name killbillui \
-p 8080:8080 \
--link mysql:mysql \
killbill/kaui


Am I even remotely close? I'm pretty new to docker still.

Thanks,
Rachel

Pierre-Alexandre Meyer

unread,
Sep 14, 2015, 3:02:24 PM9/14/15
to Rachel Switzer, Kill Bill users mailing-list
Can you run:

  docker run <container-id> ; docker logs -f <container-id>

where container-id is the id of the Kaui container (docker ps -a)?

This should give us an indication of what's happening at startup.


For more options, visit https://groups.google.com/d/optout.



--
Pierre

rachel....@senioradvisor.com

unread,
Sep 14, 2015, 3:12:10 PM9/14/15
to Kill Bill users mailing-list, rachel....@senioradvisor.com
I get this... What URL do I hit to see if KAUI is running?

Kill Bill kpm file not found - creating now...
Starting KAUI installation...
I, [2015-09-14T19:04:48.267000 #32] INFO -- : Starting download of org.kill-bill.billing.kaui:kaui-standalone:war:LATEST to /tmp/d20150914-32-xyhyhl
I, [2015-09-14T19:05:22.591000 #32] INFO -- : Successful installation of org.kill-bill.billing.kaui:kaui-standalone:war:LATEST to /var/lib/tomcat7/webapps/ROOT.war
Using CATALINA_BASE: /var/lib/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using CATALINA_TMPDIR: /tmp/tomcat7-tomcat7-tmp
Using JRE_HOME: /usr/lib/jvm/default-java
Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
Using CATALINA_PID: /var/run/tomcat7.pid
Listening for transport dt_socket at address: 12345
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to select the "server" VM
-zero to select the "zero" VM
-jamvm to select the "jamvm" VM
-avian to select the "avian" VM
-dcevm to select the "dcevm" VM
The default VM is server,
because you are running on a server-class machine.


-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose:[class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions with specified granularity
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.
Using CATALINA_BASE: /var/lib/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using CATALINA_TMPDIR: /tmp/tomcat7-tomcat7-tmp
Using JRE_HOME: /usr/lib/jvm/default-java
Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
Using CATALINA_PID: /var/run/tomcat7.pid
Listening for transport dt_socket at address: 12345
Using CATALINA_BASE: /var/lib/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using CATALINA_TMPDIR: /tmp/tomcat7-tomcat7-tmp
Using JRE_HOME: /usr/lib/jvm/default-java
Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
Using CATALINA_PID: /var/run/tomcat7.pid
Listening for transport dt_socket at address: 12345
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to select the "server" VM
-zero to select the "zero" VM
-jamvm to select the "jamvm" VM
-avian to select the "avian" VM
-dcevm to select the "dcevm" VM
The default VM is server,
because you are running on a server-class machine.


-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose:[class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions with specified granularity
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.

rachel....@senioradvisor.com

unread,
Sep 14, 2015, 3:33:06 PM9/14/15
to Kill Bill users mailing-list, rachel....@senioradvisor.com
It appears it starts up and then shuts right back down.

Pierre-Alexandre Meyer

unread,
Sep 14, 2015, 3:35:59 PM9/14/15
to Rachel Switzer, Kill Bill users mailing-list
Yes, it looks like the killbill/kaui:latest image is corrupted on Docker Hub. Could you try with killbill/kaui:0.3.0 (which is the latest)?

Kaui will be running on port 8080.

On Mon, Sep 14, 2015 at 3:33 PM, <rachel....@senioradvisor.com> wrote:
It appears it starts up and then shuts right back down.
--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To post to this group, send email to killbill...@googlegroups.com.
Visit this group at http://groups.google.com/group/killbilling-users.

For more options, visit https://groups.google.com/d/optout.



--
Pierre

rachel....@senioradvisor.com

unread,
Sep 14, 2015, 3:50:27 PM9/14/15
to Kill Bill users mailing-list, rachel....@senioradvisor.com
Same issue. It starts up and shuts right back down.

rachel....@senioradvisor.com

unread,
Sep 14, 2015, 3:51:42 PM9/14/15
to Kill Bill users mailing-list, rachel....@senioradvisor.com
I also tried 0.2.0

stephane brossier

unread,
Sep 23, 2015, 2:57:01 PM9/23/15
to Rachel Switzer, Kill Bill users mailing-list
Rachel and Pierre,


I took a look at the kaui docker image, and on my sides things work just as expected: I am using the latest kaui image (killbill/kaui:0.3.0). 

I installed that image both in the cloud (AWS) and on my laptop (macos). On the macos the setup is a bit more involved because of the extra indirection with the boot2docker host image.

On the mac, i run mysql, and killbill in a container, and then when i start kaui, i link those containers. Here is my start command:

docker run -tid \
--name kaui-0.3.0 \
--link mysql:mysql \
--link killbill-0.15.3:killbill \
-p 3000:8080 \
-e KAUI_CONFIG_DAO_URL=jdbc:mysql://mysql:3306/kaui \
-e KAUI_CONFIG_DAO_USER=root \
-e KAUI_CONFIG_DAO_PASSWORD= \
-e KAUI_URL=http://killbill:8080 \
-e KAUI_API_KEY=bob \
-e KAUI_API_SECRET=lazar \
killbill/kaui:0.3.0


So this is what i run:
> docker ps
CONTAINER ID        IMAGE                       COMMAND                CREATED             STATUS              PORTS                                              NAMES
89edf1e37d3b        killbill/kaui:0.3.0         "/etc/init.d/kaui.sh   6 minutes ago       Up 6 minutes        0.0.0.0:3000->8080/tcp                             kaui-0.3.0          
bf1a765f2971        killbill/killbill:0.15.3    "/etc/init.d/killbil   4 weeks ago         Up 21 minutes       0.0.0.0:8080->8080/tcp, 0.0.0.0:12345->12345/tcp   killbill-0.15.3     
8790c2986608        dockerfile/mariadb:latest   "mysqld_safe"          10 months ago       Up 23 minutes       0.0.0.0:3306->3306/tcp                             mysql           

In order to debug (if things go wrong), you can ssh into the kaui container:
> docker exec -ti kaui-0.3.0 /bin/bash

And then from there look at the log (replace appropriate date):

> less /var/log/tomcat7/localhost.2015-09-23.log 


Hope this is helpful.


Stéphane


On Mon, Sep 14, 2015 at 12:51 PM, <rachel....@senioradvisor.com> wrote:
I also tried 0.2.0


--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To post to this group, send email to killbill...@googlegroups.com.
Visit this group at http://groups.google.com/group/killbilling-users.

rachel....@senioradvisor.com

unread,
Sep 24, 2015, 3:39:50 PM9/24/15
to Kill Bill users mailing-list, rachel....@senioradvisor.com
This is great! Thank you for these instructions. I was able to get the admin up and running.


Thanks,
Rachel

Reply all
Reply to author
Forward
0 new messages