-
docker, docker-machine and docker-compose installed
-
PLF version available like below:
$ git clone git@github.com:exoplatform/platform-private-distributions.git && cd platform-private-distributions
$ mvn clean package -Pexo-release,exo-private -Dskip-archive
$ cp -R plf-enterprise-jbosseap-standalone/target/platform*/platform* ../exodev-base-plf/plf43-jboss/plf
$ cp -R plf-enterprise-tomcat-standalone/target/platform*/platform* ../exodev-base-plf/plf43-tomcat/plf
$ docker-machine create -d virtualbox --virtualbox-cpu-count "4" --virtualbox-memory "4096" exodev-plf
$ eval $(docker-machine env exodev-plf)
To check that the conf is ok:
docker-machine inspect exodev-plf
$ cd exodev-base
$ docker build --rm=true --tag=exodev/base:latest .
$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
exodev/base latest f27148ddd088 13 seconds ago 207.4 MB
centos 7 0f73ae75014f 9 days ago 172.3 MB
$ cd exodev-base-jdk/jdk7
$ docker build --rm=true --tag=exodev/base-jdk:7 .
$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
exodev/base-jdk 7 b5ddc5fd7b90 About a minute ago 434.4 MB
exodev/base latest f27148ddd088 5 minutes ago 207.4 MB
centos 7 0f73ae75014f 9 days ago 172.3 MB
$ cd exodev-base-plf/plf43-common
$ docker build --rm=true --tag=exodev/base-plf:4.3.x .
$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
exodev/base-plf 4.3.x 5a5e60723691 8 seconds ago 434.4 MB
exodev/base-jdk 7 b5ddc5fd7b90 4 minutes ago 434.4 MB
exodev/base latest f27148ddd088 7 minutes ago 207.4 MB
centos 7 0f73ae75014f 9 days ago 172.3 MB
$ cd exodev-base-plf/plf43-jboss
$ docker build --rm=true --tag=exodev/plf-jboss:4.3.x .
$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
exodev/plf-jboss 4.3.x 2c49d45117a0 13 minutes ago 1.199 GB
exodev/base-plf 4.3.x fd062cab3937 20 minutes ago 434.4 MB
exodev/base-jdk 7 b5ddc5fd7b90 52 minutes ago 434.4 MB
exodev/base latest f27148ddd088 55 minutes ago 207.4 MB
centos 7 0f73ae75014f 9 days ago 172.3 MB
-
Build image
$ cd exodev-base-plf/plf43-tomcat
$ docker build --rm=true --tag=exodev/plf-tomcat:4.3.x .
$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
exodev/plf-tomcat 4.3.x bc7d3fb92e2c 19 minutes ago 919.3 MB
exodev/base-plf 4.3.x fd062cab3937 20 minutes ago 434.4 MB
exodev/base-jdk 7 b5ddc5fd7b90 52 minutes ago 434.4 MB
exodev/base latest f27148ddd088 55 minutes ago 207.4 MB
centos 7 0f73ae75014f 9 days ago 172.3 MB
-
Remove image
docker rmi -f exodev/plf-tomcat:4.3.x
-
Build image
$ cd exodev-base-plf/plf43-tomcat-mysql
$ docker build --rm=true --tag=exodev/plf-tomcat-mysql:4.3.x .
-
Run the Oracle Container with SID plf
$ cd exodev-base-plf/plf43-tomcat-oracle
$ docker-compose -f oracle.yml up
-
Check that it’s running
$ open http://$(docker-machine ip exodev-plf):49162/apex
Note
|
Use e following credentials:
|
-
Run the tomcat container
$ docker-compose -f tomcat.yml up
If the add-on is available on the remote catalog, you just have to build an image like below:
$ docker-compose up -d
$ open http://http://$(docker-machine ip exodev-plf):43380
If you want to test a local add-on, you have to add it to your image with a Docker volume:
-
build your add-on locally with Maven
-
copy the ZIP file to exodev-plf-addons/plf43-tomcat-XXX-task/local/resources/task-addon.zip
-
execute the following commands:
$ docker-compose up $ open http://$(docker-machine ip exodev-plf):43380