This project is meant to build the docker containers needed for setting up a lab enviornment for extending DV to work with Couchbase
The following steps can be used to configure and run the demo in docker container
-
Download project
$ git clone git@github.com:jmarley/dv-couchbase.git
-
Add products to installs directory
$ mv ${download_home}/jboss-eap-6.4.0.GA.zip ${project_home}/dv-couchbase/installs/ $ mv ${download_home}/jboss-dv-installer-6.2.0.redhat-3.jar ${project_home}/dv-couchbase/installs/
-
Build EAP demo image
$ sudo docker build -f ${project_home}/dv-couchbase/support/docker/eap/DockerFile -t jmarley/eap6.4:v0 .
-
Test EAP container
$ sudo docker run -d -p 9990:9990 -p 8080:8080 -p 9999:9999 -t jmarley/eap6.4:v0
-
-
user: jbossadmin
-
pass: r3dhat1!
-
-
Build JDV demo image
$ sudo docker build \ -f ${project_home}/dv-couchbase/support/docker/dv/DockerFile \ -t jmarley/jdv6.2:v0 .
-
Test JDV container
$ sudo docker run -d -p 31000:31000 -p 8080:8080 -p 9990:9990 -p 9999:9999 \ -t jmarley/jdv6.2:v0
Additional information can be found in the jbossdemocentral docker developer repository
I used the offical couchbase docker for this, see Reference 1 for more information . Set up persistent storage
+
$ mkdir ${project_home}/dv-couchbase/scratch/couchbase && \
chcon -Rt svirt_sandbox_file_t ${project_home}/dv-couchbase/scratch/couchbase-
Build Couchbase demo image
$ sudo docker build -f ${project_home}/dv-couchbase/support/docker/couchbase/DockerFile -t jmarley/couchbase .
-
Test JDV container
$ sudo docker run -d \ -v ${project_home}/dv-couchbase/scratch/couchbase:/opt/couchbase/var \ -p 8091:8091 jmarley/couchbase
|
Note
|
make sure to have a persistent volume set up for couch otherwise you will have to recreate each time couch is instanciated |
You may be wondering why the translator is separate from this project and the simple answer is for ease of development. Teiid provides a maven archetype that helps build the translator project and this README is primarily for setting up the infrastructure.