Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleDownload opencds-cdstovmr-docker
git clone https://bitbucket.org/opencds/opencds-cdstovmr-docker

 

In order to build this image you will need cda-ws-ear.ear and cda-ws-web.war files.  These files can be obtained by cloning and building the cda-web-service project.  First you need to install Mercurial (https://mercurial.selenic.com/) which is the control management tool used in this project.

...

Place these five files into opencds-cdstovmr-docker folder

 

Code Block
languagexml
titleDefine the URL of your opencds service on ejb-jar.xml
        <session>
            <ejb-name>OpenCdsServiceMGR</ejb-name>
            <env-entry>
                <env-entry-name>OPENCDS_ENDPOINT</env-entry-name>
                <env-entry-type>java.lang.String</env-entry-type>
                <env-entry-value>http://192.168.1.101:8081/opencds-decision-support-service-1.2.0-SNAPSHOT/evaluate</env-entry-value>
            </env-entry> 
Code Block
languagebash
titleBuild and deploy container
sudo docker build -t="opencds/cdatovmr" .
sudo docker run -p 8080:8080 -p 2222:22 -p 4848:4848 -p 8181:8181 -p 9009:9009 --name cdatovmr -i -t opencds/cdatovmr

 

By default the image includes the following four applications:

...