iDempiere on Docker Container

699 views
Skip to first unread message

Ken Longnan

unread,
Jun 13, 2014, 10:02:02 AM6/13/14
to idem...@googlegroups.com
Hello all,

Once I meet Docker, I have a feeling that it will become a big thing, isn't it?. Then I try to running iDempiere on Docker container, so far some progress I have done and I'd like to show to the community. 

The following is the introduction how to run iDempiere on docker container:

Step 1: Download images.
I have not pushed images into Docker public repository yet, you need download images manually by below link:

There are 2 images, one is ksys-docker-idempiere, and another is ksys-docker-postgresql

Step 2: Load images.
$ docker load < image-name.tar

Step 3: Run new ksys-postgresql docker container
$ sudo docker run -d --name="ksys-postgresql" -p 5432:5432 -e PASS="postgres" longnan/ksys-docker-postgresql:2.0.20140608

It will run new ksys-postgresql container, during initializing, it will import iDempiere seed database and apply all migration sql script automatically.
It will take several minutes for starting, after that you maybe able to access postgresql database from docker host:
$ psql -h docker-host-ip -p 5432 -U postgres postgres

Step 4: Run new ksys-idempiere docker container
$sudo docker run -d -t --link ksys-postgresql:idempiere-db --name="ksys-idempiere" -p 8181:8181 -p 8101:8101 longnan/ksys-docker-idempiere:2.0.20140608

The iDempiere KSYS distribution is running under Apache Karaf. This container just start Karaf, then loading all bundles of iDempiere, but the loading process is very very slow, it will cost 1 hour even more for me, I don't know why, but it works after finish all loading. You may check the status by run docker command:
$ sudo docker logs ksys-idempiere

Step 5: Now it should be ready for using
You can access it via:

All source code I have uploaded in github:
You can download them and build docker image by yourself.

Hope it could help someone who has interested with Docker also.

Ken

redhuan d. oon

unread,
Jun 14, 2014, 10:44:28 PM6/14/14
to idem...@googlegroups.com
Thank you Ken Longnan for such an effort. Someone just told me last week that this is the latest hot thing. Was thinking how do we do it and here you are! :D

Ken Longnan

unread,
Jun 15, 2014, 7:18:20 AM6/15/14
to idem...@googlegroups.com

Thanks Red, I am very happy to try out such one kind of possibility with Docker.

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/2398c69b-ba29-445a-9673-bf601901e4f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages