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:
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